A <style:page-layout> element. More...
#include <ODe_Style_PageLayout.h>
A <style:page-layout> element.
bool ODe_Style_PageLayout::_haveFooterInfo | ( | ) | const [inline, private] |
References UT_UTF8String::empty(), and m_footerHeight.
Referenced by write().
bool ODe_Style_PageLayout::_haveHeaderInfo | ( | ) | const [inline, private] |
References UT_UTF8String::empty(), and m_headerHeight.
Referenced by write().
void ODe_Style_PageLayout::fetchAttributesFromAbiDoc | ( | PD_Document * | pAbiDoc | ) |
void ODe_Style_PageLayout::fetchAttributesFromAbiSection | ( | const PP_AttrProp * | pAP | ) |
Fetch attributes from an AbiWord <section> tag.
Mostly page margins.
References DIM_CM, DIM_IN, gchar, PP_AttrProp::getAttribute(), fp_PageSize::getDefaultPageMargin(), PP_AttrProp::getProperty(), m_backgroundColor, m_backgroundImage, m_footerHeight, m_headerHeight, m_marginBottom, m_marginLeft, m_marginRight, m_marginTop, UT_UTF8String::size(), UT_colorToHex(), UT_convertToDimension(), UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by ODe_Main_Listener::openSection().
const gchar* ODe_Style_PageLayout::getName | ( | ) | const [inline] |
References m_name, and UT_UTF8String::utf8_str().
Referenced by ODe_AutomaticStyles::addPageLayout(), and ODe_Main_Listener::openSection().
const char* ODe_Style_PageLayout::getPageMarginHeader | ( | void | ) | [inline] |
References m_headerHeight, and UT_UTF8String::utf8_str().
Referenced by ODe_Text_Listener::insertPositionedImage().
const char* ODe_Style_PageLayout::getPageMarginLeft | ( | void | ) | [inline] |
References m_marginLeft, and UT_UTF8String::utf8_str().
Referenced by ODe_Frame_Listener::_openODTextbox(), and ODe_Text_Listener::insertPositionedImage().
const char* ODe_Style_PageLayout::getPageMarginTop | ( | void | ) | [inline] |
References m_marginTop, and UT_UTF8String::utf8_str().
Referenced by ODe_Frame_Listener::_openODTextbox(), and ODe_Text_Listener::insertPositionedImage().
bool ODe_Style_PageLayout::hasPageLayoutInfo | ( | const PP_AttrProp * | pAP | ) | [static] |
References gchar, PP_AttrProp::getAttribute(), and PP_AttrProp::getProperty().
Referenced by ODe_Main_Listener::openSection().
void ODe_Style_PageLayout::setName | ( | const UT_UTF8String & | rName | ) | [inline] |
References m_name.
void ODe_Style_PageLayout::setName | ( | const gchar * | pName | ) | [inline] |
References m_name.
Referenced by ODe_DocumentData::doPreListeningWork(), and ODe_Main_Listener::openSection().
bool ODe_Style_PageLayout::write | ( | GsfOutput * | pODT, | |
const UT_UTF8String & | rSpacesOffset | |||
) | const |
Write the <style:page-layout> element.
References _haveFooterInfo(), _haveHeaderInfo(), ODe_Style_Style::convertStyleToNCName(), UT_UTF8String::length(), m_backgroundColor, m_backgroundImage, m_footerHeight, m_headerHeight, m_marginBottom, m_marginLeft, m_marginRight, m_marginTop, m_name, m_pageHeight, m_pageWidth, m_printOrientation, ODe_writeAttribute(), ODe_writeUTF8String(), UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by fetchAttributesFromAbiSection(), and write().
Referenced by fetchAttributesFromAbiSection(), and write().
Referenced by _haveFooterInfo(), fetchAttributesFromAbiSection(), and write().
Referenced by _haveHeaderInfo(), fetchAttributesFromAbiSection(), getPageMarginHeader(), and write().
Referenced by fetchAttributesFromAbiSection(), and write().
Referenced by fetchAttributesFromAbiSection(), getPageMarginLeft(), and write().
Referenced by fetchAttributesFromAbiSection(), and write().
Referenced by fetchAttributesFromAbiSection(), getPageMarginTop(), and write().
UT_UTF8String ODe_Style_PageLayout::m_name [private] |
Referenced by fetchAttributesFromAbiDoc(), and write().
Referenced by fetchAttributesFromAbiDoc(), and write().
Referenced by fetchAttributesFromAbiDoc(), and write().