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

#include <xfnumberstyle.hxx>

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

Public Member Functions

 XFNumberStyle ()
 
void SetDecimalDigits (sal_Int32 decimal)
 
void SetGroup ()
 
void SetColor (const XFColor &color)
 
const XFColorGetColor () const
 
void SetPrefix (const OUString &prefix)
 
void SetSurfix (const OUString &surfix)
 
void SetNegativeStyle (const OUString &prefix, const OUString &suffix, const XFColor &color)
 
void SetNumberType (enumXFNumberType type)
 
virtual enumXFStyle GetStyleFamily () override
 @descr get style family. More...
 
virtual bool Equal (IXFStyle *pStyle) override
 @descr decide whether two style 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 Member Functions

void ToXml_StartElement (IXFStream *pStrm)
 
void ToXml_EndElement (IXFStream *pStrm)
 
void ToXml_Normal (IXFStream *pStrm)
 
void ToXml_Negative (IXFStream *pStrm)
 
void ToXml_Content (IXFStream *pStrm, bool nagetive)
 

Private Attributes

enumXFNumberType m_eType
 
sal_Int32 m_nDecimalDigits
 
bool m_bGroup
 
XFColor m_aColor
 
OUString m_strCurrencySymbol
 
OUString m_strPrefix
 
OUString m_strSuffix
 
bool m_bRedIfNegative
 
XFColor m_aNegativeColor
 
OUString m_strNegativePrefix
 
OUString m_strNegativeSuffix
 

Additional Inherited Members

- Protected Attributes inherited from XFStyle
OUString m_strStyleName
 
OUString m_strParentStyleName
 

Detailed Description

Definition at line 67 of file xfnumberstyle.hxx.

Constructor & Destructor Documentation

◆ XFNumberStyle()

XFNumberStyle::XFNumberStyle ( )

Definition at line 63 of file xfnumberstyle.cxx.

References m_aColor, and m_eType.

Member Function Documentation

◆ Equal()

bool XFNumberStyle::Equal ( IXFStyle pStyle)
overridevirtual

◆ GetColor()

const XFColor & XFNumberStyle::GetColor ( ) const
inline

Definition at line 77 of file xfnumberstyle.hxx.

References m_aColor.

Referenced by LwpTableLayout::PostProcessParagraph().

◆ GetStyleFamily()

enumXFStyle XFNumberStyle::GetStyleFamily ( )
overridevirtual

@descr get style family.

Reimplemented from XFStyle.

Definition at line 72 of file xfnumberstyle.cxx.

References enumXFStyleNumber.

◆ SetColor()

void XFNumberStyle::SetColor ( const XFColor color)
inline

Definition at line 131 of file xfnumberstyle.hxx.

References m_aColor.

Referenced by LwpNumericFormat::Convert().

◆ SetDecimalDigits()

void XFNumberStyle::SetDecimalDigits ( sal_Int32  decimal)
inline

Definition at line 113 of file xfnumberstyle.hxx.

References m_nDecimalDigits.

Referenced by LwpNumericFormat::Convert().

◆ SetGroup()

void XFNumberStyle::SetGroup ( )
inline

Definition at line 126 of file xfnumberstyle.hxx.

References m_bGroup.

Referenced by LwpNumericFormat::Convert(), and LwpNumericFormat::SetNumberType().

◆ SetNegativeStyle()

void XFNumberStyle::SetNegativeStyle ( const OUString &  prefix,
const OUString &  suffix,
const XFColor color 
)
inline

◆ SetNumberType()

void XFNumberStyle::SetNumberType ( enumXFNumberType  type)
inline

Definition at line 136 of file xfnumberstyle.hxx.

References m_eType, and type.

Referenced by LwpNumericFormat::Convert(), and LwpNumericFormat::SetNumberType().

◆ SetPrefix()

void XFNumberStyle::SetPrefix ( const OUString &  prefix)
inline

Definition at line 141 of file xfnumberstyle.hxx.

References m_strPrefix, and prefix.

Referenced by LwpNumericFormat::Convert().

◆ SetSurfix()

void XFNumberStyle::SetSurfix ( const OUString &  surfix)
inline

Definition at line 146 of file xfnumberstyle.hxx.

References m_strSuffix.

Referenced by LwpNumericFormat::Convert().

◆ ToXml()

void XFNumberStyle::ToXml ( IXFStream pStrm)
overridevirtual

◆ ToXml_Content()

void XFNumberStyle::ToXml_Content ( IXFStream pStrm,
bool  nagetive 
)
private

◆ ToXml_EndElement()

void XFNumberStyle::ToXml_EndElement ( IXFStream pStrm)
private

◆ ToXml_Negative()

void XFNumberStyle::ToXml_Negative ( IXFStream pStrm)
private

◆ ToXml_Normal()

void XFNumberStyle::ToXml_Normal ( IXFStream pStrm)
private

Definition at line 206 of file xfnumberstyle.cxx.

References ToXml_Content(), ToXml_EndElement(), and ToXml_StartElement().

Referenced by ToXml(), and ToXml_Negative().

◆ ToXml_StartElement()

void XFNumberStyle::ToXml_StartElement ( IXFStream pStrm)
private

Member Data Documentation

◆ m_aColor

XFColor XFNumberStyle::m_aColor
private

Definition at line 103 of file xfnumberstyle.hxx.

Referenced by Equal(), GetColor(), SetColor(), and ToXml_Content().

◆ m_aNegativeColor

XFColor XFNumberStyle::m_aNegativeColor
private

Definition at line 108 of file xfnumberstyle.hxx.

Referenced by Equal(), SetNegativeStyle(), and ToXml_Content().

◆ m_bGroup

bool XFNumberStyle::m_bGroup
private

Definition at line 102 of file xfnumberstyle.hxx.

Referenced by Equal(), SetGroup(), and ToXml_Content().

◆ m_bRedIfNegative

bool XFNumberStyle::m_bRedIfNegative
private

Definition at line 107 of file xfnumberstyle.hxx.

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

◆ m_eType

enumXFNumberType XFNumberStyle::m_eType
private

◆ m_nDecimalDigits

sal_Int32 XFNumberStyle::m_nDecimalDigits
private

Definition at line 101 of file xfnumberstyle.hxx.

Referenced by Equal(), SetDecimalDigits(), and ToXml_Content().

◆ m_strCurrencySymbol

OUString XFNumberStyle::m_strCurrencySymbol
private

Definition at line 104 of file xfnumberstyle.hxx.

Referenced by Equal(), and ToXml_Content().

◆ m_strNegativePrefix

OUString XFNumberStyle::m_strNegativePrefix
private

Definition at line 109 of file xfnumberstyle.hxx.

Referenced by Equal(), SetNegativeStyle(), and ToXml_Content().

◆ m_strNegativeSuffix

OUString XFNumberStyle::m_strNegativeSuffix
private

Definition at line 110 of file xfnumberstyle.hxx.

Referenced by Equal(), SetNegativeStyle(), and ToXml_Content().

◆ m_strPrefix

OUString XFNumberStyle::m_strPrefix
private

Definition at line 105 of file xfnumberstyle.hxx.

Referenced by Equal(), SetPrefix(), and ToXml_Content().

◆ m_strSuffix

OUString XFNumberStyle::m_strSuffix
private

Definition at line 106 of file xfnumberstyle.hxx.

Referenced by Equal(), SetSurfix(), and ToXml_Content().


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