LibreOffice Module lotuswordpro (master) 1
|
#include <xfpagemaster.hxx>
Public Member Functions | |
XFPageMaster () | |
virtual | ~XFPageMaster () override |
void | SetPageWidth (double width) |
void | SetPageHeight (double height) |
void | SetMargins (double left, double right, double top, double bottom) |
void | SetPageUsage (enumXFPageUsage usage) |
void | SetBorders (std::unique_ptr< XFBorders > pBorders) |
void | SetShadow (XFShadow *pShadow) |
void | SetBackColor (XFColor color) |
void | SetBackImage (std::unique_ptr< XFBGImage > &rImage) |
void | SetColumns (XFColumns *pColumns) |
void | SetHeaderStyle (XFHeaderStyle *pHeaderStyle) |
void | SetFooterStyle (XFFooterStyle *pFooterStyle) |
void | SetTextDir (enumXFTextDir dir) |
void | SetFootNoteSeparator (enumXFAlignType align, double width, sal_Int32 lengthPercent, double spaceAbove, double spaceBelow, XFColor color) |
virtual enumXFStyle | GetStyleFamily () override |
@descr get style family. More... | |
virtual void | ToXml (IXFStream *pStream) override |
<style:page-master style:name="pm1"> <style:properties fo:page-width="20.999cm" fo:page-height="29.699cm" style:num-format="1" style:print-orientation="portrait" fo:margin-top="1.249cm" fo:margin-bottom="1.249cm" fo:margin-left="3.175cm" fo:margin-right="3.175cm" style:writing-mode="lr-tb" style:layout-grid-color="#c0c0c0" style:layout-grid-lines="42" style:layout-grid-base-height="0.494cm" style:layout-grid-ruby-height="0.141cm" style:layout-grid-mode="none" style:layout-grid-ruby-below="false" style:layout-grid-print="false" style:layout-grid-display="false" style:footnote-max-height="0cm"> <style:footnote-sep style:width="0.018cm" style:distance-before-sep="0.101cm" style:distance-after-sep="0.101cm" style:adjustment="left" style:rel-width="25%" style:color="#000000"/> </style:properties> <style:header-style> <style:properties fo:min-height="1.291cm" fo:margin-bottom="0.792cm" style:dynamic-spacing="true"/> </style:header-style> <style:footer-style> <style:properties fo:min-height="1.291cm" fo:margin-top="0.792cm" style:dynamic-spacing="true"/> </style:footer-style> </style:page-master> More... | |
Public Member Functions inherited from XFStyle | |
XFStyle () | |
virtual | ~XFStyle () override |
XFStyle (XFStyle const &)=default | |
XFStyle (XFStyle &&)=default | |
XFStyle & | operator= (XFStyle const &)=default |
XFStyle & | operator= (XFStyle &&)=default |
virtual OUString | GetStyleName () override |
@descr get style name. More... | |
virtual void | SetStyleName (const OUString &styleName) override |
@descr set style name. More... | |
virtual OUString | GetParentStyleName () override |
@descr set parent style name. More... | |
virtual void | SetParentStyleName (const OUString &styleName) override |
@descr return parent style name. More... | |
virtual enumXFStyle | GetStyleFamily () override |
@descr get style family. More... | |
virtual bool | Equal (IXFStyle *pStyle) override |
@descr decide whether two style are equal. More... | |
Public Member Functions inherited from IXFStyle | |
IXFStyle ()=default | |
IXFStyle (IXFStyle const &)=default | |
IXFStyle (IXFStyle &&)=default | |
IXFStyle & | operator= (IXFStyle const &)=default |
IXFStyle & | operator= (IXFStyle &&)=default |
virtual | ~IXFStyle () |
virtual OUString | GetStyleName ()=0 |
@descr: return the style name. More... | |
virtual void | SetStyleName (const OUString &styleName)=0 |
@descr: set the name of the style. More... | |
virtual OUString | GetParentStyleName ()=0 |
@descr return the parent style name. More... | |
virtual void | SetParentStyleName (const OUString &parent)=0 |
@descr: Parent paragraph style. More... | |
virtual enumXFStyle | GetStyleFamily ()=0 |
@descr: return the style family. More... | |
virtual bool | Equal (IXFStyle *pStyle)=0 |
@descr: Compare whatever two style object are the same. More... | |
virtual void | ToXml (IXFStream *stream)=0 |
Private Attributes | |
double | m_fPageWidth |
double | m_fPageHeight |
XFMargins | m_aMargin |
enumXFPageUsage | m_eUsage |
enumXFTextDir | m_eTextDir |
std::unique_ptr< XFBorders > | m_pBorders |
std::unique_ptr< XFShadow > | m_pShadow |
XFColor | m_aBackColor |
std::unique_ptr< XFColumns > | m_pColumns |
std::unique_ptr< XFBGImage > | m_pBGImage |
std::unique_ptr< XFHeaderStyle > | m_pHeaderStyle |
std::unique_ptr< XFFooterStyle > | m_pFooterStyle |
enumXFAlignType | m_eSepAlign |
double | m_fSepWidth |
XFColor | m_aSepColor |
double | m_fSepSpaceAbove |
double | m_fSepSpaceBelow |
sal_Int32 | m_nSepLengthPercent |
Additional Inherited Members | |
Protected Attributes inherited from XFStyle | |
OUString | m_strStyleName |
OUString | m_strParentStyleName |
Definition at line 76 of file xfpagemaster.hxx.
XFPageMaster::XFPageMaster | ( | ) |
Definition at line 72 of file xfpagemaster.cxx.
|
overridevirtual |
Definition at line 79 of file xfpagemaster.cxx.
|
overridevirtual |
@descr get style family.
Reimplemented from XFStyle.
Definition at line 83 of file xfpagemaster.cxx.
References enumXFStylePageMaster.
void XFPageMaster::SetBackColor | ( | XFColor | color | ) |
Definition at line 122 of file xfpagemaster.cxx.
References m_aBackColor.
Referenced by LwpPageLayout::ParseBackColor().
void XFPageMaster::SetBackImage | ( | std::unique_ptr< XFBGImage > & | rImage | ) |
Definition at line 127 of file xfpagemaster.cxx.
References m_pBGImage.
Referenced by LwpPageLayout::ParsePatternFill(), and LwpPageLayout::ParseWaterMark().
void XFPageMaster::SetBorders | ( | std::unique_ptr< XFBorders > | pBorders | ) |
Definition at line 110 of file xfpagemaster.cxx.
References m_pBorders.
Referenced by LwpPageLayout::ParseBorders().
void XFPageMaster::SetColumns | ( | XFColumns * | pColumns | ) |
Definition at line 132 of file xfpagemaster.cxx.
References m_pColumns.
Referenced by LwpPageLayout::ParseColumns(), and LwpPageLayout::ResetXFColumns().
void XFPageMaster::SetFooterStyle | ( | XFFooterStyle * | pFooterStyle | ) |
Definition at line 146 of file xfpagemaster.cxx.
References m_pFooterStyle.
Referenced by LwpFooterLayout::RegisterStyle().
void XFPageMaster::SetFootNoteSeparator | ( | enumXFAlignType | align, |
double | width, | ||
sal_Int32 | lengthPercent, | ||
double | spaceAbove, | ||
double | spaceBelow, | ||
XFColor | color | ||
) |
Definition at line 153 of file xfpagemaster.cxx.
References m_aSepColor, m_eSepAlign, m_fSepSpaceAbove, m_fSepSpaceBelow, m_fSepWidth, and m_nSepLengthPercent.
Referenced by LwpPageLayout::ParseFootNoteSeparator().
void XFPageMaster::SetHeaderStyle | ( | XFHeaderStyle * | pHeaderStyle | ) |
Definition at line 139 of file xfpagemaster.cxx.
References m_pHeaderStyle.
Referenced by LwpHeaderLayout::RegisterStyle().
void XFPageMaster::SetMargins | ( | double | left, |
double | right, | ||
double | top, | ||
double | bottom | ||
) |
Definition at line 98 of file xfpagemaster.cxx.
References bottom, left, m_aMargin, right, XFMargins::SetBottom(), XFMargins::SetLeft(), XFMargins::SetRight(), XFMargins::SetTop(), and top.
Referenced by LwpPageLayout::ParseMargins(), LwpHeaderLayout::RegisterStyle(), and LwpFooterLayout::RegisterStyle().
void XFPageMaster::SetPageHeight | ( | double | height | ) |
Definition at line 93 of file xfpagemaster.cxx.
References m_fPageHeight.
Referenced by LwpPageLayout::ParseGeometry().
|
inline |
Definition at line 147 of file xfpagemaster.hxx.
References m_eUsage.
void XFPageMaster::SetPageWidth | ( | double | width | ) |
Definition at line 88 of file xfpagemaster.cxx.
References m_fPageWidth.
Referenced by LwpPageLayout::ParseGeometry().
void XFPageMaster::SetShadow | ( | XFShadow * | pShadow | ) |
Definition at line 115 of file xfpagemaster.cxx.
References m_pShadow.
Referenced by LwpPageLayout::ParseShadow().
|
inline |
Definition at line 152 of file xfpagemaster.hxx.
References m_eTextDir.
|
overridevirtual |
<style:page-master style:name="pm1"> <style:properties fo:page-width="20.999cm" fo:page-height="29.699cm" style:num-format="1" style:print-orientation="portrait" fo:margin-top="1.249cm" fo:margin-bottom="1.249cm" fo:margin-left="3.175cm" fo:margin-right="3.175cm" style:writing-mode="lr-tb" style:layout-grid-color="#c0c0c0" style:layout-grid-lines="42" style:layout-grid-base-height="0.494cm" style:layout-grid-ruby-height="0.141cm" style:layout-grid-mode="none" style:layout-grid-ruby-below="false" style:layout-grid-print="false" style:layout-grid-display="false" style:footnote-max-height="0cm"> <style:footnote-sep style:width="0.018cm" style:distance-before-sep="0.101cm" style:distance-after-sep="0.101cm" style:adjustment="left" style:rel-width="25%" style:color="#000000"/> </style:properties> <style:header-style> <style:properties fo:min-height="1.291cm" fo:margin-bottom="0.792cm" style:dynamic-spacing="true"/> </style:header-style> <style:footer-style> <style:properties fo:min-height="1.291cm" fo:margin-top="0.792cm" style:dynamic-spacing="true"/> </style:footer-style> </style:page-master>
Implements IXFStyle.
Definition at line 192 of file xfpagemaster.cxx.
References IXFAttrList::AddAttribute(), IXFAttrList::Clear(), IXFStream::EndElement(), enumXFAlignCenter, enumXFAlignEnd, enumXFAlignStart, enumXFPageUsageNone, enumXFTextDirNone, IXFStream::GetAttrList(), GetPageUsageName(), XFStyle::GetStyleName(), GetTextDirName(), XFColor::IsValid(), m_aBackColor, m_aMargin, m_aSepColor, m_eSepAlign, m_eTextDir, m_eUsage, m_fPageHeight, m_fPageWidth, m_fSepSpaceAbove, m_fSepSpaceBelow, m_fSepWidth, m_nSepLengthPercent, m_pBGImage, m_pBorders, m_pColumns, m_pFooterStyle, m_pHeaderStyle, m_pShadow, IXFStream::StartElement(), XFColor::ToString(), and XFMargins::ToXml().
|
private |
Definition at line 131 of file xfpagemaster.hxx.
Referenced by SetBackColor(), and ToXml().
|
private |
Definition at line 124 of file xfpagemaster.hxx.
Referenced by SetMargins(), and ToXml().
|
private |
Definition at line 140 of file xfpagemaster.hxx.
Referenced by SetFootNoteSeparator(), and ToXml().
|
private |
Definition at line 138 of file xfpagemaster.hxx.
Referenced by SetFootNoteSeparator(), and ToXml().
|
private |
Definition at line 127 of file xfpagemaster.hxx.
Referenced by SetTextDir(), and ToXml().
|
private |
Definition at line 126 of file xfpagemaster.hxx.
Referenced by SetPageUsage(), and ToXml().
|
private |
Definition at line 122 of file xfpagemaster.hxx.
Referenced by SetPageHeight(), and ToXml().
|
private |
Definition at line 121 of file xfpagemaster.hxx.
Referenced by SetPageWidth(), and ToXml().
|
private |
Definition at line 141 of file xfpagemaster.hxx.
Referenced by SetFootNoteSeparator(), and ToXml().
|
private |
Definition at line 142 of file xfpagemaster.hxx.
Referenced by SetFootNoteSeparator(), and ToXml().
|
private |
Definition at line 139 of file xfpagemaster.hxx.
Referenced by SetFootNoteSeparator(), and ToXml().
|
private |
Definition at line 143 of file xfpagemaster.hxx.
Referenced by SetFootNoteSeparator(), and ToXml().
|
private |
Definition at line 133 of file xfpagemaster.hxx.
Referenced by SetBackImage(), and ToXml().
|
private |
Definition at line 129 of file xfpagemaster.hxx.
Referenced by SetBorders(), and ToXml().
|
private |
Definition at line 132 of file xfpagemaster.hxx.
Referenced by SetColumns(), and ToXml().
|
private |
Definition at line 136 of file xfpagemaster.hxx.
Referenced by SetFooterStyle(), and ToXml().
|
private |
Definition at line 135 of file xfpagemaster.hxx.
Referenced by SetHeaderStyle(), and ToXml().
|
private |
Definition at line 130 of file xfpagemaster.hxx.
Referenced by SetShadow(), and ToXml().