line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Spreadsheet::WriteExcel::Chart::Column; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
############################################################################### |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# Column - A writer class for Excel Column charts. |
6
|
|
|
|
|
|
|
# |
7
|
|
|
|
|
|
|
# Used in conjunction with Spreadsheet::WriteExcel::Chart. |
8
|
|
|
|
|
|
|
# |
9
|
|
|
|
|
|
|
# See formatting note in Spreadsheet::WriteExcel::Chart. |
10
|
|
|
|
|
|
|
# |
11
|
|
|
|
|
|
|
# Copyright 2000-2010, John McNamara, jmcnamara@cpan.org |
12
|
|
|
|
|
|
|
# |
13
|
|
|
|
|
|
|
# Documentation after __END__ |
14
|
|
|
|
|
|
|
# |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
require Exporter; |
17
|
|
|
|
|
|
|
|
18
|
3
|
|
|
3
|
|
22
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
124
|
|
19
|
3
|
|
|
3
|
|
24
|
use Spreadsheet::WriteExcel::Chart; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
208
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
3
|
|
|
3
|
|
21
|
use vars qw($VERSION @ISA); |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
1113
|
|
23
|
|
|
|
|
|
|
@ISA = qw(Spreadsheet::WriteExcel::Chart Exporter); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
$VERSION = '2.40'; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
############################################################################### |
28
|
|
|
|
|
|
|
# |
29
|
|
|
|
|
|
|
# new() |
30
|
|
|
|
|
|
|
# |
31
|
|
|
|
|
|
|
# |
32
|
|
|
|
|
|
|
sub new { |
33
|
|
|
|
|
|
|
|
34
|
3
|
|
|
3
|
0
|
7
|
my $class = shift; |
35
|
3
|
|
|
|
|
21
|
my $self = Spreadsheet::WriteExcel::Chart->new( @_ ); |
36
|
|
|
|
|
|
|
|
37
|
3
|
|
|
|
|
11
|
bless $self, $class; |
38
|
3
|
|
|
|
|
16
|
return $self; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
############################################################################### |
43
|
|
|
|
|
|
|
# |
44
|
|
|
|
|
|
|
# _store_chart_type() |
45
|
|
|
|
|
|
|
# |
46
|
|
|
|
|
|
|
# Implementation of the abstract method from the specific chart class. |
47
|
|
|
|
|
|
|
# |
48
|
|
|
|
|
|
|
# Write the BAR chart BIFF record. Defines a bar or column chart type. |
49
|
|
|
|
|
|
|
# |
50
|
|
|
|
|
|
|
sub _store_chart_type { |
51
|
|
|
|
|
|
|
|
52
|
3
|
|
|
3
|
|
16
|
my $self = shift; |
53
|
|
|
|
|
|
|
|
54
|
3
|
|
|
|
|
5
|
my $record = 0x1017; # Record identifier. |
55
|
3
|
|
|
|
|
7
|
my $length = 0x0006; # Number of bytes to follow. |
56
|
3
|
|
|
|
|
5
|
my $pcOverlap = 0x0000; # Space between bars. |
57
|
3
|
|
|
|
|
7
|
my $pcGap = 0x0096; # Space between cats. |
58
|
3
|
|
|
|
|
6
|
my $grbit = 0x0000; # Option flags. |
59
|
|
|
|
|
|
|
|
60
|
3
|
|
|
|
|
10
|
my $header = pack 'vv', $record, $length; |
61
|
3
|
|
|
|
|
40
|
my $data = ''; |
62
|
3
|
|
|
|
|
16
|
$data .= pack 'v', $pcOverlap; |
63
|
3
|
|
|
|
|
10
|
$data .= pack 'v', $pcGap; |
64
|
3
|
|
|
|
|
15
|
$data .= pack 'v', $grbit; |
65
|
|
|
|
|
|
|
|
66
|
3
|
|
|
|
|
24
|
$self->_append( $header, $data ); |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
1; |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
__END__ |