LibreOffice Module lotuswordpro (master) 1
|
@descr The font struct of openoffice xml filter. More...
#include <xffont.hxx>
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 XFColor & | GetColor () 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 |
@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.
XFFont::XFFont | ( | ) |
Definition at line 64 of file xffont.cxx.
References m_nPosition.
|
inlineoverrideprivatevirtual |
Definition at line 228 of file xffont.hxx.
|
inline |
Definition at line 411 of file xffont.hxx.
References m_aColor.
|
inline |
Definition at line 406 of file xffont.hxx.
References m_nFontSize.
|
inline |
Definition at line 401 of file xffont.hxx.
References m_eTransform.
|
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.
|
inline |
Definition at line 395 of file xffont.hxx.
References m_bTransparent, m_nFlag, and XFFONT_FLAG_BGCOLOR.
|
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.
|
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().
|
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().
|
inline |
@descr Set font color.
Definition at line 382 of file xffont.hxx.
References m_aColor, m_nFlag, and XFFONT_FLAG_COLOR.
|
inline |
@descr Set crossout.
Definition at line 350 of file xffont.hxx.
References cross(), m_bWordByWord, m_eCrossout, m_nFlag, and XFFONT_FLAG_CROSSOUT.
|
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.
|
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().
|
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().
|
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.
|
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().
|
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().
|
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.
|
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().
|
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().
|
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.
|
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.
|
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.
void XFFont::ToXml | ( | IXFStream * | pStrm | ) |
Definition at line 192 of file xffont.cxx.
References IXFAttrList::AddAttribute(), enumXFTransformSmallCaps, IXFStream::GetAttrList(), GetCrossoutName(), GetTransformName(), GetUnderlineName(), m_aBackColor, m_aColor, m_aUnderlineColor, m_bBold, m_bBoldAsia, m_bBoldComplex, m_bItalic, m_bItalicAsia, m_bItalicComplex, m_bTransparent, m_bWordByWord, m_eCrossout, m_eTransform, m_eUnderline, m_nFlag, m_nFontSize, m_nFontSizeAsia, m_nFontSizeComplex, m_nPosition, m_nScale, m_strFontName, m_strFontNameAsia, m_strFontNameComplex, XFColor::ToString(), XFFONT_FLAG_BGCOLOR, XFFONT_FLAG_BOLD, XFFONT_FLAG_BOLD_ASIA, XFFONT_FLAG_COLOR, XFFONT_FLAG_CROSSOUT, XFFONT_FLAG_ITALIC, XFFONT_FLAG_ITALIC_ASIA, XFFONT_FLAG_ITALIC_COMPLEX, XFFONT_FLAG_NAME, XFFONT_FLAG_NAME_ASIA, XFFONT_FLAG_NAME_COMPLEX, XFFONT_FLAG_POSITION, XFFONT_FLAG_SCALE, XFFONT_FLAG_SIZE, XFFONT_FLAG_SIZE_ASIA, XFFONT_FLAG_SIZE_COMPLEX, XFFONT_FLAG_TRANSFORM, XFFONT_FLAG_UNDERLINE, and XFFONT_FLAG_UNDERLINECOLOR.
Definition at line 187 of file xffont.cxx.
Definition at line 103 of file xffont.cxx.
|
friend |
Definition at line 226 of file xffont.hxx.
|
private |
Definition at line 251 of file xffont.hxx.
Referenced by SetBackColor(), and ToXml().
|
private |
Definition at line 250 of file xffont.hxx.
Referenced by GetColor(), SetColor(), and ToXml().
|
private |
Definition at line 242 of file xffont.hxx.
Referenced by ToXml().
|
private |
Definition at line 239 of file xffont.hxx.
|
private |
Definition at line 240 of file xffont.hxx.
Referenced by SetBoldAsia(), and ToXml().
|
private |
Definition at line 241 of file xffont.hxx.
Referenced by SetBoldComplex(), and ToXml().
|
private |
Definition at line 236 of file xffont.hxx.
Referenced by SetItalic(), and ToXml().
|
private |
Definition at line 237 of file xffont.hxx.
Referenced by SetItalicAsia(), and ToXml().
|
private |
Definition at line 238 of file xffont.hxx.
Referenced by SetItalicComplex(), and ToXml().
|
private |
Definition at line 254 of file xffont.hxx.
Referenced by SetBackColor(), SetBackColorTransparent(), and ToXml().
|
private |
Definition at line 247 of file xffont.hxx.
Referenced by SetCrossout(), SetUnderline(), and ToXml().
|
private |
Definition at line 245 of file xffont.hxx.
Referenced by SetCrossout(), and ToXml().
|
private |
Definition at line 246 of file xffont.hxx.
Referenced by GetTransform(), SetTransform(), and ToXml().
|
private |
Definition at line 244 of file xffont.hxx.
Referenced by SetUnderline(), and ToXml().
|
private |
Definition at line 253 of file xffont.hxx.
Referenced by SetBackColor(), SetBackColorTransparent(), SetBold(), SetBoldAsia(), SetBoldComplex(), SetColor(), SetCrossout(), SetFontName(), SetFontNameAsia(), SetFontNameComplex(), SetFontSize(), SetFontSizeAsia(), SetFontSizeComplex(), SetItalic(), SetItalicAsia(), SetItalicComplex(), SetPosition(), SetTransform(), SetUnderline(), and ToXml().
|
private |
Definition at line 233 of file xffont.hxx.
Referenced by GetFontSize(), SetFontSize(), and ToXml().
|
private |
Definition at line 234 of file xffont.hxx.
Referenced by SetFontSizeAsia(), and ToXml().
|
private |
Definition at line 235 of file xffont.hxx.
Referenced by SetFontSizeComplex(), and ToXml().
|
private |
Definition at line 248 of file xffont.hxx.
Referenced by SetPosition(), and ToXml().
|
private |
Definition at line 249 of file xffont.hxx.
Referenced by SetPosition(), and ToXml().
|
private |
Definition at line 230 of file xffont.hxx.
Referenced by SetFontName(), and ToXml().
|
private |
Definition at line 231 of file xffont.hxx.
Referenced by SetFontNameAsia(), and ToXml().
|
private |
Definition at line 232 of file xffont.hxx.
Referenced by SetFontNameComplex(), and ToXml().