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

Column style, it has only one property-the column width. More...

#include <xfcolstyle.hxx>

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

Public Member Functions

 XFColStyle ()
 
virtual ~XFColStyle () override
 
void SetWidth (double width)
 @descr Set column width. More...
 
double GetWidth () const
 @descr return column width. More...
 
virtual enumXFStyle GetStyleFamily () override
 @descr get style family. More...
 
virtual void ToXml (IXFStream *pStrm) override
 @descr output column style as an xml node. 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_fWidth
 

Additional Inherited Members

- Protected Attributes inherited from XFStyle
OUString m_strStyleName
 
OUString m_strParentStyleName
 

Detailed Description

Column style, it has only one property-the column width.

Definition at line 69 of file xfcolstyle.hxx.

Constructor & Destructor Documentation

◆ XFColStyle()

XFColStyle::XFColStyle ( )

Definition at line 63 of file xfcolstyle.cxx.

References m_fWidth.

◆ ~XFColStyle()

XFColStyle::~XFColStyle ( )
overridevirtual

Definition at line 65 of file xfcolstyle.cxx.

Member Function Documentation

◆ GetStyleFamily()

enumXFStyle XFColStyle::GetStyleFamily ( )
overridevirtual

@descr get style family.

Reimplemented from XFStyle.

Definition at line 67 of file xfcolstyle.cxx.

References enumXFStyleTableCol.

◆ GetWidth()

double XFColStyle::GetWidth ( ) const
inline

@descr return column width.

Definition at line 100 of file xfcolstyle.hxx.

References m_fWidth.

Referenced by LwpCellLayout::GetActualWidth().

◆ SetWidth()

void XFColStyle::SetWidth ( double  width)
inline

@descr Set column width.

Definition at line 98 of file xfcolstyle.hxx.

References m_fWidth.

◆ ToXml()

void XFColStyle::ToXml ( IXFStream pStrm)
overridevirtual

@descr output column style as an xml node.

Implements IXFStyle.

Definition at line 69 of file xfcolstyle.cxx.

References IXFAttrList::AddAttribute(), IXFAttrList::Clear(), IXFStream::EndElement(), IXFStream::GetAttrList(), XFStyle::GetStyleName(), m_fWidth, and IXFStream::StartElement().

Member Data Documentation

◆ m_fWidth

double XFColStyle::m_fWidth
private

Definition at line 95 of file xfcolstyle.hxx.

Referenced by GetWidth(), SetWidth(), ToXml(), and XFColStyle().


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