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

@descr The font struct of openoffice xml filter. More...

#include <xffont.hxx>

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

Public Member Functions

 XFFont ()
 
void SetFontName (const OUString &name)
 @descr Set font name. More...
 
void SetFontNameAsia (const OUString &name)
 @descr Set font name for asia locale. More...
 
void SetFontNameComplex (const OUString &name)
 @descr Set font name for BIDI locale. More...
 
void SetFontSize (sal_Int16 size)
 @descr Set font size. More...
 
void SetFontSizeAsia (sal_Int16 size)
 @descr Set font size for asia locale. More...
 
void SetFontSizeComplex (sal_Int16 size)
 @descr Set font size for BIDI locale. More...
 
void SetItalic (bool italic)
 @descr Set whether font is italic. More...
 
void SetItalicAsia (bool italic)
 @descr Set whether font is italic for asia locale. More...
 
void SetItalicComplex (bool italic)
 @descr Set whether font is italic for BIDI locale. More...
 
void SetBold (bool bold)
 @descr Set font bold. More...
 
void SetBoldAsia (bool bold)
 @descr Set font bold for asia locale. More...
 
void SetBoldComplex (bool bold)
 @descr Set font bold for complex locale. More...
 
void SetUnderline (enumXFUnderline underline, bool wordByWord=false)
 @descr Set underline style. More...
 
void SetCrossout (enumXFCrossout cross)
 @descr Set crossout. More...
 
void SetTransform (enumXFTransform transform)
 @descr Set font transform type,pls refer to enumXFTransform. More...
 
void SetPosition (bool bUpperScript=true, sal_Int16 pos=33, sal_Int16 scale=58)
 @descr Set upper script or lower script. More...
 
void SetColor (XFColor const &color)
 @descr Set font color. More...
 
void SetBackColor (XFColor const &color)
 @descr Set font background color. More...
 
void SetBackColorTransparent ()
 
enumXFTransform GetTransform () const
 
sal_Int16 GetFontSize () const
 
const XFColorGetColor () const
 
void ToXml (IXFStream *pStrm)
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Member Functions

virtual ~XFFont () override
 

Private Attributes

OUString m_strFontName
 
OUString m_strFontNameAsia
 
OUString m_strFontNameComplex
 
sal_Int16 m_nFontSize
 
sal_Int16 m_nFontSizeAsia
 
sal_Int16 m_nFontSizeComplex
 
bool m_bItalic
 
bool m_bItalicAsia
 
bool m_bItalicComplex
 
bool m_bBold
 
bool m_bBoldAsia
 
bool m_bBoldComplex
 
XFColor m_aUnderlineColor
 
enumXFUnderline m_eUnderline
 
enumXFCrossout m_eCrossout
 
enumXFTransform m_eTransform
 
bool m_bWordByWord
 
sal_Int16 m_nPosition
 
sal_Int16 m_nScale
 
XFColor m_aColor
 
XFColor m_aBackColor
 
sal_uInt32 m_nFlag
 
bool m_bTransparent
 

Friends

class XFFontFactory
 
bool operator== (XFFont const &f1, XFFont const &f2)
 
bool operator!= (XFFont const &f1, XFFont const &f2)
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

@descr The font struct of openoffice xml filter.

There should be some basic members,ie:

font name font family font size font italic font bold font underline font underline color

Definition at line 119 of file xffont.hxx.

Constructor & Destructor Documentation

◆ XFFont()

XFFont::XFFont ( )

Definition at line 64 of file xffont.cxx.

References m_nPosition.

◆ ~XFFont()

virtual XFFont::~XFFont ( )
inlineoverrideprivatevirtual

Definition at line 228 of file xffont.hxx.

Member Function Documentation

◆ GetColor()

const XFColor & XFFont::GetColor ( ) const
inline

Definition at line 411 of file xffont.hxx.

References m_aColor.

◆ GetFontSize()

sal_Int16 XFFont::GetFontSize ( ) const
inline

Definition at line 406 of file xffont.hxx.

References m_nFontSize.

◆ GetTransform()

enumXFTransform XFFont::GetTransform ( ) const
inline

Definition at line 401 of file xffont.hxx.

References m_eTransform.

◆ SetBackColor()

void XFFont::SetBackColor ( XFColor const &  color)
inline

@descr Set font background color.

Definition at line 388 of file xffont.hxx.

References m_aBackColor, m_bTransparent, m_nFlag, and XFFONT_FLAG_BGCOLOR.

◆ SetBackColorTransparent()

void XFFont::SetBackColorTransparent ( )
inline

Definition at line 395 of file xffont.hxx.

References m_bTransparent, m_nFlag, and XFFONT_FLAG_BGCOLOR.

◆ SetBold()

void XFFont::SetBold ( bool  bold)
inline

@descr Set font bold.

Definition at line 322 of file xffont.hxx.

