WriteExcel/Chart/Area.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 96.6% 29 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« WriteExcel/Chart/Bar.pm ↑ Summary WriteExcel/Chart/Line.pm »
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 1 require Exporter;
17  
18 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶use Spreadsheet::WriteExcel::Chart;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21  
22 1 ▶use vars qw($VERSION @ISA);
Subroutine BEGIN: called CC=1 SCAR=0.0
23 1 @ISA = qw(Spreadsheet::WriteExcel::Chart Exporter);
24  
25 1 $VERSION = '2.40';
26  
27 ###############################################################################
28 #
29 # new()
30 #
31 #
32 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
33  
34 1 my $class = shift;
35 1 my $self = Spreadsheet::WriteExcel::Chart->new( @_ );
36  
37 1 bless $self, $class;
38 1 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 1 ▶sub _store_chart_type {
Subroutine _store_chart_type: called CC=1 SCAR=0.0
51  
52 1 my $self = shift;
53  
54 1 my $record = 0x101A; # Record identifier.
55 1 my $length = 0x0002; # Number of bytes to follow.
56 1 my $grbit = 0x0001; # Option flags.
57  
58 1 my $header = pack 'vv', $record, $length;
59 1 my $data = pack 'v', $grbit;
60  
61 1 $self->_append( $header, $data );
62 }
63  
64  
65 1 1;
66  
67  
68 __END__
« WriteExcel/Chart/Bar.pm ↑ Summary WriteExcel/Chart/Line.pm »