| 1 | package Spreadsheet::WriteExcel::Chart::Line; | ||
| 2 | |||
| 3 | ############################################################################### | ||
| 4 | # | ||
| 5 | # Line - A writer class for Excel Line 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 LINE chart BIFF record. Defines a line 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 = 0x1018; # Record identifier. | |
| 55 | 1 | my $length = 0x0002; # Number of bytes to follow. | |
| 56 | 1 | my $grbit = 0x0000; # 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__ | ||