An OpenDocument page layout style (<style:page-layout>). More...
#include <ODi_Style_PageLayout.h>
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 UT_UTF8String::clear(), UT_UTF8String::length(), m_backgroundImage, and m_sectionDataID.
Referenced by endElement().
| UT_UTF8String ODi_Style_PageLayout::_buildSectionPropsString | ( | bool | hasHeader, | |
| bool | hasFooter | |||
| ) | const [private] |
References APPEND_STYLE, UT_UTF8String::empty(), 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(), UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
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, UT_UTF8String::empty(), gchar, fp_PageSize::getPredefinedName(), m_pageHeight, m_pageWidth, m_printOrientation, PD_Document::setPageSizeFromFile(), UT_convertToDimension(), UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
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 UT_UTF8String ODi_Style_PageLayout::getMarginLeft | ( | ) | const [inline] |
References m_marginLeft.
Referenced by ODi_TextContent_ListenerState::_openAbiSection().
| const UT_UTF8String ODi_Style_PageLayout::getMarginRight | ( | ) | const [inline] |
References m_marginRight.
Referenced by ODi_TextContent_ListenerState::_openAbiSection().
| const UT_UTF8String& ODi_Style_PageLayout::getName | ( | ) | const [inline] |
References m_name.
| const UT_UTF8String& ODi_Style_PageLayout::getSectionDataID | ( | ) | const [inline] |
References m_sectionDataID.
Referenced by ODi_Style_MasterPage::getSectionDataID().
| const UT_UTF8String 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] |
Referenced by _buildSectionPropsString(), and _parsePageLayoutProperties().
Referenced by _buildSectionDataIDString(), and _parseBackgroundImage().
Referenced by _buildSectionPropsString(), and startElement().
Referenced by _buildSectionPropsString(), and startElement().
Referenced by _buildSectionPropsString(), and startElement().
Referenced by _buildSectionPropsString(), and _parseHeaderFooterProperties().
Referenced by _buildSectionPropsString(), and _parseHeaderFooterProperties().
Referenced by _buildSectionPropsString(), and _parseHeaderFooterProperties().
Referenced by _buildSectionPropsString(), and _parseHeaderFooterProperties().
Referenced by _buildSectionPropsString(), and _parsePageLayoutProperties().
Referenced by _buildSectionPropsString(), _parsePageLayoutProperties(), and getMarginLeft().
Referenced by _buildSectionPropsString(), _parsePageLayoutProperties(), and getMarginRight().
Referenced by _buildSectionPropsString(), and _parsePageLayoutProperties().
UT_UTF8String ODi_Style_PageLayout::m_name [private] |
Referenced by getName(), and startElement().
Referenced by _buildSectionPropsString(), _parsePageLayoutProperties(), and definePageSizeTag().
Referenced by _buildSectionPropsString(), _parsePageLayoutProperties(), and definePageSizeTag().
Referenced by _buildSectionPropsString(), _parsePageLayoutProperties(), and definePageSizeTag().
ODi_Abi_Data& ODi_Style_PageLayout::m_rAbiData [private] |
Referenced by _parseBackgroundImage().
Referenced by _buildSectionDataIDString(), and getSectionDataID().
1.7.1