LibreOffice Module oox (master) 1
|
#include <textcharacterproperties.hxx>
Public Member Functions | |
void | assignUsed (const TextCharacterProperties &rSourceProps) |
Overwrites all members that are explicitly set in rSourceProps. More... | |
float | getCharHeightPoints (float fDefault) const |
Returns the current character size. More... | |
void | pushToPropMap (PropertyMap &rPropMap, const ::oox::core::XmlFilterBase &rFilter) const |
Writes the properties to the passed property map. More... | |
void | pushToPropSet (PropertySet &rPropSet, const ::oox::core::XmlFilterBase &rFilter) const |
Writes the properties to the passed property set. More... | |
TextCharacterProperties () | |
Public Attributes | |
PropertyMap | maHyperlinkPropertyMap |
TextFont | maLatinFont |
TextFont | maLatinThemeFont |
TextFont | maAsianFont |
TextFont | maAsianThemeFont |
TextFont | maComplexFont |
TextFont | maComplexThemeFont |
TextFont | maSymbolFont |
Color | maUnderlineColor |
Color | maHighlightColor |
std::optional< OUString > | moLang |
std::optional< sal_Int32 > | moHeight |
std::optional< double > | moFontScale |
If a font scale has to be applied manually to moHeight. More... | |
std::optional< sal_Int32 > | moSpacing |
std::optional< sal_Int32 > | moUnderline |
std::optional< sal_Int32 > | moBaseline |
std::optional< sal_Int32 > | moStrikeout |
std::optional< sal_Int32 > | moCaseMap |
std::optional< bool > | moBold |
std::optional< bool > | moItalic |
std::optional< bool > | moUnderlineLineFollowText |
std::optional< bool > | moUnderlineFillFollowText |
std::optional< LineProperties > | moTextOutlineProperties |
FillProperties | maFillProperties |
bool | mbHasVisualRunProperties |
Set if there was a property set that alters run visually during import. More... | |
std::vector< css::beans::PropertyValue > | maTextEffectsProperties |
Definition at line 36 of file textcharacterproperties.hxx.
|
inline |
Definition at line 87 of file textcharacterproperties.hxx.
void oox::drawingml::TextCharacterProperties::assignUsed | ( | const TextCharacterProperties & | rSourceProps | ) |
Overwrites all members that are explicitly set in rSourceProps.
Definition at line 44 of file textcharacterproperties.cxx.
References oox::drawingml::Color::assignIfUsed(), oox::drawingml::TextFont::assignIfUsed(), oox::assignIfUsed(), oox::drawingml::FillProperties::assignUsed(), oox::PropertyMap::assignUsed(), maAsianFont, maAsianThemeFont, maComplexFont, maComplexThemeFont, maFillProperties, maHighlightColor, maHyperlinkPropertyMap, maLatinFont, maLatinThemeFont, maSymbolFont, maTextEffectsProperties, maUnderlineColor, moBaseline, moBold, moCaseMap, moFontScale, moHeight, moItalic, moLang, moSpacing, moStrikeout, moTextOutlineProperties, moUnderline, moUnderlineFillFollowText, and moUnderlineLineFollowText.
Referenced by oox::drawingml::TextParagraphProperties::apply(), oox::drawingml::Shape::createAndInsert(), oox::drawingml::chart::TextConverter::createStringSequence(), oox::drawingml::TextParagraph::getCharacterStyle(), oox::drawingml::TextRun::insertAt(), oox::drawingml::TextField::insertAt(), oox::drawingml::TextParagraph::insertAt(), and oox::drawingml::table::TableCell::pushToXCell().
float oox::drawingml::TextCharacterProperties::getCharHeightPoints | ( | float | fDefault | ) | const |
Returns the current character size.
If possible the masterstyle should have been applied before, otherwise the character size can be zero and the default value is returned.
Definition at line 247 of file textcharacterproperties.cxx.
References oox::drawingml::GetFontHeight(), and moHeight.
Referenced by oox::drawingml::TextParagraphProperties::getCharHeightPoints().
void oox::drawingml::TextCharacterProperties::pushToPropMap | ( | PropertyMap & | rPropMap, |
const ::oox::core::XmlFilterBase & | rFilter | ||
) | const |
Writes the properties to the passed property map.
Definition at line 75 of file textcharacterproperties.cxx.
References oox::drawingml::Color::addTransformation(), COL_AUTO(), COL_WHITE(), ColorTransparency, model::color::createXComplexColor(), DFLT_ESC_PROP, oox::drawingml::FillProperties::getBestSolidColor(), oox::drawingml::GetCaseMap(), oox::drawingml::Color::getColor(), oox::drawingml::Color::getComplexColor(), oox::drawingml::TextFont::getFontData(), oox::drawingml::GetFontHeight(), oox::drawingml::GetFontStrikeout(), oox::drawingml::GetFontUnderline(), oox::core::FilterBase::getGraphicHelper(), LanguageTag::getLanguageType(), LanguageTag::getLocale(), Color::GetRGBColor(), MsLangId::getScriptType(), oox::drawingml::GetTextSpacingPoint(), oox::drawingml::Color::getTransparency(), oox::drawingml::Color::hasTransparency(), oox::drawingml::Color::isUsed(), maAsianFont, maAsianThemeFont, maComplexFont, maComplexThemeFont, maFillProperties, maHighlightColor, maLatinFont, maLatinThemeFont, maUnderlineColor, moBaseline, moBold, moCaseMap, oox::drawingml::FillProperties::moFillType, moFontScale, moHeight, moItalic, moLang, moSpacing, moStrikeout, moTextOutlineProperties, moUnderline, moUnderlineFillFollowText, PROP_CharBackColor, PROP_CharCaseMap, PROP_CharColor, PROP_CharComplexColor, PROP_CharContoured, PROP_CharEscapement, PROP_CharEscapementHeight, PROP_CharFontFamily, PROP_CharFontFamilyAsian, PROP_CharFontFamilyComplex, PROP_CharFontName, PROP_CharFontNameAsian, PROP_CharFontNameComplex, PROP_CharFontPitch, PROP_CharFontPitchAsian, PROP_CharFontPitchComplex, PROP_CharHeight, PROP_CharHeightAsian, PROP_CharHeightComplex, PROP_CharKerning, PROP_CharLocale, PROP_CharLocaleAsian, PROP_CharLocaleComplex, PROP_CharPosture, PROP_CharPostureAsian, PROP_CharPostureComplex, PROP_CharStrikeout, PROP_CharTransparence, PROP_CharUnderline, PROP_CharUnderlineColor, PROP_CharUnderlineHasColor, PROP_CharWeight, PROP_CharWeightAsian, PROP_CharWeightComplex, oox::PropertyMap::setProperty(), and XML_none.
Referenced by pushToPropSet().
void oox::drawingml::TextCharacterProperties::pushToPropSet | ( | PropertySet & | rPropSet, |
const ::oox::core::XmlFilterBase & | rFilter | ||
) | const |
Writes the properties to the passed property set.
Definition at line 239 of file textcharacterproperties.cxx.
References maTextEffectsProperties, oox::drawingml::pushToGrabBag(), pushToPropMap(), and oox::PropertySet::setProperties().
Referenced by oox::drawingml::TextBody::ApplyStyleEmpty(), oox::drawingml::TextRun::insertAt(), oox::drawingml::TextField::insertAt(), oox::drawingml::TextParagraph::insertAt(), and oox::ppt::setTextStyle().
TextFont oox::drawingml::TextCharacterProperties::maAsianFont |
Definition at line 41 of file textcharacterproperties.hxx.
Referenced by oox::drawingml::table::applyTableStylePart(), assignUsed(), oox::drawingml::lcl_copyCharPropsToShape(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), pushToPropMap(), and oox::drawingml::Theme::resolveFont().
TextFont oox::drawingml::TextCharacterProperties::maAsianThemeFont |
Definition at line 42 of file textcharacterproperties.hxx.
Referenced by assignUsed(), oox::drawingml::lcl_copyCharPropsToShape(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), and pushToPropMap().
TextFont oox::drawingml::TextCharacterProperties::maComplexFont |
Definition at line 43 of file textcharacterproperties.hxx.
Referenced by oox::drawingml::table::applyTableStylePart(), assignUsed(), oox::drawingml::lcl_copyCharPropsToShape(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), pushToPropMap(), and oox::drawingml::Theme::resolveFont().
TextFont oox::drawingml::TextCharacterProperties::maComplexThemeFont |
Definition at line 44 of file textcharacterproperties.hxx.
Referenced by assignUsed(), oox::drawingml::lcl_copyCharPropsToShape(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), and pushToPropMap().
FillProperties oox::drawingml::TextCharacterProperties::maFillProperties |
Definition at line 63 of file textcharacterproperties.hxx.
Referenced by oox::drawingml::table::applyTableStylePart(), assignUsed(), oox::drawingml::Shape::createAndInsert(), oox::drawingml::TextRun::insertAt(), oox::drawingml::TextParagraph::insertAt(), oox::drawingml::lcl_copyCharPropsToShape(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), pushToPropMap(), and oox::drawingml::TextParagraphProperties::pushToPropSet().
Color oox::drawingml::TextCharacterProperties::maHighlightColor |
Definition at line 47 of file textcharacterproperties.hxx.
Referenced by assignUsed(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), and pushToPropMap().
PropertyMap oox::drawingml::TextCharacterProperties::maHyperlinkPropertyMap |
Definition at line 38 of file textcharacterproperties.hxx.
Referenced by assignUsed(), oox::drawingml::TextRun::insertAt(), and oox::drawingml::TextCharacterPropertiesContext::onCreateContext().
TextFont oox::drawingml::TextCharacterProperties::maLatinFont |
Definition at line 39 of file textcharacterproperties.hxx.
Referenced by oox::drawingml::table::applyTableStylePart(), assignUsed(), oox::drawingml::lcl_copyCharPropsToShape(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), pushToPropMap(), and oox::drawingml::Theme::resolveFont().
TextFont oox::drawingml::TextCharacterProperties::maLatinThemeFont |
Definition at line 40 of file textcharacterproperties.hxx.
Referenced by assignUsed(), oox::drawingml::lcl_copyCharPropsToShape(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), and pushToPropMap().
TextFont oox::drawingml::TextCharacterProperties::maSymbolFont |
Definition at line 45 of file textcharacterproperties.hxx.
Referenced by oox::drawingml::table::applyTableStylePart(), assignUsed(), oox::drawingml::TextRun::insertAt(), and oox::drawingml::TextCharacterPropertiesContext::onCreateContext().
std::vector<css::beans::PropertyValue> oox::drawingml::TextCharacterProperties::maTextEffectsProperties |
Definition at line 67 of file textcharacterproperties.hxx.
Referenced by assignUsed(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), and pushToPropSet().
Color oox::drawingml::TextCharacterProperties::maUnderlineColor |
Definition at line 46 of file textcharacterproperties.hxx.
Referenced by assignUsed(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), and pushToPropMap().
bool oox::drawingml::TextCharacterProperties::mbHasVisualRunProperties |
Set if there was a property set that alters run visually during import.
Definition at line 65 of file textcharacterproperties.hxx.
Referenced by oox::drawingml::TextRun::hasVisualRunProperties(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), and oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext().
std::optional< sal_Int32 > oox::drawingml::TextCharacterProperties::moBaseline |
Definition at line 54 of file textcharacterproperties.hxx.
Referenced by assignUsed(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), pushToPropMap(), and oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext().
std::optional< bool > oox::drawingml::TextCharacterProperties::moBold |
Definition at line 57 of file textcharacterproperties.hxx.
Referenced by oox::drawingml::table::applyTableStylePart(), assignUsed(), oox::drawingml::lcl_copyCharPropsToShape(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), pushToPropMap(), and oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext().
std::optional< sal_Int32 > oox::drawingml::TextCharacterProperties::moCaseMap |
Definition at line 56 of file textcharacterproperties.hxx.
Referenced by assignUsed(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), pushToPropMap(), and oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext().
std::optional< double > oox::drawingml::TextCharacterProperties::moFontScale |
If a font scale has to be applied manually to moHeight.
Definition at line 51 of file textcharacterproperties.hxx.
Referenced by assignUsed(), and pushToPropMap().
std::optional< sal_Int32 > oox::drawingml::TextCharacterProperties::moHeight |
Definition at line 49 of file textcharacterproperties.hxx.
Referenced by assignUsed(), getCharHeightPoints(), oox::drawingml::TextRun::insertAt(), oox::drawingml::TextField::insertAt(), oox::drawingml::TextParagraph::insertAt(), oox::drawingml::lcl_copyCharPropsToShape(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), pushToPropMap(), and oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext().
std::optional< bool > oox::drawingml::TextCharacterProperties::moItalic |
Definition at line 58 of file textcharacterproperties.hxx.
Referenced by oox::drawingml::table::applyTableStylePart(), assignUsed(), oox::drawingml::lcl_copyCharPropsToShape(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), pushToPropMap(), and oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext().
std::optional< OUString > oox::drawingml::TextCharacterProperties::moLang |
Definition at line 48 of file textcharacterproperties.hxx.
Referenced by assignUsed(), oox::drawingml::lcl_copyCharPropsToShape(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), pushToPropMap(), and oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext().
std::optional< sal_Int32 > oox::drawingml::TextCharacterProperties::moSpacing |
Definition at line 52 of file textcharacterproperties.hxx.
Referenced by assignUsed(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), pushToPropMap(), and oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext().
std::optional< sal_Int32 > oox::drawingml::TextCharacterProperties::moStrikeout |
Definition at line 55 of file textcharacterproperties.hxx.
Referenced by assignUsed(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), pushToPropMap(), and oox::drawingml::TextCharacterPropertiesContext::TextCharacterPropertiesContext().
std::optional<LineProperties> oox::drawingml::TextCharacterProperties::moTextOutlineProperties |
Definition at line 61 of file textcharacterproperties.hxx.
Referenced by assignUsed(), oox::drawingml::lcl_copyCharPropsToShape(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), and pushToPropMap().
std::optional< sal_Int32 > oox::drawingml::TextCharacterProperties::moUnderline |
std::optional< bool > oox::drawingml::TextCharacterProperties::moUnderlineFillFollowText |
Definition at line 60 of file textcharacterproperties.hxx.
Referenced by assignUsed(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), and pushToPropMap().
std::optional< bool > oox::drawingml::TextCharacterProperties::moUnderlineLineFollowText |
Definition at line 59 of file textcharacterproperties.hxx.
Referenced by assignUsed(), and oox::drawingml::TextCharacterPropertiesContext::onCreateContext().