\n");
|
207
|
|
|
|
|
|
|
$report2configure->set_row_start( |
|
208
|
|
|
|
|
|
|
sub |
|
209
|
|
|
|
|
|
|
{ |
|
210
|
7
|
|
|
7
|
|
10
|
$switch++; |
|
211
|
1
|
100
|
|
1
|
|
1181
|
$switch = $[ if $switch >= scalar @row_colors; |
|
|
1
|
|
|
|
|
541
|
|
|
|
1
|
|
|
|
|
2242
|
|
|
|
7
|
|
|
|
|
94
|
|
|
212
|
7
|
|
|
|
|
27
|
return ' |
';
|
213
|
3
|
|
|
|
|
47
|
}); |
|
214
|
|
|
|
|
|
|
} |
|
215
|
|
|
|
|
|
|
else { |
|
216
|
1
|
|
|
|
|
4
|
$report2configure->set_row_start(' |
');
|
217
|
|
|
|
|
|
|
} |
|
218
|
|
|
|
|
|
|
|
|
219
|
4
|
|
|
|
|
13
|
$report2configure->set_row_end (" |
\n");
|
220
|
|
|
|
|
|
|
|
|
221
|
4
|
|
|
|
|
14
|
$report2configure->set_header_row_start("\n");
|
222
|
4
|
|
|
|
|
13
|
$report2configure->set_header_row_end (" | \n\n"); |
|
223
|
4
|
|
|
|
|
12
|
$report2configure->set_header_start(" | ");
|
|
224
|
4
|
|
|
|
|
13
|
$report2configure->set_header_end (""); |
|
225
|
|
|
|
|
|
|
|
|
226
|
4
|
|
|
21
|
|
21
|
$report2configure->set_cell_start( sub { return "' | '"; }); |
|
|
21
|
|
|
|
|
272
|
|
|
227
|
4
|
|
|
|
|
13
|
$report2configure->set_cell_end (' | ');
|
228
|
|
|
|
|
|
|
|
|
229
|
4
|
|
|
|
|
12
|
$report2configure->set_horizontal_separation_start (" "); |
|
230
|
4
|
|
|
|
|
11
|
$report2configure->set_horizontal_separation_end ("\n"); |
|
231
|
|
|
|
|
|
|
|
|
232
|
4
|
|
|
|
|
24
|
my %AlignmentToHtml = ( |
|
233
|
|
|
|
|
|
|
Left => 'left', |
|
234
|
|
|
|
|
|
|
Center => 'center', |
|
235
|
|
|
|
|
|
|
Right => 'right' |
|
236
|
|
|
|
|
|
|
); |
|
237
|
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
#=================================================================================== |
|
239
|
|
|
|
|
|
|
# |
|
240
|
|
|
|
|
|
|
# Configure Actions, no need to speed up |
|
241
|
|
|
|
|
|
|
# |
|
242
|
|
|
|
|
|
|
#=================================================================================== |
|
243
|
|
|
|
|
|
|
|
|
244
|
|
|
|
|
|
|
# === Column store Action ============================================================ |
|
245
|
|
|
|
|
|
|
$report2configure->set_configure_column_action( |
|
246
|
|
|
|
|
|
|
sub { |
|
247
|
17
|
|
|
17
|
|
20
|
my $report = shift; # instance_ref |
|
248
|
17
|
|
|
|
|
62
|
my %options = @_; # options |
|
249
|
|
|
|
|
|
|
|
|
250
|
17
|
50
|
|
|
|
45
|
print_hash_ref(\%options) if verbose($report, 2); |
|
251
|
|
|
|
|
|
|
|
|
252
|
17
|
|
|
|
|
23
|
my $left = ""; # left from value |
|
253
|
17
|
|
|
|
|
20
|
my $right = ""; # right from value |
|
254
|
|
|
|
|
|
|
|
|
255
|
17
|
|
|
|
|
21
|
my $column_attributes = ""; # Attributes in td-Element |
|
256
|
|
|
|
|
|
|
|
|
257
|
|
|
|
|
|
|
# --- default value --------------------------------------- |
|
258
|
17
|
|
|
|
|
41
|
my $default_value = get_option_value(\%options, qw (-default_value -def_val -dv)); |
|
259
|
17
|
50
|
|
|
|
60
|
$default_value = $report->get_default_cell_value() unless defined $default_value; |
|
260
|
|
|
|
|
|
|
|
|
261
|
|
|
|
|
|
|
# --- value --------------------------------------- |
|
262
|
17
|
|
|
|
|
42
|
my $value = interprete_value_options(\%options); |
|
263
|
17
|
|
|
|
|
32
|
my $value_ref = ref($value); |
|
264
|
17
|
|
|
|
|
21
|
my $value_action; |
|
265
|
|
|
|
|
|
|
|
|
266
|
17
|
50
|
|
|
|
30
|
die "value action not defined" unless defined $value; |
|
267
|
|
|
|
|
|
|
|
|
268
|
17
|
100
|
|
|
|
39
|
if ( $value_ref) { |
|
269
|
2
|
50
|
|
|
|
10
|
if ($value_ref =~ /^CODE/) { |
|
270
|
2
|
|
|
|
|
5
|
$value_action = $value; |
|
271
|
|
|
|
|
|
|
} |
|
272
|
|
|
|
|
|
|
else { |
|
273
|
|
|
|
|
|
|
# or what ?? |
|
274
|
0
|
|
|
|
|
0
|
die "# ref(value_ref) = $value_ref unknown"; |
|
275
|
|
|
|
|
|
|
# $value_action = eval ("sub { return $$value; };"); |
|
276
|
|
|
|
|
|
|
} |
|
277
|
|
|
|
|
|
|
} |
|
278
|
|
|
|
|
|
|
else { |
|
279
|
15
|
|
|
|
|
33
|
$value = complete_value_code($value, $default_value); |
|
280
|
15
|
|
|
|
|
49
|
$value_action = $report->create_action("$value;"); |
|
281
|
|
|
|
|
|
|
} |
|
282
|
|
|
|
|
|
|
|
|
283
|
|
|
|
|
|
|
# --- format value ---------------------------------------- |
|
284
|
17
|
|
|
|
|
52
|
my $format = get_option_value(\%options, qw (-format -f)); |
|
285
|
|
|
|
|
|
|
|
|
286
|
17
|
50
|
|
|
|
39
|
if ($format) { |
|
287
|
0
|
|
|
|
|
0
|
my $format_ref = ref($format); |
|
288
|
|
|
|
|
|
|
|
|
289
|
0
|
0
|
|
|
|
0
|
die "You used a '$format_ref' type to set the 'Format', " |
|
290
|
|
|
|
|
|
|
."but currently only strings are supported!" |
|
291
|
|
|
|
|
|
|
if $format_ref; |
|
292
|
|
|
|
|
|
|
|
|
293
|
0
|
0
|
|
|
|
0
|
print "format $format\n" if verbose($report, 3); |
|
294
|
|
|
|
|
|
|
|
|
295
|
0
|
|
|
|
|
0
|
$left = "sprintf(\"$format\", ".$left; |
|
296
|
0
|
|
|
|
|
0
|
$right .= ")"; |
|
297
|
|
|
|
|
|
|
} |
|
298
|
|
|
|
|
|
|
|
|
299
|
|
|
|
|
|
|
# --- escape special chars ---------------------------------------- |
|
300
|
17
|
|
|
|
|
41
|
my $escape_special_chars = get_option_value(\%options, qw (-escape_special_chars -esc_spec_chr -esc)); |
|
301
|
|
|
|
|
|
|
|
|
302
|
17
|
|
|
|
|
25
|
my $do_escape_special_chars = 1; |
|
303
|
17
|
50
|
|
|
|
30
|
if (defined $escape_special_chars) { |
|
304
|
0
|
|
|
|
|
0
|
$do_escape_special_chars = $escape_special_chars; |
|
305
|
|
|
|
|
|
|
} |
|
306
|
|
|
|
|
|
|
|
|
307
|
17
|
|
|
|
|
37
|
my $esc_action = $self->get_escape_special_chars_action(); |
|
308
|
17
|
50
|
|
|
|
43
|
$do_escape_special_chars = 0 unless $esc_action; |
|
309
|
|
|
|
|
|
|
|
|
310
|
17
|
50
|
|
|
|
150
|
if ($do_escape_special_chars) { |
|
311
|
17
|
|
|
|
|
33
|
$left = '$esc_action->('.$left; |
|
312
|
17
|
|
|
|
|
24
|
$right .= ')'; |
|
313
|
|
|
|
|
|
|
} |
|
314
|
|
|
|
|
|
|
|
|
315
|
|
|
|
|
|
|
# --- coloring -------------------------------------------- |
|
316
|
17
|
|
|
|
|
47
|
my $color = get_option_value(\%options, qw (-color -c)); |
|
317
|
17
|
|
|
|
|
24
|
my $color_action = undef; |
|
318
|
|
|
|
|
|
|
|
|
319
|
17
|
50
|
|
|
|
35
|
if ($color) { |
|
320
|
0
|
|
|
|
|
0
|
my $color_ref = ref($color); |
|
321
|
|
|
|
|
|
|
|
|
322
|
0
|
0
|
|
|
|
0
|
if ( $color_ref) { |
|
323
|
0
|
0
|
|
|
|
0
|
if ($color_ref =~ /^CODE/) { |
|
324
|
0
|
|
|
|
|
0
|
$color_action = $color; |
|
325
|
0
|
|
|
|
|
0
|
$column_attributes .= '. add_background_color_attribute($color_action->($_[0]))'; |
|
326
|
|
|
|
|
|
|
} |
|
327
|
|
|
|
|
|
|
else { |
|
328
|
|
|
|
|
|
|
# or what ?? |
|
329
|
0
|
|
|
|
|
0
|
die "# ref(color_ref) = $color_ref unknown"; |
|
330
|
|
|
|
|
|
|
} |
|
331
|
|
|
|
|
|
|
} |
|
332
|
|
|
|
|
|
|
else { |
|
333
|
0
|
|
|
|
|
0
|
$column_attributes .= ".'" . add_background_color_attribute($color) ."'"; |
|
334
|
|
|
|
|
|
|
} |
|
335
|
|
|
|
|
|
|
} |
|
336
|
|
|
|
|
|
|
|
|
337
|
|
|
|
|
|
|
# --- width is currently not supported --------------------- |
|
338
|
17
|
|
|
|
|
39
|
my $width = get_option_value(\%options, qw (-width -w)); |
|
339
|
|
|
|
|
|
|
|
|
340
|
17
|
50
|
33
|
|
|
37
|
print "width is currently not supported for html (width = $width)\n" if verbose($report, 3) && $width; |
|
341
|
|
|
|
|
|
|
|
|
342
|
|
|
|
|
|
|
# --- align ----------------------------------------------- |
|
343
|
17
|
|
|
|
|
42
|
my $align = get_option_value(\%options, qw (-align -a)); |
|
344
|
|
|
|
|
|
|
|
|
345
|
17
|
100
|
|
|
|
36
|
if ($align) { |
|
346
|
14
|
|
|
|
|
22
|
my $align_ref = ref($align); |
|
347
|
|
|
|
|
|
|
|
|
348
|
14
|
50
|
|
|
|
23
|
die "You used a '$align_ref' type to set the 'Align', " |
|
349
|
|
|
|
|
|
|
."but currently only strings are supported!" |
|
350
|
|
|
|
|
|
|
if $align_ref; |
|
351
|
|
|
|
|
|
|
|
|
352
|
14
|
|
|
|
|
36
|
$align = interprete_alignment($align); |
|
353
|
|
|
|
|
|
|
} |
|
354
|
|
|
|
|
|
|
else { |
|
355
|
3
|
|
|
|
|
14
|
$align = $report->get_default_align(); |
|
356
|
|
|
|
|
|
|
} |
|
357
|
|
|
|
|
|
|
|
|
358
|
17
|
50
|
|
|
|
1106
|
print "align $align\n" if verbose($report, 3); |
|
359
|
17
|
|
|
|
|
40
|
my $column_align = $AlignmentToHtml{$align}; |
|
360
|
|
|
|
|
|
|
|
|
361
|
17
|
|
|
|
|
34
|
$column_attributes .= '.\' align="'.$column_align.'"\''; |
|
362
|
|
|
|
|
|
|
|
|
363
|
|
|
|
|
|
|
# --- configure header ---------------------------- |
|
364
|
|
|
|
|
|
|
|
|
365
|
17
|
|
|
|
|
39
|
my $header_text = get_option_value(\%options, qw (-header -h)); |
|
366
|
17
|
50
|
|
|
|
36
|
$header_text = '' unless defined $header_text; |
|
367
|
17
|
|
|
|
|
16
|
push (@{$report->get_header_texts_ref()}, $header_text); |
|
|
17
|
|
|
|
|
47
|
|
|
368
|
|
|
|
|
|
|
|
|
369
|
|
|
|
|
|
|
# --- --------------------------------------------- |
|
370
|
|
|
|
|
|
|
# --- --------------------------------------------- |
|
371
|
|
|
|
|
|
|
# --- --------------------------------------------- |
|
372
|
|
|
|
|
|
|
|
|
373
|
|
|
|
|
|
|
# --- build cell content action --------------------------------------------- |
|
374
|
17
|
|
|
|
|
506
|
my $cell_action_str = $left.'$value_action->($_[0])'.$right; |
|
375
|
|
|
|
|
|
|
|
|
376
|
17
|
|
|
|
|
41
|
my $cell_start = $report->get_cell_start()->($column_attributes); |
|
377
|
17
|
|
|
|
|
48
|
my $cell_end = $report->get_cell_end(); |
|
378
|
|
|
|
|
|
|
|
|
379
|
17
|
|
|
|
|
40
|
my $eval_str = 'sub { return '.$cell_start.".".$cell_action_str.'.$cell_end; }'; |
|
380
|
|
|
|
|
|
|
|
|
381
|
17
|
50
|
|
|
|
42
|
print "### eval_str = $eval_str\n" |
|
382
|
|
|
|
|
|
|
if verbose($report, 3); |
|
383
|
|
|
|
|
|
|
|
|
384
|
17
|
|
|
|
|
2453
|
my $cell_action = eval ($eval_str); |
|
385
|
|
|
|
|
|
|
|
|
386
|
17
|
50
|
|
|
|
44
|
die $@ if $@; |
|
387
|
|
|
|
|
|
|
|
|
388
|
17
|
50
|
|
|
|
54
|
print "### ref(cell_action) ".ref($cell_action) ."\n" if verbose($report, 3); |
|
389
|
|
|
|
|
|
|
|
|
390
|
17
|
|
|
|
|
48
|
$report->add_cell_output_action($cell_action); |
|
391
|
4
|
|
|
|
|
74
|
}); |
|
392
|
|
|
|
|
|
|
|
|
393
|
|
|
|
|
|
|
# === Configure Complete Action ==================================================== |
|
394
|
|
|
|
|
|
|
$report2configure->set_configure_complete_action( |
|
395
|
|
|
|
|
|
|
sub { |
|
396
|
4
|
|
|
4
|
|
6
|
my ($report, # instance_ref |
|
397
|
|
|
|
|
|
|
) = @_; |
|
398
|
|
|
|
|
|
|
|
|
399
|
4
|
|
|
|
|
16
|
my $row_start = $report->get_row_start(); |
|
400
|
4
|
|
|
|
|
11
|
my $row_start_ref = ref($row_start); |
|
401
|
|
|
|
|
|
|
|
|
402
|
4
|
100
|
|
|
|
10
|
if ( $row_start_ref) { |
|
403
|
3
|
50
|
|
|
|
18
|
if ($row_start_ref =~ /^CODE/) { |
|
404
|
3
|
|
|
|
|
8
|
$row_start = $row_start->(); # replace sub by content of call |
|
405
|
|
|
|
|
|
|
} |
|
406
|
|
|
|
|
|
|
else { |
|
407
|
|
|
|
|
|
|
# or what ?? |
|
408
|
0
|
|
|
|
|
0
|
die "# ref(row_start_ref) = $row_start_ref unknown"; |
|
409
|
|
|
|
|
|
|
# $value_action = eval ("sub { return $$value; };"); |
|
410
|
|
|
|
|
|
|
} |
|
411
|
|
|
|
|
|
|
} |
|
412
|
|
|
|
|
|
|
|
|
413
|
4
|
|
|
|
|
77
|
my $cell_start = $report->get_cell_start(); |
|
414
|
4
|
|
|
|
|
11
|
my $cell_start_ref = ref($cell_start); |
|
415
|
|
|
|
|
|
|
|
|
416
|
4
|
50
|
|
|
|
12
|
if ( $cell_start_ref) { |
|
417
|
4
|
50
|
|
|
|
116
|
if ($cell_start_ref =~ /^CODE/) { |
|
418
|
4
|
|
|
|
|
11
|
$cell_start = eval ($cell_start->('')); # replace sub by content of call |
|
419
|
|
|
|
|
|
|
} |
|
420
|
|
|
|
|
|
|
else { |
|
421
|
|
|
|
|
|
|
# or what ?? |
|
422
|
0
|
|
|
|
|
0
|
die "# ref(cell_start_ref) = $cell_start_ref unknown"; |
|
423
|
|
|
|
|
|
|
# $value_action = eval ("sub { return $$value; };"); |
|
424
|
|
|
|
|
|
|
} |
|
425
|
|
|
|
|
|
|
} |
|
426
|
|
|
|
|
|
|
|
|
427
|
4
|
|
|
|
|
13
|
my $sep = $row_start; |
|
428
|
|
|
|
|
|
|
|
|
429
|
4
|
|
|
|
|
8
|
foreach my $idx (1..scalar(@{$report->get_cell_output_actions()})) { |
|
|
4
|
|
|
|
|
14
|
|
|
430
|
17
|
|
|
|
|
47
|
$sep .= $cell_start." ".$report->get_cell_end(); |
|
431
|
|
|
|
|
|
|
} |
|
432
|
|
|
|
|
|
|
|
|
433
|
4
|
|
|
|
|
17
|
$sep .= $report->get_row_end(); |
|
434
|
|
|
|
|
|
|
|
|
435
|
4
|
|
|
|
|
15
|
$report->set_header_line ($sep); |
|
436
|
4
|
|
|
|
|
14
|
$report->set_separator_line ($sep); |
|
437
|
4
|
|
|
|
|
31
|
}); |
|
438
|
|
|
|
|
|
|
|
|
439
|
|
|
|
|
|
|
#=================================================================================== |
|
440
|
|
|
|
|
|
|
# |
|
441
|
|
|
|
|
|
|
# Runtime Actions, no need to speed up |
|
442
|
|
|
|
|
|
|
# |
|
443
|
|
|
|
|
|
|
#=================================================================================== |
|
444
|
|
|
|
|
|
|
|
|
445
|
|
|
|
|
|
|
# === Header Output Action ============================================================ |
|
446
|
|
|
|
|
|
|
$report2configure->set_header_output_action( |
|
447
|
|
|
|
|
|
|
sub { |
|
448
|
1
|
|
|
1
|
|
2
|
my ($report, # instance_ref |
|
449
|
|
|
|
|
|
|
$data_ref # data to output |
|
450
|
|
|
|
|
|
|
) = @_; |
|
451
|
|
|
|
|
|
|
|
|
452
|
1
|
|
|
|
|
5
|
my $header_string = $report->get_header_row_start(); |
|
453
|
1
|
|
|
|
|
3
|
foreach my $header_text (@{$data_ref}) { |
|
|
1
|
|
|
|
|
3
|
|
|
454
|
4
|
|
|
|
|
13
|
$header_string .= $report->get_header_start() |
|
455
|
|
|
|
|
|
|
.$header_text |
|
456
|
|
|
|
|
|
|
.$report->get_header_end(); |
|
457
|
|
|
|
|
|
|
} |
|
458
|
|
|
|
|
|
|
|
|
459
|
1
|
|
|
|
|
4
|
$header_string .= $report->get_header_row_end(); |
|
460
|
|
|
|
|
|
|
|
|
461
|
1
|
50
|
|
|
|
5
|
print "### Header String:$header_string" if verbose($report, 2); |
|
462
|
|
|
|
|
|
|
|
|
463
|
1
|
|
|
|
|
7
|
return $header_string; |
|
464
|
4
|
|
|
|
|
25
|
}); |
|
465
|
|
|
|
|
|
|
|
|
466
|
|
|
|
|
|
|
# === Start Table Output Action ============================================================ |
|
467
|
|
|
|
|
|
|
$report2configure->set_start_table_output_action( |
|
468
|
|
|
|
|
|
|
sub { |
|
469
|
1
|
|
|
1
|
|
3
|
my ($report, # instance_ref |
|
470
|
|
|
|
|
|
|
$data_ref # data to output |
|
471
|
|
|
|
|
|
|
) = @_; |
|
472
|
|
|
|
|
|
|
|
|
473
|
1
|
|
|
|
|
6
|
return $report->get_file_start() |
|
474
|
|
|
|
|
|
|
.$report->get_table_start() |
|
475
|
|
|
|
|
|
|
.$report->get_header_output(); |
|
476
|
|
|
|
|
|
|
|
|
477
|
4
|
|
|
|
|
32
|
}); |
|
478
|
|
|
|
|
|
|
|
|
479
|
|
|
|
|
|
|
# === End Table Output Action ============================================================ |
|
480
|
|
|
|
|
|
|
$report2configure->set_end_table_output_action( |
|
481
|
|
|
|
|
|
|
sub { |
|
482
|
1
|
|
|
1
|
|
2
|
my ($report, # instance_ref |
|
483
|
|
|
|
|
|
|
$data_ref # data to output |
|
484
|
|
|
|
|
|
|
) = @_; |
|
485
|
|
|
|
|
|
|
|
|
486
|
1
|
|
|
|
|
6
|
return $report->get_table_end() |
|
487
|
|
|
|
|
|
|
.$report->get_file_end(); |
|
488
|
4
|
|
|
|
|
25
|
}); |
|
489
|
|
|
|
|
|
|
|
|
490
|
|
|
|
|
|
|
#=================================================================================== |
|
491
|
|
|
|
|
|
|
# |
|
492
|
|
|
|
|
|
|
# Runtime Mass Data Actions, be careful, don't slow it down !! |
|
493
|
|
|
|
|
|
|
# |
|
494
|
|
|
|
|
|
|
#=================================================================================== |
|
495
|
|
|
|
|
|
|
|
|
496
|
4
|
|
|
|
|
6
|
my $previous_data_ref = ''; |
|
497
|
|
|
|
|
|
|
|
|
498
|
|
|
|
|
|
|
# === Row Output Action ============================================================ |
|
499
|
|
|
|
|
|
|
$report2configure->set_row_output_action( |
|
500
|
|
|
|
|
|
|
sub { |
|
501
|
5
|
|
|
5
|
|
12
|
my ($report, # instance_ref |
|
502
|
|
|
|
|
|
|
$data_ref # data to output |
|
503
|
|
|
|
|
|
|
) = @_; |
|
504
|
|
|
|
|
|
|
|
|
505
|
5
|
|
|
|
|
16
|
my $row_start = $report->get_row_start(); |
|
506
|
5
|
|
|
|
|
11
|
my $row_start_ref = ref($row_start); |
|
507
|
|
|
|
|
|
|
|
|
508
|
5
|
100
|
|
|
|
13
|
if ( $row_start_ref) { |
|
509
|
4
|
50
|
|
|
|
17
|
if ($row_start_ref =~ /^CODE/) { |
|
510
|
4
|
|
|
|
|
8
|
$row_start = $row_start->(); # replace sub by content of call |
|
511
|
|
|
|
|
|
|
} |
|
512
|
|
|
|
|
|
|
else { |
|
513
|
|
|
|
|
|
|
# or what ?? |
|
514
|
0
|
|
|
|
|
0
|
die "# ref(row_start_ref) = $row_start_ref unknown"; |
|
515
|
|
|
|
|
|
|
# $value_action = eval ("sub { return $$value; };"); |
|
516
|
|
|
|
|
|
|
} |
|
517
|
|
|
|
|
|
|
} |
|
518
|
|
|
|
|
|
|
|
|
519
|
5
|
|
|
|
|
8
|
my $row_string = ''; |
|
520
|
|
|
|
|
|
|
|
|
521
|
|
|
|
|
|
|
# --- Add something when group changes ---- |
|
522
|
5
|
|
|
|
|
16
|
my $row_group_changes_action = $report->get_row_group_changes_action(); |
|
523
|
|
|
|
|
|
|
|
|
524
|
5
|
50
|
|
|
|
17
|
$row_string .= $row_group_changes_action->($previous_data_ref, $data_ref) |
|
525
|
|
|
|
|
|
|
if $row_group_changes_action; |
|
526
|
|
|
|
|
|
|
|
|
527
|
5
|
|
|
|
|
7
|
$previous_data_ref = $data_ref; |
|
528
|
|
|
|
|
|
|
|
|
529
|
|
|
|
|
|
|
# --- start new row ----------------------- |
|
530
|
5
|
|
|
|
|
11
|
$row_string .= $row_start; |
|
531
|
|
|
|
|
|
|
|
|
532
|
5
|
|
|
|
|
17
|
my $cell_output_actions_ref = $report->get_cell_output_actions(); |
|
533
|
|
|
|
|
|
|
|
|
534
|
5
|
|
|
|
|
13
|
foreach my $action (@$cell_output_actions_ref) { |
|
535
|
21
|
50
|
|
|
|
49
|
print "### action $action\n" if verbose($report, 4); |
|
536
|
21
|
|
|
|
|
714
|
$row_string .= $action->($data_ref); |
|
537
|
|
|
|
|
|
|
} |
|
538
|
|
|
|
|
|
|
|
|
539
|
5
|
|
|
|
|
19
|
$row_string .= $report->get_row_end(); |
|
540
|
|
|
|
|
|
|
|
|
541
|
5
|
50
|
|
|
|
15
|
print "### Row String:$row_string" if verbose($report, 2); |
|
542
|
|
|
|
|
|
|
|
|
543
|
5
|
|
|
|
|
34
|
return $row_string; |
|
544
|
4
|
|
|
|
|
53
|
}); |
|
545
|
|
|
|
|
|
|
|
|
546
|
4
|
|
|
|
|
18
|
return $report2configure; |
|
547
|
|
|
|
|
|
|
} |
|
548
|
|
|
|
|
|
|
|
|
549
|
|
|
|
|
|
|
1; |
|
550
|
|
|
|
|
|
|
|
|
551
|
|
|
|
|
|
|
=head1 NAME |
|
552
|
|
|
|
|
|
|
|
|
553
|
|
|
|
|
|
|
C |
|
554
|
|
|
|
|
|
|
|
|
555
|
|
|
|
|
|
|
Configures a Report::Porf::Table::Simple to write out HTML tables. |
|
556
|
|
|
|
|
|
|
|
|
557
|
|
|
|
|
|
|
Part of Perl Open Report Framework (Porf). |
|
558
|
|
|
|
|
|
|
|
|
559
|
|
|
|
|
|
|
=head1 Documentation |
|
560
|
|
|
|
|
|
|
|
|
561
|
|
|
|
|
|
|
See Report::Porf::Framework.pm for documentation of features and usage. |
|
562
|
|
|
|
|
|
|
|
|
563
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
|
564
|
|
|
|
|
|
|
|
|
565
|
|
|
|
|
|
|
Copyright (c) 2013 by Ralf Peine, Germany. All rights reserved. |
|
566
|
|
|
|
|
|
|
|
|
567
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
|
568
|
|
|
|
|
|
|
it under the same terms as Perl itself, either Perl version 5.6.0 or, |
|
569
|
|
|
|
|
|
|
at your option, any later version of Perl 5 you may have available. |
|
570
|
|
|
|
|
|
|
|
|
571
|
|
|
|
|
|
|
=head1 DISCLAIMER OF WARRANTY |
|
572
|
|
|
|
|
|
|
|
|
573
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful, |
|
574
|
|
|
|
|
|
|
but without any warranty; without even the implied warranty of |
|
575
|
|
|
|
|
|
|
merchantability or fitness for a particular purpose. |
|
576
|
|
|
|
|
|
|
|
|
577
|
|
|
|
|
|
|
=cut |