An OpenDocument page layout style (<style:page-layout>). More...
#include <ODi_Style_PageLayout.h>
Public Member Functions | |
| ODi_Style_PageLayout (ODi_ElementStack &rElementStack, ODi_Abi_Data &rAbiData) | |
| virtual | ~ODi_Style_PageLayout () |
| void | startElement (const gchar *pName, const gchar **ppAtts, ODi_ListenerStateAction &rAction) |
| void | endElement (const gchar *pName, ODi_ListenerStateAction &rAction) |
| void | charData (const gchar *, int) |
| void | definePageSizeTag (PD_Document *pDocument) const |
| Sets the <pagesize> tag. | |
| const std::string | getSectionProps (bool hasHeader, bool hasFooter) const |
| const std::string | getMarginLeft () const |
| const std::string | getMarginRight () const |
| const std::string & | getSectionDataID () const |
| const std::string & | getName () const |
Private Member Functions | |
| void | _parseHeaderFooterProperties (const gchar **ppAtts) |
| Parses <style:header-footer-properties> start tags. | |
| void | _parsePageLayoutProperties (const gchar **ppAtts) |
| Parses the <style:page-layout-properties> start tag. | |
| void | _parseBackgroundImage (const gchar **ppAtts) |
| Parses the <style:background-image> start tag. | |
| std::string | _buildSectionPropsString (bool hasHeader, bool hasFooter) const |
| void | _buildSectionDataIDString () |
Private Attributes | |
| ODi_Abi_Data & | m_rAbiData |
| std::string | m_name |
| std::string | m_pageWidth |
| std::string | m_pageHeight |
| std::string | m_printOrientation |
| std::string | m_marginLeft |
| std::string | m_marginRight |
| std::string | m_marginTop |
| std::string | m_marginBottom |
| std::string | m_backgroundColor |
| std::string | m_columnCount |
| std::string | m_columnGap |
| std::string | m_columnLine |
| std::string | m_headerHeight |
| std::string | m_headerMarginBottom |
| std::string | m_footerHeight |
| std::string | m_footerMarginTop |
| std::string | m_backgroundImage |
| std::string | m_sectionDataID |
An OpenDocument page layout style (<style:page-layout>).
| ODi_Style_PageLayout::ODi_Style_PageLayout | ( | ODi_ElementStack & | rElementStack, | |
| ODi_Abi_Data & | rAbiData | |||
| ) | [inline] |
| virtual ODi_Style_PageLayout::~ODi_Style_PageLayout | ( | ) | [inline, virtual] |
| void ODi_Style_PageLayout::_buildSectionDataIDString | ( | ) | [private] |
References m_backgroundImage, and m_sectionDataID.
Referenced by endElement().
| std::string ODi_Style_PageLayout::_buildSectionPropsString | ( | bool | hasHeader, | |
| bool | hasFooter | |||
| ) | const [private] |
References APPEND_STYLE, m_backgroundColor, m_columnCount, m_columnGap, m_columnLine, m_footerHeight, m_footerMarginTop, m_headerHeight, m_headerMarginBottom, m_marginBottom, m_marginLeft, m_marginRight, m_marginTop, m_pageHeight, m_pageWidth, m_printOrientation, UT_convertToDimension(), and UT_std_string_sprintf().
Referenced by getSectionProps().
| void ODi_Style_PageLayout::_parseBackgroundImage | ( | const gchar ** | ppAtts | ) | [private] |
Parses the <style:background-image> start tag.
References ODi_Abi_Data::addImageDataItem(), UT_String::c_str(), gchar, m_backgroundImage, m_rAbiData, UT_DEBUGMSG, and UT_getAttribute().
Referenced by startElement().
| void ODi_Style_PageLayout::_parseHeaderFooterProperties | ( | const gchar ** | ppAtts | ) | [private] |
Parses <style:header-footer-properties> start tags.
References gchar, ODi_ElementStack::hasElement(), m_footerHeight, m_footerMarginTop, m_headerHeight, m_headerMarginBottom, ODi_ListenerState::m_rElementStack, UT_ASSERT, and UT_getAttribute().
Referenced by startElement().
| void ODi_Style_PageLayout::_parsePageLayoutProperties | ( | const gchar ** | ppAtts | ) | [private] |
Parses the <style:page-layout-properties> start tag.
References gchar, m_backgroundColor, m_marginBottom, m_marginLeft, m_marginRight, m_marginTop, m_pageHeight, m_pageWidth, m_printOrientation, and UT_getAttribute().
Referenced by startElement().
| void ODi_Style_PageLayout::charData | ( | const gchar * | , | |
| int | ||||
| ) | [inline, virtual] |
Implements ODi_ListenerState.
| void ODi_Style_PageLayout::definePageSizeTag | ( | PD_Document * | pDocument | ) | const |
Sets the <pagesize> tag.
References DIM_MM, fp_PageSize::getPredefinedName(), m_pageHeight, m_pageWidth, m_printOrientation, PD_Document::setPageSizeFromFile(), UT_convertToDimension(), and UT_std_string_sprintf().
Referenced by ODi_Style_MasterPage::definePageSizeTag().
| void ODi_Style_PageLayout::endElement | ( | const gchar * | pName, | |
| ODi_ListenerStateAction & | rAction | |||
| ) | [virtual] |
Implements ODi_ListenerState.
References _buildSectionDataIDString(), and ODi_ListenerStateAction::popState().
| const std::string ODi_Style_PageLayout::getMarginLeft | ( | ) | const [inline] |
References m_marginLeft.
Referenced by ODi_TextContent_ListenerState::_openAbiSection().
| const std::string ODi_Style_PageLayout::getMarginRight | ( | ) | const [inline] |
References m_marginRight.
Referenced by ODi_TextContent_ListenerState::_openAbiSection().
| const std::string& ODi_Style_PageLayout::getName | ( | ) | const [inline] |
References m_name.
| const std::string& ODi_Style_PageLayout::getSectionDataID | ( | ) | const [inline] |
References m_sectionDataID.
Referenced by ODi_Style_MasterPage::getSectionDataID().
| const std::string ODi_Style_PageLayout::getSectionProps | ( | bool | hasHeader, | |
| bool | hasFooter | |||
| ) | const |
References _buildSectionPropsString().
Referenced by ODi_Style_MasterPage::getSectionProps().
| void ODi_Style_PageLayout::startElement | ( | const gchar * | pName, | |
| const gchar ** | ppAtts, | |||
| ODi_ListenerStateAction & | rAction | |||
| ) | [virtual] |
Implements ODi_ListenerState.
References _parseBackgroundImage(), _parseHeaderFooterProperties(), _parsePageLayoutProperties(), gchar, m_columnCount, m_columnGap, m_columnLine, m_name, UT_ASSERT, UT_convertDimensionless(), and UT_getAttribute().
std::string ODi_Style_PageLayout::m_backgroundColor [private] |
Referenced by _buildSectionPropsString(), and _parsePageLayoutProperties().
std::string ODi_Style_PageLayout::m_backgroundImage [private] |
Referenced by _buildSectionDataIDString(), and _parseBackgroundImage().
std::string ODi_Style_PageLayout::m_columnCount [private] |
Referenced by _buildSectionPropsString(), and startElement().
std::string ODi_Style_PageLayout::m_columnGap [private] |
Referenced by _buildSectionPropsString(), and startElement().
std::string ODi_Style_PageLayout::m_columnLine [private] |
Referenced by _buildSectionPropsString(), and startElement().
std::string ODi_Style_PageLayout::m_footerHeight [private] |
Referenced by _buildSectionPropsString(), and _parseHeaderFooterProperties().
std::string ODi_Style_PageLayout::m_footerMarginTop [private] |
Referenced by _buildSectionPropsString(), and _parseHeaderFooterProperties().
std::string ODi_Style_PageLayout::m_headerHeight [private] |
Referenced by _buildSectionPropsString(), and _parseHeaderFooterProperties().
std::string ODi_Style_PageLayout::m_headerMarginBottom [private] |
Referenced by _buildSectionPropsString(), and _parseHeaderFooterProperties().
std::string ODi_Style_PageLayout::m_marginBottom [private] |
Referenced by _buildSectionPropsString(), and _parsePageLayoutProperties().
std::string ODi_Style_PageLayout::m_marginLeft [private] |
Referenced by _buildSectionPropsString(), _parsePageLayoutProperties(), and getMarginLeft().
std::string ODi_Style_PageLayout::m_marginRight [private] |
Referenced by _buildSectionPropsString(), _parsePageLayoutProperties(), and getMarginRight().
std::string ODi_Style_PageLayout::m_marginTop [private] |
Referenced by _buildSectionPropsString(), and _parsePageLayoutProperties().
std::string ODi_Style_PageLayout::m_name [private] |
Referenced by getName(), and startElement().
std::string ODi_Style_PageLayout::m_pageHeight [private] |
Referenced by _buildSectionPropsString(), _parsePageLayoutProperties(), and definePageSizeTag().
std::string ODi_Style_PageLayout::m_pageWidth [private] |
Referenced by _buildSectionPropsString(), _parsePageLayoutProperties(), and definePageSizeTag().
std::string ODi_Style_PageLayout::m_printOrientation [private] |
Referenced by _buildSectionPropsString(), _parsePageLayoutProperties(), and definePageSizeTag().
ODi_Abi_Data& ODi_Style_PageLayout::m_rAbiData [private] |
Referenced by _parseBackgroundImage().
std::string ODi_Style_PageLayout::m_sectionDataID [private] |
Referenced by _buildSectionDataIDString(), and getSectionDataID().
1.7.1