LibreOffice Module lotuswordpro (master) 1
Public Member Functions | Private Attributes | List of all members
XFPageMaster Class Reference

#include <xfpagemaster.hxx>

Inheritance diagram for XFPageMaster:
[legend]
Collaboration diagram for XFPageMaster:
[legend]

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
 
XFStyleoperator= (XFStyle const &)=default
 
XFStyleoperator= (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
 
IXFStyleoperator= (IXFStyle const &)=default
 
IXFStyleoperator= (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< XFBordersm_pBorders
 
std::unique_ptr< XFShadowm_pShadow
 
XFColor m_aBackColor
 
std::unique_ptr< XFColumnsm_pColumns
 
std::unique_ptr< XFBGImagem_pBGImage
 
std::unique_ptr< XFHeaderStylem_pHeaderStyle
 
std::unique_ptr< XFFooterStylem_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
 

Detailed Description

Definition at line 76 of file xfpagemaster.hxx.

Constructor & Destructor Documentation

◆ XFPageMaster()

XFPageMaster::XFPageMaster ( )

Definition at line 72 of file xfpagemaster.cxx.

◆ ~XFPageMaster()

XFPageMaster::~XFPageMaster ( )
overridevirtual

Definition at line 79 of file xfpagemaster.cxx.

Member Function Documentation

◆ GetStyleFamily()

enumXFStyle XFPageMaster::GetStyleFamily ( )
overridevirtual

@descr get style family.

Reimplemented from XFStyle.

Definition at line 83 of file xfpagemaster.cxx.

References enumXFStylePageMaster.

◆ SetBackColor()

void XFPageMaster::SetBackColor ( XFColor  color)

Definition at line 122 of file xfpagemaster.cxx.

References m_aBackColor.

Referenced by LwpPageLayout::ParseBackColor().

◆ SetBackImage()

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().

◆ SetBorders()

void XFPageMaster::SetBorders ( std::unique_ptr< XFBorders pBorders)

Definition at line 110 of file xfpagemaster.cxx.

References m_pBorders.

Referenced by LwpPageLayout::ParseBorders().

◆ SetColumns()

void XFPageMaster::SetColumns ( XFColumns pColumns)

Definition at line 132 of file xfpagemaster.cxx.

References m_pColumns.

Referenced by LwpPageLayout::ParseColumns(), and LwpPageLayout::ResetXFColumns().

◆ SetFooterStyle()

void XFPageMaster::SetFooterStyle ( XFFooterStyle pFooterStyle)

Definition at line 146 of file xfpagemaster.cxx.

References m_pFooterStyle.

Referenced by LwpFooterLayout::RegisterStyle().

◆ SetFootNoteSeparator()

void XFPageMaster::SetFootNoteSeparator ( enumXFAlignType  align,
double  width,
sal_Int32  lengthPercent,
double  spaceAbove,
double  spaceBelow,
XFColor  color 
)

◆ SetHeaderStyle()

void XFPageMaster::SetHeaderStyle ( XFHeaderStyle pHeaderStyle)

Definition at line 139 of file xfpagemaster.cxx.

References m_pHeaderStyle.

Referenced by LwpHeaderLayout::RegisterStyle().

◆ SetMargins()

void XFPageMaster::SetMargins ( double  left,
double  right,
double  top,
double  bottom 
)

◆ SetPageHeight()

void XFPageMaster::SetPageHeight ( double  height)

Definition at line 93 of file xfpagemaster.cxx.

References m_fPageHeight.

Referenced by LwpPageLayout::ParseGeometry().

◆ SetPageUsage()

void XFPageMaster::SetPageUsage ( enumXFPageUsage  usage)
inline

Definition at line 147 of file xfpagemaster.hxx.

References m_eUsage.

◆ SetPageWidth()

void XFPageMaster::SetPageWidth ( double  width)

Definition at line 88 of file xfpagemaster.cxx.

References m_fPageWidth.

Referenced by LwpPageLayout::ParseGeometry().

◆ SetShadow()

void XFPageMaster::SetShadow ( XFShadow pShadow)

Definition at line 115 of file xfpagemaster.cxx.

References m_pShadow.

Referenced by LwpPageLayout::ParseShadow().

◆ SetTextDir()

void XFPageMaster::SetTextDir ( enumXFTextDir  dir)
inline

Definition at line 152 of file xfpagemaster.hxx.

References m_eTextDir.

◆ ToXml()

void XFPageMaster::ToXml ( IXFStream pStream)
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().

Member Data Documentation

◆ m_aBackColor

XFColor XFPageMaster::m_aBackColor
private

Definition at line 131 of file xfpagemaster.hxx.

Referenced by SetBackColor(), and ToXml().

◆ m_aMargin

XFMargins XFPageMaster::m_aMargin
private

Definition at line 124 of file xfpagemaster.hxx.

Referenced by SetMargins(), and ToXml().

◆ m_aSepColor

XFColor XFPageMaster::m_aSepColor
private

Definition at line 140 of file xfpagemaster.hxx.

Referenced by SetFootNoteSeparator(), and ToXml().

◆ m_eSepAlign

enumXFAlignType XFPageMaster::m_eSepAlign
private

Definition at line 138 of file xfpagemaster.hxx.

Referenced by SetFootNoteSeparator(), and ToXml().

◆ m_eTextDir

enumXFTextDir XFPageMaster::m_eTextDir
private

Definition at line 127 of file xfpagemaster.hxx.

Referenced by SetTextDir(), and ToXml().

◆ m_eUsage

enumXFPageUsage XFPageMaster::m_eUsage
private

Definition at line 126 of file xfpagemaster.hxx.

Referenced by SetPageUsage(), and ToXml().

◆ m_fPageHeight

double XFPageMaster::m_fPageHeight
private

Definition at line 122 of file xfpagemaster.hxx.

Referenced by SetPageHeight(), and ToXml().

◆ m_fPageWidth

double XFPageMaster::m_fPageWidth
private

Definition at line 121 of file xfpagemaster.hxx.

Referenced by SetPageWidth(), and ToXml().

◆ m_fSepSpaceAbove

double XFPageMaster::m_fSepSpaceAbove
private

Definition at line 141 of file xfpagemaster.hxx.

Referenced by SetFootNoteSeparator(), and ToXml().

◆ m_fSepSpaceBelow

double XFPageMaster::m_fSepSpaceBelow
private

Definition at line 142 of file xfpagemaster.hxx.

Referenced by SetFootNoteSeparator(), and ToXml().

◆ m_fSepWidth

double XFPageMaster::m_fSepWidth
private

Definition at line 139 of file xfpagemaster.hxx.

Referenced by SetFootNoteSeparator(), and ToXml().

◆ m_nSepLengthPercent

sal_Int32 XFPageMaster::m_nSepLengthPercent
private

Definition at line 143 of file xfpagemaster.hxx.

Referenced by SetFootNoteSeparator(), and ToXml().

◆ m_pBGImage

std::unique_ptr<XFBGImage> XFPageMaster::m_pBGImage
private

Definition at line 133 of file xfpagemaster.hxx.

Referenced by SetBackImage(), and ToXml().

◆ m_pBorders

std::unique_ptr<XFBorders> XFPageMaster::m_pBorders
private

Definition at line 129 of file xfpagemaster.hxx.

Referenced by SetBorders(), and ToXml().

◆ m_pColumns

std::unique_ptr<XFColumns> XFPageMaster::m_pColumns
private

Definition at line 132 of file xfpagemaster.hxx.

Referenced by SetColumns(), and ToXml().

◆ m_pFooterStyle

std::unique_ptr<XFFooterStyle> XFPageMaster::m_pFooterStyle
private

Definition at line 136 of file xfpagemaster.hxx.

Referenced by SetFooterStyle(), and ToXml().

◆ m_pHeaderStyle

std::unique_ptr<XFHeaderStyle> XFPageMaster::m_pHeaderStyle
private

Definition at line 135 of file xfpagemaster.hxx.

Referenced by SetHeaderStyle(), and ToXml().

◆ m_pShadow

std::unique_ptr<XFShadow> XFPageMaster::m_pShadow
private

Definition at line 130 of file xfpagemaster.hxx.

Referenced by SetShadow(), and ToXml().


The documentation for this class was generated from the following files: