#include <ContentTree.h>
Inheritance diagram for pdftron::Layout::Section:Public Types | |
| enum | PageGroup { e_first_page = 1, e_even_pages = 2, e_odd_pages = 3 } |
Friends | |
| class | FlowDocument |
Additional Inherited Members | |
Public Attributes inherited from pdftron::Layout::ContentElement | |
| TRN_ContentElement | m_impl |
Protected Member Functions inherited from pdftron::Layout::ContentContainer | |
| ContentContainer (TRN_ContentContainer impl) | |
Protected Member Functions inherited from pdftron::Layout::ContentNode | |
| ContentNode (TRN_ContentNode impl) | |
Protected Member Functions inherited from pdftron::Layout::ContentElement | |
| ContentElement (TRN_ContentElement impl) | |
A Section is a content container representing a group of consecutive pages of a FlowDocument that share the same headers and footers.
A FlowDocument always contains at least one section. Content added directly to the FlowDocument is added to the current (last) section.
Definition at line 497 of file ContentTree.h.
Selects the group of pages a header or footer applies to.
| Enumerator | |
|---|---|
| e_first_page |
The first page of the section. |
| e_even_pages |
The even numbered pages of the section. |
| e_odd_pages |
The odd numbered pages of the section. |
Definition at line 510 of file ContentTree.h.
| double pdftron::Layout::Section::GetBottomMargin | ( | ) |
Get the bottom margin used by this section.
| ElementRef<ContentContainer> pdftron::Layout::Section::GetFooter | ( | PageGroup | pages | ) | const |
Retrieve the existing footer of the section for the given page group.
| pages | The group of pages the footer applies to. |
| ElementRef<ContentContainer> pdftron::Layout::Section::GetHeader | ( | PageGroup | pages | ) | const |
Retrieve the existing header of the section for the given page group.
| pages | The group of pages the header applies to. |
| double pdftron::Layout::Section::GetLeftMargin | ( | ) |
Get the left margin used by this section.
| ContentContainer pdftron::Layout::Section::GetOrCreateFooter | ( | PageGroup | pages | ) |
Retrieve the footer of the section for the given page group, creating an empty one if it does not exist yet.
The content of an already existing footer is preserved.
| pages | The group of pages the footer applies to. |
| ContentContainer pdftron::Layout::Section::GetOrCreateHeader | ( | PageGroup | pages | ) |
Retrieve the header of the section for the given page group, creating an empty one if it does not exist yet.
The content of an already existing header is preserved.
| pages | The group of pages the header applies to. |
| double pdftron::Layout::Section::GetPageHeight | ( | ) |
Get the page height used by this section.
| double pdftron::Layout::Section::GetPageWidth | ( | ) |
Get the page width used by this section.
| double pdftron::Layout::Section::GetRightMargin | ( | ) |
Get the right margin used by this section.
| double pdftron::Layout::Section::GetTopMargin | ( | ) |
Get the top margin used by this section.
| void pdftron::Layout::Section::RemoveFooter | ( | PageGroup | pages | ) |
Remove the footer of the section for the given page group.
Does nothing if no such footer exists.
| pages | The group of pages the footer applies to. |
| void pdftron::Layout::Section::RemoveHeader | ( | PageGroup | pages | ) |
Remove the header of the section for the given page group.
Does nothing if no such header exists.
| pages | The group of pages the header applies to. |
| void pdftron::Layout::Section::SetMargins | ( | double | left, |
| double | top, | ||
| double | right, | ||
| double | bottom | ||
| ) |
Set the margins for the pages of this section, overriding the document default margins.
| left | The left margin in points |
| top | The top margin in points |
| right | The right margin in points |
| bottom | The bottom margin in points |
| void pdftron::Layout::Section::SetPageSize | ( | double | width, |
| double | height | ||
| ) |
Set the page size for the pages of this section, overriding the document default page size.
| width | The width in points |
| height | The height in points |
|
friend |
Definition at line 499 of file ContentTree.h.