LibreOffice Module oox (master) 1
|
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 |
carries a CT_TextFont
Definition at line 33 of file textfont.hxx.
|
explicit |
Definition at line 51 of file textfont.cxx.
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().
void oox::drawingml::TextFont::fillThemeFont | ( | model::ThemeFont & | rThemeFont | ) | const |
Definition at line 94 of file textfont.cxx.
References model::ThemeFont::maCharset, model::ThemeFont::maFamily, model::ThemeFont::maPanose, maPanose, model::ThemeFont::maPitch, model::ThemeFont::maTypeface, maTypeface, mnCharset, mnPitchFamily, and resolvePitch().
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().
|
private |
Definition at line 87 of file textfont.cxx.
References maTypeface, mnPitchFamily, and resolvePitch().
Referenced by getFontData().
|
static |
Definition at line 102 of file textfont.cxx.
Referenced by fillThemeFont(), and implGetFontData().
void oox::drawingml::TextFont::setAttributes | ( | const AttributeList & | rAttribs | ) |
Sets attributes from the passed attribute list.
Definition at line 57 of file textfont.cxx.
References oox::AttributeList::getInteger(), oox::AttributeList::getStringDefaulted(), maPanose, maTypeface, mnCharset, mnPitchFamily, and oox::WINDOWS_CHARSET_DEFAULT.
Referenced by oox::drawingml::table::TableStyleTextStyleContext::onCreateContext(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), and oox::drawingml::TextParagraphPropertiesContext::onCreateContext().
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.
|
private |
Definition at line 67 of file textfont.hxx.
Referenced by fillThemeFont(), and setAttributes().
|
private |
Definition at line 66 of file textfont.hxx.
Referenced by assignIfUsed(), fillThemeFont(), getFontData(), implGetFontData(), and setAttributes().
|
private |
Definition at line 69 of file textfont.hxx.
Referenced by fillThemeFont(), and setAttributes().
|
private |
Definition at line 68 of file textfont.hxx.
Referenced by fillThemeFont(), implGetFontData(), and setAttributes().