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

@descr Style object for cell. More...

#include <xfcellstyle.hxx>

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

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
 
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

OUString m_strDataStyle
 
enumXFAlignType m_eHoriAlign
 
enumXFAlignType m_eVertAlign
 
XFColor m_aBackColor
 
std::unique_ptr< XFBGImagem_xBackImage
 
XFMargins m_aMargin
 
XFPadding m_aPadding
 
rtl::Reference< XFFontm_pFont
 
XFShadow m_aShadow
 
std::unique_ptr< XFBordersm_pBorders
 

Additional Inherited Members

- Protected Attributes inherited from XFStyle
OUString m_strStyleName
 
OUString m_strParentStyleName
 

Detailed Description

@descr Style object for cell.

Definition at line 84 of file xfcellstyle.hxx.

Constructor & Destructor Documentation

◆ XFCellStyle()

XFCellStyle::XFCellStyle ( )

Definition at line 66 of file xfcellstyle.cxx.

◆ ~XFCellStyle()

XFCellStyle::~XFCellStyle ( )
overridevirtual

Definition at line 71 of file xfcellstyle.cxx.

Member Function Documentation

◆ Equal()

bool XFCellStyle::Equal ( IXFStyle pStyle)
overridevirtual

◆ GetStyleFamily()

enumXFStyle XFCellStyle::GetStyleFamily ( )
overridevirtual

@descr get style family.

Reimplemented from XFStyle.

Definition at line 102 of file xfcellstyle.cxx.

References enumXFStyleTableCell.

◆ SetAlignType()

void XFCellStyle::SetAlignType ( enumXFAlignType  hori,
enumXFAlignType  vert 
)
inline

@descr: Set alignment property of the cell.

Parameters
eAlign alignment type,left,right,center or justify.

Definition at line 149 of file xfcellstyle.hxx.

References m_eHoriAlign, and m_eVertAlign.

◆ SetBackColor()

void XFCellStyle::SetBackColor ( XFColor const &  color)

@descr: Set background color of the cell.

Parameters
color value of the back color.

Definition at line 87 of file xfcellstyle.cxx.

References m_aBackColor.

Referenced by LwpCellLayout::ApplyBackColor().

◆ SetBackImage()

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

◆ SetBorders()

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.

Parameters
pBorders borders of the paragraph, please reference the XFBorders.

Definition at line 97 of file xfcellstyle.cxx.

References m_pBorders.

Referenced by LwpCellLayout::ApplyBorders().

◆ SetDataStyle()

void XFCellStyle::SetDataStyle ( const OUString &  style)
inline

@descr Set cell data format style name.

Definition at line 155 of file xfcellstyle.hxx.

References m_strDataStyle.

Referenced by LwpCellLayout::ApplyFmtStyle().

◆ SetPadding()

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.

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

◆ ToXml()

void XFCellStyle::ToXml ( IXFStream pStrm)
overridevirtual

Member Data Documentation

◆ m_aBackColor

XFColor XFCellStyle::m_aBackColor
private

Definition at line 140 of file xfcellstyle.hxx.

Referenced by Equal(), SetBackColor(), and ToXml().

◆ m_aMargin

XFMargins XFCellStyle::m_aMargin
private

Definition at line 142 of file xfcellstyle.hxx.

Referenced by Equal(), and ToXml().

◆ m_aPadding

XFPadding XFCellStyle::m_aPadding
private

Definition at line 143 of file xfcellstyle.hxx.

Referenced by Equal(), SetPadding(), and ToXml().

◆ m_aShadow

XFShadow XFCellStyle::m_aShadow
private

Definition at line 145 of file xfcellstyle.hxx.

Referenced by Equal(), and ToXml().

◆ m_eHoriAlign

enumXFAlignType XFCellStyle::m_eHoriAlign
private

Definition at line 137 of file xfcellstyle.hxx.

Referenced by Equal(), SetAlignType(), and ToXml().

◆ m_eVertAlign

enumXFAlignType XFCellStyle::m_eVertAlign
private

Definition at line 138 of file xfcellstyle.hxx.

Referenced by Equal(), SetAlignType(), and ToXml().

◆ m_pBorders

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

Definition at line 146 of file xfcellstyle.hxx.

Referenced by Equal(), SetBorders(), and ToXml().

◆ m_pFont

rtl::Reference<XFFont> XFCellStyle::m_pFont
private

Definition at line 144 of file xfcellstyle.hxx.

Referenced by Equal(), and ToXml().

◆ m_strDataStyle

OUString XFCellStyle::m_strDataStyle
private

Definition at line 136 of file xfcellstyle.hxx.

Referenced by Equal(), SetDataStyle(), and ToXml().

◆ m_xBackImage

std::unique_ptr<XFBGImage> XFCellStyle::m_xBackImage
private

Definition at line 141 of file xfcellstyle.hxx.

Referenced by Equal(), SetBackImage(), and ToXml().


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