References bold, m_bBold, m_nFlag, SetBoldAsia(), SetBoldComplex(), and XFFONT_FLAG_BOLD.

◆ SetBoldAsia()

void XFFont::SetBoldAsia ( bool  bold)
inline

@descr Set font bold for asia locale.

Definition at line 330 of file xffont.hxx.

References bold, m_bBoldAsia, m_nFlag, and XFFONT_FLAG_BOLD_ASIA.

Referenced by SetBold().

◆ SetBoldComplex()

void XFFont::SetBoldComplex ( bool  bold)
inline

@descr Set font bold for complex locale.

Definition at line 336 of file xffont.hxx.

References bold, m_bBoldComplex, m_nFlag, and XFFONT_FLAG_BOLD_COMPLEX.

Referenced by SetBold().

◆ SetColor()

void XFFont::SetColor ( XFColor const &  color)
inline

@descr Set font color.

Definition at line 382 of file xffont.hxx.

References m_aColor, m_nFlag, and XFFONT_FLAG_COLOR.

◆ SetCrossout()

void XFFont::SetCrossout ( enumXFCrossout  cross)
inline

@descr Set crossout.

Definition at line 350 of file xffont.hxx.

References cross(), m_bWordByWord, m_eCrossout, m_nFlag, and XFFONT_FLAG_CROSSOUT.

◆ SetFontName()

void XFFont::SetFontName ( const OUString &  name)
inline

@descr Set font name.

Definition at line 257 of file xffont.hxx.

References m_nFlag, m_strFontName, name, SetFontNameAsia(), SetFontNameComplex(), and XFFONT_FLAG_NAME.

◆ SetFontNameAsia()

void XFFont::SetFontNameAsia ( const OUString &  name)
inline

@descr Set font name for asia locale.

Definition at line 266 of file xffont.hxx.

References m_nFlag, m_strFontNameAsia, name, and XFFONT_FLAG_NAME_ASIA.

Referenced by SetFontName().

◆ SetFontNameComplex()

void XFFont::SetFontNameComplex ( const OUString &  name)
inline

@descr Set font name for BIDI locale.

Definition at line 272 of file xffont.hxx.

References m_nFlag, m_strFontNameComplex, name, and XFFONT_FLAG_NAME_COMPLEX.

Referenced by SetFontName().

◆ SetFontSize()

void XFFont::SetFontSize ( sal_Int16  size)
inline

@descr Set font size.

Definition at line 278 of file xffont.hxx.

References m_nFlag, m_nFontSize, SetFontSizeAsia(), SetFontSizeComplex(), size, and XFFONT_FLAG_SIZE.

◆ SetFontSizeAsia()

void XFFont::SetFontSizeAsia ( sal_Int16  size)
inline

@descr Set font size for asia locale.

Definition at line 287 of file xffont.hxx.

References m_nFlag, m_nFontSizeAsia, size, and XFFONT_FLAG_SIZE_ASIA.

Referenced by SetFontSize().

◆ SetFontSizeComplex()

void XFFont::SetFontSizeComplex ( sal_Int16  size)
inline

@descr Set font size for BIDI locale.

Definition at line 293 of file xffont.hxx.

References m_nFlag, m_nFontSizeComplex, size, and XFFONT_FLAG_SIZE_COMPLEX.

Referenced by SetFontSize().

◆ SetItalic()

void XFFont::SetItalic ( bool  italic)
inline

@descr Set whether font is italic.

Definition at line 300 of file xffont.hxx.

References italic, m_bItalic, m_nFlag, SetItalicAsia(), SetItalicComplex(), and XFFONT_FLAG_ITALIC.

◆ SetItalicAsia()

void XFFont::SetItalicAsia ( bool  italic)
inline

@descr Set whether font is italic for asia locale.

Definition at line 309 of file xffont.hxx.

References italic, m_bItalicAsia, m_nFlag, and XFFONT_FLAG_ITALIC_ASIA.

Referenced by SetItalic().

◆ SetItalicComplex()

void XFFont::SetItalicComplex ( bool  italic)
inline

@descr Set whether font is italic for BIDI locale.

Definition at line 315 of file xffont.hxx.

References italic, m_bItalicComplex, m_nFlag, and XFFONT_FLAG_ITALIC_COMPLEX.

Referenced by SetItalic().

◆ SetPosition()

void XFFont::SetPosition ( bool  bUpperScript = true,
sal_Int16  pos = 33,
sal_Int16  scale = 58 
)
inline

@descr Set upper script or lower script.

Definition at line 363 of file xffont.hxx.

References m_nFlag, m_nPosition, m_nScale, pos, scale, and XFFONT_FLAG_POSITION.

◆ SetTransform()

void XFFont::SetTransform ( enumXFTransform  transform)
inline

@descr Set font transform type,pls refer to enumXFTransform.

Definition at line 357 of file xffont.hxx.

References m_eTransform, m_nFlag, and XFFONT_FLAG_TRANSFORM.

