line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Spreadsheet::WriteExcel::Chart::Area; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
############################################################################### |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# Area - A writer class for Excel Area 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
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
40
|
|
19
|
1
|
|
|
1
|
|
6
|
use Spreadsheet::WriteExcel::Chart; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
46
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
1
|
|
|
1
|
|
5
|
use vars qw($VERSION @ISA); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
214
|
|
23
|
|
|
|
|
|
|
@ISA = qw(Spreadsheet::WriteExcel::Chart Exporter); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
$VERSION = '2.40'; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
############################################################################### |
28
|
|
|
|
|
|
|
# |
29
|
|
|
|
|
|
|
# new() |
30
|
|
|
|
|
|
|
# |
31
|
|
|
|
|
|
|
# |
32
|
|
|
|
|
|
|
sub new { |
33
|
|
|
|
|
|
|
|
34
|
1
|
|
|
1
|
0
|
3
|
my $class = shift; |
35
|
1
|
|
|
|
|
7
|
my $self = Spreadsheet::WriteExcel::Chart->new( @_ ); |
36
|
|
|
|
|
|
|
|
37
|
1
|
|
|
|
|
4
|
bless $self, $class; |
38
|
1
|
|
|
|
|
5
|
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 AREA chart BIFF record. Defines a area chart type. |
49
|
|
|
|
|
|
|
# |
50
|
|
|
|
|
|
|
sub _store_chart_type { |
51
|
|
|
|
|
|
|
|
52
|
1
|
|
|
1
|
|
159
|
my $self = shift; |
53
|
|
|
|
|
|
|
|
54
|
1
|
|
|
|
|
2
|
my $record = 0x101A; # Record identifier. |
55
|
1
|
|
|
|
|
2
|
my $length = 0x0002; # Number of bytes to follow. |
56
|
1
|
|
|
|
|
2
|
my $grbit = 0x0001; # Option flags. |
57
|
|
|
|
|
|
|
|
58
|
1
|
|
|
|
|
5
|
my $header = pack 'vv', $record, $length; |
59
|
1
|
|
|
|
|
218
|
my $data = pack 'v', $grbit; |
60
|
|
|
|
|
|
|
|
61
|
1
|
|
|
|
|
13
|
$self->_append( $header, $data ); |
62
|
|
|
|
|
|
|
} |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
1; |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
__END__ |