LibreOffice Module oox (master) 1
Public Member Functions | Static 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...
 
void fillThemeFont (model::ThemeFont &rThemeFont) const
 

Static Public Member Functions

static void resolvePitch (sal_Int32 nOoxPitch, sal_Int16 &rnFontPitch, sal_Int16 &rnFontFamily)
 

Private Member Functions

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

Private Attributes

OUString maTypeface
 
OUString maPanose
 
sal_Int32 mnPitchFamily
 
sal_Int32 mnCharset
 

Detailed Description

carries a CT_TextFont

Definition at line 33 of file textfont.hxx.

Constructor & Destructor Documentation

◆ TextFont()

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

Definition at line 51 of file textfont.cxx.

Member Function Documentation

◆ assignIfUsed()

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

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

Definition at line 73 of file textfont.cxx.

References maTypeface.

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

◆ fillThemeFont()

void oox::drawingml::TextFont::fillThemeFont ( model::ThemeFont rThemeFont) const

◆ getFontData()

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 79 of file textfont.cxx.

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

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

◆ implGetFontData()

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

Definition at line 87 of file textfont.cxx.

References maTypeface, mnPitchFamily, and resolvePitch().

Referenced by getFontData().

◆ resolvePitch()

void oox::drawingml::TextFont::resolvePitch ( sal_Int32  nOoxPitch,
sal_Int16 &  rnFontPitch,
sal_Int16 &  rnFontFamily 
)
static

Definition at line 102 of file textfont.cxx.

Referenced by fillThemeFont(), and implGetFontData().

◆ setAttributes() [1/2]

void oox::drawingml::TextFont::setAttributes ( const AttributeList rAttribs)

◆ setAttributes() [2/2]

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

Sets font name and init other attributes.

Definition at line 65 of file textfont.cxx.

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

Member Data Documentation

◆ maPanose

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

Definition at line 67 of file textfont.hxx.

Referenced by fillThemeFont(), and setAttributes().

◆ maTypeface

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

Definition at line 66 of file textfont.hxx.

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

◆ mnCharset

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

Definition at line 69 of file textfont.hxx.

Referenced by fillThemeFont(), and setAttributes().

◆ mnPitchFamily

sal_Int32 oox::drawingml::TextFont::mnPitchFamily
private

Definition at line 68 of file textfont.hxx.

Referenced by fillThemeFont(), implGetFontData(), and setAttributes().


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