LibreOffice Module lotuswordpro (master) 1
|
#include <xfheaderstyle.hxx>
Public Member Functions | |
XFHeaderStyle (bool isFooter=false) | |
virtual | ~XFHeaderStyle () override |
void | SetMargins (double left, double right, double bottom) |
@descr Set margins for header style. More... | |
void | SetDynamicSpace (bool dynamic) |
void | SetHeight (double height) |
@descr Set header fixed height. More... | |
void | SetMinHeight (double minHeight) |
@descr Set header min height. More... | |
void | SetShadow (XFShadow *pShadow) |
@descr Set header shadow. More... | |
void | SetBorders (std::unique_ptr< XFBorders > pBorders) |
@descr Set header borders. More... | |
void | SetBackImage (std::unique_ptr< XFBGImage > &rImage) |
void | SetBackColor (XFColor color) |
@descr Set header background color. More... | |
virtual void | ToXml (IXFStream *pStrm) override |
@descr Output header style object. 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 |
Protected Attributes | |
bool | m_bIsFooter |
bool | m_bDynamicSpace |
double | m_fHeight |
double | m_fMinHeight |
XFMargins | m_aMargin |
std::unique_ptr< XFShadow > | m_pShadow |
XFPadding | m_aPadding |
std::unique_ptr< XFBorders > | m_pBorders |
std::unique_ptr< XFBGImage > | m_pBGImage |
XFColor | m_aBackColor |
Protected Attributes inherited from XFStyle | |
OUString | m_strStyleName |
OUString | m_strParentStyleName |
Definition at line 75 of file xfheaderstyle.hxx.
|
explicit |
Definition at line 63 of file xfheaderstyle.cxx.
References m_bDynamicSpace, m_bIsFooter, m_fHeight, and m_fMinHeight.
|
overridevirtual |
Definition at line 71 of file xfheaderstyle.cxx.
void XFHeaderStyle::SetBackColor | ( | XFColor | color | ) |
@descr Set header background color.
Definition at line 116 of file xfheaderstyle.cxx.
References m_aBackColor.
Referenced by LwpFooterLayout::ParseBackColor(), and LwpHeaderLayout::ParseBackColor().
void XFHeaderStyle::SetBackImage | ( | std::unique_ptr< XFBGImage > & | rImage | ) |
Definition at line 111 of file xfheaderstyle.cxx.
References m_pBGImage.
Referenced by LwpFooterLayout::ParsePatternFill(), LwpHeaderLayout::ParsePatternFill(), LwpFooterLayout::ParseWaterMark(), and LwpHeaderLayout::ParseWaterMark().
void XFHeaderStyle::SetBorders | ( | std::unique_ptr< XFBorders > | pBorders | ) |
@descr Set header borders.
Definition at line 106 of file xfheaderstyle.cxx.
References m_pBorders.
Referenced by LwpFooterLayout::ParseBorder(), and LwpHeaderLayout::ParseBorder().
void XFHeaderStyle::SetDynamicSpace | ( | bool | dynamic | ) |
Definition at line 84 of file xfheaderstyle.cxx.
References m_bDynamicSpace.
Referenced by LwpFooterLayout::ParseMargins(), and LwpHeaderLayout::ParseMargins().
void XFHeaderStyle::SetHeight | ( | double | height | ) |
@descr Set header fixed height.
Definition at line 89 of file xfheaderstyle.cxx.
References m_fHeight.
Referenced by LwpFooterLayout::ParseMargins(), and LwpHeaderLayout::ParseMargins().
void XFHeaderStyle::SetMargins | ( | double | left, |
double | right, | ||
double | bottom | ||
) |
@descr Set margins for header style.
Definition at line 75 of file xfheaderstyle.cxx.
References bottom, left, m_aMargin, right, XFMargins::SetBottom(), XFMargins::SetLeft(), and XFMargins::SetRight().
Referenced by LwpHeaderLayout::ParseMargins().
void XFHeaderStyle::SetMinHeight | ( | double | minHeight | ) |
@descr Set header min height.
Definition at line 94 of file xfheaderstyle.cxx.
References m_fMinHeight.
Referenced by LwpFooterLayout::ParseMargins(), and LwpHeaderLayout::ParseMargins().
void XFHeaderStyle::SetShadow | ( | XFShadow * | pShadow | ) |
@descr Set header shadow.
Definition at line 99 of file xfheaderstyle.cxx.
References m_pShadow.
Referenced by LwpFooterLayout::ParseShadow(), and LwpHeaderLayout::ParseShadow().
|
overridevirtual |
@descr Output header style object.
Implements IXFStyle.
Definition at line 121 of file xfheaderstyle.cxx.
References IXFAttrList::AddAttribute(), IXFAttrList::Clear(), IXFStream::EndElement(), IXFStream::GetAttrList(), XFColor::IsValid(), m_aBackColor, m_aMargin, m_aPadding, m_bDynamicSpace, m_bIsFooter, m_fHeight, m_fMinHeight, m_pBGImage, m_pBorders, m_pShadow, IXFStream::StartElement(), XFColor::ToString(), XFMargins::ToXml(), and XFPadding::ToXml().
|
protected |
Definition at line 132 of file xfheaderstyle.hxx.
Referenced by SetBackColor(), and ToXml().
|
protected |
Definition at line 127 of file xfheaderstyle.hxx.
Referenced by SetMargins(), XFFooterStyle::SetMargins(), and ToXml().
|
protected |
Definition at line 129 of file xfheaderstyle.hxx.
Referenced by ToXml().
|
protected |
Definition at line 124 of file xfheaderstyle.hxx.
Referenced by SetDynamicSpace(), ToXml(), and XFHeaderStyle().
|
protected |
Definition at line 123 of file xfheaderstyle.hxx.
Referenced by ToXml(), and XFHeaderStyle().
|
protected |
Definition at line 125 of file xfheaderstyle.hxx.
Referenced by SetHeight(), ToXml(), and XFHeaderStyle().
|
protected |
Definition at line 126 of file xfheaderstyle.hxx.
Referenced by SetMinHeight(), ToXml(), and XFHeaderStyle().
|
protected |
Definition at line 131 of file xfheaderstyle.hxx.
Referenced by SetBackImage(), and ToXml().
|
protected |
Definition at line 130 of file xfheaderstyle.hxx.
Referenced by SetBorders(), and ToXml().
|
protected |
Definition at line 128 of file xfheaderstyle.hxx.
Referenced by SetShadow(), and ToXml().