line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Spreadsheet::Reader::ExcelXML::WorkbookPropsInterface; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:JANDREW'; |
3
|
17
|
|
|
17
|
|
22077
|
use version; our $VERSION = version->declare('v0.16.8'); |
|
17
|
|
|
|
|
27
|
|
|
17
|
|
|
|
|
152
|
|
4
|
|
|
|
|
|
|
###LogSD warn "You uncovered internal logging statements for Spreadsheet::Reader::ExcelXML::WorkbookPropsInterface-$VERSION"; |
5
|
|
|
|
|
|
|
|
6
|
17
|
|
|
17
|
|
1673
|
use Moose::Role; |
|
17
|
|
|
|
|
25
|
|
|
17
|
|
|
|
|
132
|
|
7
|
|
|
|
|
|
|
requires qw( |
8
|
|
|
|
|
|
|
get_creator get_modified_by get_date_created |
9
|
|
|
|
|
|
|
get_date_modified loaded_correctly |
10
|
|
|
|
|
|
|
); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
#########1 Dispatch Tables 3#########4#########5#########6#########7#########8#########9 |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
#########1 Public Attributes 3#########4#########5#########6#########7#########8#########9 |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
#########1 Public Methods 3#########4#########5#########6#########7#########8#########9 |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
###LogSD sub get_class_space{ 'WorkbookPropsInterface' } |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
#########1 Private Attributes 3#########4#########5#########6#########7#########8#########9 |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
#########1 Private Methods 3#########4#########5#########6#########7#########8#########9 |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
#########1 Phinish 3#########4#########5#########6#########7#########8#########9 |
33
|
|
|
|
|
|
|
|
34
|
17
|
|
|
17
|
|
63869
|
no Moose::Role; |
|
17
|
|
|
|
|
28
|
|
|
17
|
|
|
|
|
73
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
#########1 Documentation 3#########4#########5#########6#########7#########8#########9 |
38
|
|
|
|
|
|
|
__END__ |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Spreadsheet::Reader::ExcelXML::WorkbookPropsInterface - Workbook docProps file interface |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 SYNOPSIS |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
#!/usr/bin/env perl |
47
|
|
|
|
|
|
|
use MooseX::ShortCut::BuildInstance qw( build_instance ); |
48
|
|
|
|
|
|
|
use Types::Standard qw( HashRef ); |
49
|
|
|
|
|
|
|
use Spreadsheet::Reader::ExcelXML::XMLReader; |
50
|
|
|
|
|
|
|
use Spreadsheet::Reader::ExcelXML::WorkbookFileInterface; |
51
|
|
|
|
|
|
|
use Spreadsheet::Reader::ExcelXML::ZipReader::WorkbookProps; |
52
|
|
|
|
|
|
|
use Spreadsheet::Reader::ExcelXML::WorkbookPropsInterface; |
53
|
|
|
|
|
|
|
my $extractor_instance = build_instance( |
54
|
|
|
|
|
|
|
superclasses => ['Spreadsheet::Reader::ExcelXML::XMLReader'], |
55
|
|
|
|
|
|
|
package => 'ExtractorInstance', |
56
|
|
|
|
|
|
|
file => '../../../../t/test_files/TestBook.xml', |
57
|
|
|
|
|
|
|
add_roles_in_sequence =>[ |
58
|
|
|
|
|
|
|
'Spreadsheet::Reader::ExcelXML::WorkbookFileInterface', |
59
|
|
|
|
|
|
|
], |
60
|
|
|
|
|
|
|
); |
61
|
|
|
|
|
|
|
my $file_handle = $extractor_instance->extract_file( qw( DocumentProperties ) ); |
62
|
|
|
|
|
|
|
my $test_instance = build_instance( |
63
|
|
|
|
|
|
|
superclasses => ['Spreadsheet::Reader::ExcelXML::XMLReader'], |
64
|
|
|
|
|
|
|
package => 'WorkbookPropsInterface', |
65
|
|
|
|
|
|
|
add_roles_in_sequence =>[ |
66
|
|
|
|
|
|
|
'Spreadsheet::Reader::ExcelXML::XMLReader::WorkbookProps', |
67
|
|
|
|
|
|
|
'Spreadsheet::Reader::ExcelXML::WorkbookPropsInterface', |
68
|
|
|
|
|
|
|
], |
69
|
|
|
|
|
|
|
file => $file_handle,# No extractor needed for zip files so call 't/test_files/docProps/core.xml' directly |
70
|
|
|
|
|
|
|
); |
71
|
|
|
|
|
|
|
print $test_instance->$get_date_created . "\n"; |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
########################### |
74
|
|
|
|
|
|
|
# SYNOPSIS Screen Output |
75
|
|
|
|
|
|
|
# 01: 2013-11-10T08:27:01Z |
76
|
|
|
|
|
|
|
########################### |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 DESCRIPTION |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
This documentation is written to explain ways to use this module when writing your own |
81
|
|
|
|
|
|
|
excel parser. To use the general package for excel parsing out of the box please review |
82
|
|
|
|
|
|
|
the documentation for L<Workbooks|Spreadsheet::Reader::ExcelXML>, |
83
|
|
|
|
|
|
|
L<Worksheets|Spreadsheet::Reader::ExcelXML::Worksheet>, and |
84
|
|
|
|
|
|
|
L<Cells|Spreadsheet::Reader::ExcelXML::Cell> |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
This module (role) is provided as a way to standardize access to or L<interface |
87
|
|
|
|
|
|
|
|http://www.cs.utah.edu/~germain/PPS/Topics/interfaces.html> with base docProps data files |
88
|
|
|
|
|
|
|
containing workbook level meta data. It doesn't provide any functionality itself it just |
89
|
|
|
|
|
|
|
provides requirements for any built classes so a consumer of this interface will be able |
90
|
|
|
|
|
|
|
to use a consistent interface. The base class will generally be; |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
L<Spreadsheet::Reader::ExcelXML::XMLReader> |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
The unique functionality is generally provided by; |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
L<Spreadsheet::Reader::ExcelXML::ZipReader::WorkbookProps> |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
L<Spreadsheet::Reader::ExcelXML::XMLReader::WorkbookProps> |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head2 Required Methods |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
These are the methods required by the role. A link to the Zip implementation of these |
103
|
|
|
|
|
|
|
methods is provided. The XML versions are documented in ~::XMLReader::WorkbookRels. |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
L<Spreadsheet::Reader::ExcelXML::ZipReader::WorkbookMeta/get_creator> |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
L<Spreadsheet::Reader::ExcelXML::ZipReader::WorkbookMeta/get_modified_by> |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
L<Spreadsheet::Reader::ExcelXML::ZipReader::WorkbookMeta/get_date_created> |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
L<Spreadsheet::Reader::ExcelXML::ZipReader::WorkbookMeta/get_date_modified> |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
L<Spreadsheet::Reader::ExcelXML::XMLReader/loaded_correctly> |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=head1 SUPPORT |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=over |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
L<github Spreadsheet::Reader::ExcelXML/issues |
120
|
|
|
|
|
|
|
|https://github.com/jandrew/p5-spreadsheet-reader-excelxml/issues> |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=back |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=head1 TODO |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=over |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
B<1.> Nothing currently |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=back |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=head1 AUTHOR |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=over |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=item Jed Lund |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
=item jandrew@cpan.org |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=back |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=head1 COPYRIGHT |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
This program is free software; you can redistribute |
145
|
|
|
|
|
|
|
it and/or modify it under the same terms as Perl itself. |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
The full text of the license can be found in the |
148
|
|
|
|
|
|
|
LICENSE file included with this module. |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
This software is copyrighted (c) 2016 by Jed Lund |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
=head1 DEPENDENCIES |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
=over |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
L<Spreadsheet::Reader::ExcelXML> - the package |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
=back |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
=head1 SEE ALSO |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
=over |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
L<Spreadsheet::Read> - generic Spreadsheet reader |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
L<Spreadsheet::ParseExcel> - Excel binary version 2003 and earlier (.xls files) |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
L<Spreadsheet::XLSX> - Excel version 2007 and later |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
L<Spreadsheet::ParseXLSX> - Excel version 2007 and later |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
L<Log::Shiras|https://github.com/jandrew/Log-Shiras> |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
=over |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
All lines in this package that use Log::Shiras are commented out |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
=back |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
=back |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
=cut |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
#########1#########2 main pod documentation end 5#########6#########7#########8#########9 |