#include <cpageattributes.h>
Classes | |
| struct | InheritedAttributes |
Static Public Member Functions | |
| static void | fillInherited (const boost::shared_ptr< CDict > pageDict, InheritedAttributes &attrs) |
| static void | setInheritable (boost::shared_ptr< CDict > &pageDict) |
Helper class for page attributes.
| static void pdfobjects::CPageAttributes::fillInherited | ( | const boost::shared_ptr< CDict > | pageDict, | |
| InheritedAttributes & | attrs | |||
| ) | [static] |
Fills InheritedAttributes structure for a given page dictionary.
Recursive function which checks given pageDict whether it contains uninitialized (NULL values) from a given attribute structure. If true, sets the value from the dictionary. If at least one property is still not initialized, repeats the process for the parent dictionary (dereferenced "Parent" property). End if the "Parent" property is not present (in root of a page tree).
Use default value when a property was not initialized.
Note that attrs structure comes out allways initialized when recursion is finished.
| pageDict | Page dictionary. | |
| attrs | Output attribute structure where correct values are put. |
| NotImplementedException | at this moment. |
Referenced by pdfobjects::CPageFonts::addSystemType1Font(), pdfobjects::CPageFonts::getFontIdsAndNames(), pdfobjects::CPageDisplay::getMediabox(), and pdfobjects::CPageDisplay::getRotation().
| static void pdfobjects::CPageAttributes::setInheritable | ( | boost::shared_ptr< CDict > & | pageDict | ) | [static] |
Sets unitialized inheritable page attributes.
| pageDict | Page dictionary reference where to set values. |
Gets InheritedAttributes structure for given pageDict (uses fillInheritedPageAttr helper function) and sets all fields which are not present in given dictionary to found values.
Referenced by pdfobjects::CPage::CPage(), and pdfobjects::CPdf::insertPage().