LibreOffice Module lotuswordpro (master) 1
|
#include <xfnumberstyle.hxx>
Public Member Functions | |
XFNumberStyle () | |
void | SetDecimalDigits (sal_Int32 decimal) |
void | SetGroup () |
void | SetColor (const XFColor &color) |
const XFColor & | GetColor () 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 | |
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 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 |
Definition at line 67 of file xfnumberstyle.hxx.
XFNumberStyle::XFNumberStyle | ( | ) |
Definition at line 63 of file xfnumberstyle.cxx.
|
overridevirtual |
@descr decide whether two style are equal.
Reimplemented from XFStyle.
Definition at line 77 of file xfnumberstyle.cxx.
References enuMXFNumberCurrency, enumXFStyleNumber, IXFStyle::GetStyleFamily(), m_aColor, m_aNegativeColor, m_bGroup, m_bRedIfNegative, m_eType, m_nDecimalDigits, m_strCurrencySymbol, m_strNegativePrefix, m_strNegativeSuffix, m_strPrefix, and m_strSuffix.
|
inline |
Definition at line 77 of file xfnumberstyle.hxx.
References m_aColor.
Referenced by LwpTableLayout::PostProcessParagraph().
|
overridevirtual |
@descr get style family.
Reimplemented from XFStyle.
Definition at line 72 of file xfnumberstyle.cxx.
References enumXFStyleNumber.
|
inline |
Definition at line 131 of file xfnumberstyle.hxx.
References m_aColor.
Referenced by LwpNumericFormat::Convert().
|
inline |
Definition at line 113 of file xfnumberstyle.hxx.
References m_nDecimalDigits.
Referenced by LwpNumericFormat::Convert().
|
inline |
Definition at line 126 of file xfnumberstyle.hxx.
References m_bGroup.
Referenced by LwpNumericFormat::Convert(), and LwpNumericFormat::SetNumberType().
|
inline |
Definition at line 118 of file xfnumberstyle.hxx.
References m_aNegativeColor, m_bRedIfNegative, m_strNegativePrefix, m_strNegativeSuffix, and prefix.
Referenced by LwpNumericFormat::Convert().
|
inline |
Definition at line 136 of file xfnumberstyle.hxx.
Referenced by LwpNumericFormat::Convert(), and LwpNumericFormat::SetNumberType().
|
inline |
Definition at line 141 of file xfnumberstyle.hxx.
References m_strPrefix, and prefix.
Referenced by LwpNumericFormat::Convert().
|
inline |
Definition at line 146 of file xfnumberstyle.hxx.
References m_strSuffix.
Referenced by LwpNumericFormat::Convert().
|
overridevirtual |
Implements IXFStyle.
Definition at line 119 of file xfnumberstyle.cxx.
References enumXFText, m_bRedIfNegative, m_eType, ToXml_EndElement(), ToXml_Negative(), ToXml_Normal(), and ToXml_StartElement().
|
private |
Definition at line 240 of file xfnumberstyle.cxx.
References IXFAttrList::AddAttribute(), IXFStream::Characters(), IXFAttrList::Clear(), IXFStream::EndElement(), enuMXFNumberCurrency, enumXFNumberPercent, enumXFNumberScientific, IXFStream::GetAttrList(), m_aColor, m_aNegativeColor, m_bGroup, m_eType, m_nDecimalDigits, m_strCurrencySymbol, m_strNegativePrefix, m_strNegativeSuffix, m_strPrefix, m_strSuffix, IXFStream::StartElement(), and XFColor::ToString().
Referenced by ToXml_Negative(), and ToXml_Normal().
|
private |
Definition at line 174 of file xfnumberstyle.cxx.
References IXFAttrList::AddAttribute(), IXFAttrList::Clear(), IXFStream::EndElement(), enuMXFNumberCurrency, enumXFNumberNumber, enumXFNumberPercent, enumXFNumberScientific, enumXFText, IXFStream::GetAttrList(), XFStyle::GetStyleName(), and m_eType.
Referenced by ToXml(), ToXml_Negative(), and ToXml_Normal().
|
private |
Definition at line 215 of file xfnumberstyle.cxx.
References IXFAttrList::AddAttribute(), IXFAttrList::Clear(), IXFStream::EndElement(), IXFStream::GetAttrList(), XFStyle::GetStyleName(), XFStyle::SetStyleName(), IXFStream::StartElement(), ToXml_Content(), ToXml_EndElement(), ToXml_Normal(), and ToXml_StartElement().
Referenced by ToXml().
|
private |
Definition at line 206 of file xfnumberstyle.cxx.
References ToXml_Content(), ToXml_EndElement(), and ToXml_StartElement().
Referenced by ToXml(), and ToXml_Negative().
|
private |
Definition at line 139 of file xfnumberstyle.cxx.
References IXFAttrList::AddAttribute(), IXFAttrList::Clear(), enuMXFNumberCurrency, enumXFNumberNumber, enumXFNumberPercent, enumXFNumberScientific, enumXFText, IXFStream::GetAttrList(), XFStyle::GetParentStyleName(), XFStyle::GetStyleName(), m_eType, and IXFStream::StartElement().
Referenced by ToXml(), ToXml_Negative(), and ToXml_Normal().
|
private |
Definition at line 103 of file xfnumberstyle.hxx.
Referenced by Equal(), GetColor(), SetColor(), and ToXml_Content().
|
private |
Definition at line 108 of file xfnumberstyle.hxx.
Referenced by Equal(), SetNegativeStyle(), and ToXml_Content().
|
private |
Definition at line 102 of file xfnumberstyle.hxx.
Referenced by Equal(), SetGroup(), and ToXml_Content().
|
private |
Definition at line 107 of file xfnumberstyle.hxx.
Referenced by Equal(), SetNegativeStyle(), and ToXml().
|
private |
Definition at line 100 of file xfnumberstyle.hxx.
Referenced by Equal(), SetNumberType(), ToXml(), ToXml_Content(), ToXml_EndElement(), and ToXml_StartElement().
|
private |
Definition at line 101 of file xfnumberstyle.hxx.
Referenced by Equal(), SetDecimalDigits(), and ToXml_Content().
|
private |
Definition at line 104 of file xfnumberstyle.hxx.
Referenced by Equal(), and ToXml_Content().
|
private |
Definition at line 109 of file xfnumberstyle.hxx.
Referenced by Equal(), SetNegativeStyle(), and ToXml_Content().
|
private |
Definition at line 110 of file xfnumberstyle.hxx.
Referenced by Equal(), SetNegativeStyle(), and ToXml_Content().
|
private |
Definition at line 105 of file xfnumberstyle.hxx.
Referenced by Equal(), SetPrefix(), and ToXml_Content().
|
private |
Definition at line 106 of file xfnumberstyle.hxx.
Referenced by Equal(), SetSurfix(), and ToXml_Content().