Renard::Incunabula::Outline - Model that represents a document outline
version 0.005
Moo::Object
An ArrayRef[HashRef] with a simple representation of an outline where each item of the ArrayRef represents an item in the list of headings displayed in order.
ArrayRef[HashRef]
Each HashRef element is an element of the outline with the structure:
HashRef
{ # The level in the outline that the item is at. Starts at zero (0). level => PositiveOrZeroInt, # The textual description of the item. text => Str, # The page number that the outline item points to. page => LaxPageNumber, }
A complete example is:
[ { level => 0, text => 'Chapter 1', page => 20, }, { level => 1, text => 'Section 1.1', page => 25, }, { level => 0, text => 'Chapter 2', page => 30, }, ]
which represents the outline
Chapter 1 .......... 20 Section 1.1 ...... 25 Chapter 2 .......... 30
The Gtk3::TreeStore representation for this outline. It holds tree data of the heading text and page numbers.
Project Renard
This software is copyright (c) 2017 by Project Renard.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Renard::Incunabula::Document, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Renard::Incunabula::Document
CPAN shell
perl -MCPAN -e shell install Renard::Incunabula::Document
For more information on module installation, please visit the detailed CPAN module installation guide.