LibreOffice Module oox (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
oox::drawingml::TextFont Class Reference

carries a CT_TextFont More...

#include <textfont.hxx>

Public Member Functions

 TextFont ()
 
void setAttributes (const AttributeList &rAttribs)
 Sets attributes from the passed attribute list. More...
 
void setAttributes (const OUString &rFontName)
 Sets font name and init other attributes. More...
 
void assignIfUsed (const TextFont &rTextFont)
 Overwrites this text font with the passed text font, if it is used. More...
 
bool getFontData (OUString &rFontName, sal_Int16 &rnFontPitch, sal_Int16 &rnFontFamily, const ::oox::core::XmlFilterBase &rFilter) const
 Returns the font name, pitch, and family; tries to resolve theme placeholder names, e.g. More...
 

Private Member Functions

bool implGetFontData (OUString &rFontName, sal_Int16 &rnFontPitch, sal_Int16 &rnFontFamily) const
 

Private Attributes

OUString maTypeface
 
OUString maPanose
 
sal_Int32 mnPitch
 
sal_Int32 mnCharset
 

Detailed Description

carries a CT_TextFont

Definition at line 32 of file textfont.hxx.

Constructor & Destructor Documentation

oox::drawingml::TextFont::TextFont ( )
explicit

Definition at line 50 of file textfont.cxx.

Member Function Documentation

void oox::drawingml::TextFont::assignIfUsed ( const TextFont rTextFont)

Overwrites this text font with the passed text font, if it is used.

Definition at line 72 of file textfont.cxx.

References maTypeface.

Referenced by oox::drawingml::BulletList::apply(), and oox::drawingml::TextCharacterProperties::assignUsed().

bool oox::drawingml::TextFont::getFontData ( OUString &  rFontName,
sal_Int16 &  rnFontPitch,
sal_Int16 &  rnFontFamily,
const ::oox::core::XmlFilterBase rFilter 
) const

Returns the font name, pitch, and family; tries to resolve theme placeholder names, e.g.

'+mj-lt' for the major latin theme font.

Definition at line 78 of file textfont.cxx.

References oox::core::XmlFilterBase::getCurrentTheme(), implGetFontData(), and maTypeface.

Referenced by oox::drawingml::TextRun::insertAt(), oox::drawingml::BulletList::pushToPropMap(), and oox::drawingml::TextCharacterProperties::pushToPropMap().

bool oox::drawingml::TextFont::implGetFontData ( OUString &  rFontName,
sal_Int16 &  rnFontPitch,
sal_Int16 &  rnFontFamily 
) const
private

Definition at line 86 of file textfont.cxx.

References maTypeface, and mnPitch.

Referenced by getFontData().

void oox::drawingml::TextFont::setAttributes ( const AttributeList rAttribs)
void oox::drawingml::TextFont::setAttributes ( const OUString &  rFontName)

Sets font name and init other attributes.

Definition at line 64 of file textfont.cxx.

References maPanose, maTypeface, mnCharset, mnPitch, and oox::WINDOWS_CHARSET_DEFAULT.

Member Data Documentation

OUString oox::drawingml::TextFont::maPanose
private

Definition at line 62 of file textfont.hxx.

Referenced by setAttributes().

OUString oox::drawingml::TextFont::maTypeface
private

Definition at line 61 of file textfont.hxx.

Referenced by assignIfUsed(), getFontData(), implGetFontData(), and setAttributes().

sal_Int32 oox::drawingml::TextFont::mnCharset
private

Definition at line 64 of file textfont.hxx.

Referenced by setAttributes().

sal_Int32 oox::drawingml::TextFont::mnPitch
private

Definition at line 63 of file textfont.hxx.

Referenced by implGetFontData(), and setAttributes().


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