LibreOffice Module lotuswordpro (master) 1
|
@descr Style object for cell. More...
#include <xfcellstyle.hxx>
Public Member Functions | |
XFCellStyle () | |
virtual | ~XFCellStyle () override |
void | SetDataStyle (const OUString &style) |
@descr Set cell data format style name. More... | |
void | SetPadding (double left, double right, double top, double bottom) |
@descr: Set the padding of the paragraph.This is the distance between the border and the top of the text. More... | |
void | SetAlignType (enumXFAlignType hori, enumXFAlignType vert) |
@descr: Set alignment property of the cell. More... | |
void | SetBorders (XFBorders *pBorders) |
@descr: The borders are complex, so you have to create one before use. More... | |
void | SetBackColor (XFColor const &color) |
@descr: Set background color of the cell. More... | |
void | SetBackImage (std::unique_ptr< XFBGImage > &rImage) |
descr: set cell background image. More... | |
virtual enumXFStyle | GetStyleFamily () override |
@descr get style family. More... | |
virtual bool | Equal (IXFStyle *pStyle) override |
Affirm whether two XFCellStyle objects are equal. More... | |
virtual void | ToXml (IXFStream *pStrm) override |
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 | |
OUString | m_strDataStyle |
enumXFAlignType | m_eHoriAlign |
enumXFAlignType | m_eVertAlign |
XFColor | m_aBackColor |
std::unique_ptr< XFBGImage > | m_xBackImage |
XFMargins | m_aMargin |
XFPadding | m_aPadding |
rtl::Reference< XFFont > | m_pFont |
XFShadow | m_aShadow |
std::unique_ptr< XFBorders > | m_pBorders |
Additional Inherited Members | |
Protected Attributes inherited from XFStyle | |
OUString | m_strStyleName |
OUString | m_strParentStyleName |
@descr Style object for cell.
Definition at line 84 of file xfcellstyle.hxx.
XFCellStyle::XFCellStyle | ( | ) |
Definition at line 66 of file xfcellstyle.cxx.
|
overridevirtual |
Definition at line 71 of file xfcellstyle.cxx.
|
overridevirtual |
Affirm whether two XFCellStyle objects are equal.
Reimplemented from XFStyle.
Definition at line 110 of file xfcellstyle.cxx.
References enumXFStyleTableCell, IXFStyle::GetStyleFamily(), m_aBackColor, m_aMargin, m_aPadding, m_aShadow, m_eHoriAlign, m_eVertAlign, m_pBorders, m_pFont, m_strDataStyle, XFStyle::m_strParentStyleName, and m_xBackImage.
|
overridevirtual |
@descr get style family.
Reimplemented from XFStyle.
Definition at line 102 of file xfcellstyle.cxx.
References enumXFStyleTableCell.
|
inline |
@descr: Set alignment property of the cell.
eAlign alignment type,left,right,center or justify. |
Definition at line 149 of file xfcellstyle.hxx.
References m_eHoriAlign, and m_eVertAlign.
void XFCellStyle::SetBackColor | ( | XFColor const & | color | ) |
@descr: Set background color of the cell.
color value of the back color. |
Definition at line 87 of file xfcellstyle.cxx.
References m_aBackColor.
Referenced by LwpCellLayout::ApplyBackColor().
void XFCellStyle::SetBackImage | ( | std::unique_ptr< XFBGImage > & | rImage | ) |
descr: set cell background image.
Definition at line 92 of file xfcellstyle.cxx.
References m_xBackImage.
Referenced by LwpCellLayout::ApplyPatternFill(), and LwpCellLayout::ApplyWatermark().
void XFCellStyle::SetBorders | ( | XFBorders * | pBorders | ) |
@descr: The borders are complex, so you have to create one before use.
Very few paragraphs will already have borders property, this way we can save much memory.
pBorders borders of the paragraph, please reference the XFBorders. |
Definition at line 97 of file xfcellstyle.cxx.
References m_pBorders.
Referenced by LwpCellLayout::ApplyBorders().
|
inline |
@descr Set cell data format style name.
Definition at line 155 of file xfcellstyle.hxx.
References m_strDataStyle.
Referenced by LwpCellLayout::ApplyFmtStyle().
void XFCellStyle::SetPadding | ( | double | left, |
double | right, | ||
double | top, | ||
double | bottom | ||
) |
@descr: Set the padding of the paragraph.This is the distance between the border and the top of the text.
indent value of the padding. |
Definition at line 75 of file xfcellstyle.cxx.
References bottom, left, m_aPadding, right, XFPadding::SetBottom(), XFPadding::SetLeft(), XFPadding::SetRight(), XFPadding::SetTop(), and top.
Referenced by LwpCellLayout::ApplyPadding().
|
overridevirtual |
Implements IXFStyle.
Definition at line 184 of file xfcellstyle.cxx.
References IXFAttrList::AddAttribute(), IXFAttrList::Clear(), IXFStream::EndElement(), enumXFAlignNone, GetAlignName(), IXFStream::GetAttrList(), XFStyle::GetParentStyleName(), XFStyle::GetStyleName(), XFColor::IsValid(), m_aBackColor, m_aMargin, m_aPadding, m_aShadow, m_eHoriAlign, m_eVertAlign, m_pBorders, m_pFont, m_strDataStyle, XFStyle::m_strParentStyleName, m_xBackImage, IXFStream::StartElement(), XFColor::ToString(), XFMargins::ToXml(), XFPadding::ToXml(), and XFShadow::ToXml().
|
private |
Definition at line 140 of file xfcellstyle.hxx.
Referenced by Equal(), SetBackColor(), and ToXml().
|
private |
Definition at line 142 of file xfcellstyle.hxx.
|
private |
Definition at line 143 of file xfcellstyle.hxx.
Referenced by Equal(), SetPadding(), and ToXml().
|
private |
Definition at line 145 of file xfcellstyle.hxx.
|
private |
Definition at line 137 of file xfcellstyle.hxx.
Referenced by Equal(), SetAlignType(), and ToXml().
|
private |
Definition at line 138 of file xfcellstyle.hxx.
Referenced by Equal(), SetAlignType(), and ToXml().
|
private |
Definition at line 146 of file xfcellstyle.hxx.
Referenced by Equal(), SetBorders(), and ToXml().
|
private |
Definition at line 144 of file xfcellstyle.hxx.
|
private |
Definition at line 136 of file xfcellstyle.hxx.
Referenced by Equal(), SetDataStyle(), and ToXml().
|
private |
Definition at line 141 of file xfcellstyle.hxx.
Referenced by Equal(), SetBackImage(), and ToXml().