◆ SetUnderline()

void XFFont::SetUnderline ( enumXFUnderline  underline,
bool  wordByWord = false 
)
inline

@descr Set underline style.

Definition at line 343 of file xffont.hxx.

References m_bWordByWord, m_eUnderline, m_nFlag, underline, and XFFONT_FLAG_UNDERLINE.

◆ ToXml()

void XFFont::ToXml ( IXFStream pStrm)

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( XFFont const &  f1,
XFFont const &  f2 
)
friend

Definition at line 187 of file xffont.cxx.

◆ operator==

bool operator== ( XFFont const &  f1,
XFFont const &  f2 
)
friend

Definition at line 103 of file xffont.cxx.

◆ XFFontFactory

friend class XFFontFactory
friend

Definition at line 226 of file xffont.hxx.

Member Data Documentation

◆ m_aBackColor

XFColor XFFont::m_aBackColor
private

Definition at line 251 of file xffont.hxx.

Referenced by SetBackColor(), and ToXml().

◆ m_aColor

XFColor XFFont::m_aColor
private

Definition at line 250 of file xffont.hxx.

Referenced by GetColor(), SetColor(), and ToXml().

◆ m_aUnderlineColor

XFColor XFFont::m_aUnderlineColor
private

Definition at line 242 of file xffont.hxx.

Referenced by ToXml().

◆ m_bBold

bool XFFont::m_bBold
private

Definition at line 239 of file xffont.hxx.

Referenced by SetBold(), and ToXml().

◆ m_bBoldAsia

bool XFFont::m_bBoldAsia
private

Definition at line 240 of file xffont.hxx.

Referenced by SetBoldAsia(), and ToXml().

◆ m_bBoldComplex

bool XFFont::m_bBoldComplex
private

Definition at line 241 of file xffont.hxx.

Referenced by SetBoldComplex(), and ToXml().

◆ m_bItalic

bool XFFont::m_bItalic
private

Definition at line 236 of file xffont.hxx.

Referenced by SetItalic(), and ToXml().

◆ m_bItalicAsia

bool XFFont::m_bItalicAsia
private

Definition at line 237 of file xffont.hxx.

Referenced by SetItalicAsia(), and ToXml().

◆ m_bItalicComplex

bool XFFont::m_bItalicComplex
private

Definition at line 238 of file xffont.hxx.

Referenced by SetItalicComplex(), and ToXml().

◆ m_bTransparent

bool XFFont::m_bTransparent
private

Definition at line 254 of file xffont.hxx.

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

◆ m_bWordByWord

bool XFFont::m_bWordByWord
private

Definition at line 247 of file xffont.hxx.

Referenced by SetCrossout(), SetUnderline(), and ToXml().

◆ m_eCrossout

enumXFCrossout XFFont::m_eCrossout
private

Definition at line 245 of file xffont.hxx.

Referenced by SetCrossout(), and ToXml().

◆ m_eTransform

enumXFTransform XFFont::m_eTransform
private

Definition at line 246 of file xffont.hxx.

Referenced by GetTransform(), SetTransform(), and ToXml().

◆ m_eUnderline

enumXFUnderline XFFont::m_eUnderline
private

Definition at line 244 of file xffont.hxx.

Referenced by SetUnderline(), and ToXml().

◆ m_nFlag

sal_uInt32 XFFont::m_nFlag
private

◆ m_nFontSize

sal_Int16 XFFont::m_nFontSize
private

Definition at line 233 of file xffont.hxx.

Referenced by GetFontSize(), SetFontSize(), and ToXml().

◆ m_nFontSizeAsia

sal_Int16 XFFont::m_nFontSizeAsia
private

Definition at line 234 of file xffont.hxx.

Referenced by SetFontSizeAsia(), and ToXml().

◆ m_nFontSizeComplex

sal_Int16 XFFont::m_nFontSizeComplex
private

Definition at line 235 of file xffont.hxx.

Referenced by SetFontSizeComplex(), and ToXml().

◆ m_nPosition

sal_Int16 XFFont::m_nPosition
private

Definition at line 248 of file xffont.hxx.

Referenced by SetPosition(), and ToXml().

◆ m_nScale

sal_Int16 XFFont::m_nScale
private

Definition at line 249 of file xffont.hxx.

Referenced by SetPosition(), and ToXml().

◆ m_strFontName

OUString XFFont::m_strFontName
private

Definition at line 230 of file xffont.hxx.

Referenced by SetFontName(), and ToXml().

◆ m_strFontNameAsia

OUString XFFont::m_strFontNameAsia
private

Definition at line 231 of file xffont.hxx.

Referenced by SetFontNameAsia(), and ToXml().

◆ m_strFontNameComplex

OUString XFFont::m_strFontNameComplex
private

Definition at line 232 of file xffont.hxx.

Referenced by SetFontNameComplex(), and ToXml().


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