21#include <com/sun/star/lang/Locale.hpp>
22#include <com/sun/star/awt/FontSlant.hpp>
23#include <com/sun/star/awt/FontWeight.hpp>
24#include <com/sun/star/i18n/ScriptType.hpp>
34#include <oox/token/properties.hxx>
35#include <oox/token/tokens.hxx>
37using ::oox::core::XmlFilterBase;
78 sal_Int16 nFontPitch = 0;
79 sal_Int16 nFontFamily = 0;
115 bool bContoured =
false;
149 if (nTransparency == 100
161 case css::i18n::ScriptType::LATIN:
163 case css::i18n::ScriptType::ASIAN:
165 case css::i18n::ScriptType::COMPLEX:
194 float fWeight =
moBold.value_or(
false ) ? awt::FontWeight::BOLD : awt::FontWeight::NORMAL;
199 awt::FontSlant eSlant =
moItalic.value_or(
false ) ? awt::FontSlant_ITALIC : awt::FontSlant_NONE;
230 if (!rPropSet.
hasProperty(PROP_CharInteropGrabBag) || aVectorOfPropertyValues.empty())
234 aAnyGrabBag >>= aGrabBag;
Color GetRGBColor() const
LanguageType getLanguageType(bool bResolveSystem=true) const
const css::lang::Locale & getLocale(bool bResolveSystem=true) const
static sal_Int16 getScriptType(LanguageType nLang)
A helper that maps property identifiers to property values.
void assignUsed(const PropertyMap &rPropMap)
Inserts all properties contained in the passed property map.
bool setProperty(sal_Int32 nPropId, Type &&rValue)
Sets the specified property to the passed value.
A wrapper for a UNO property set.
css::uno::Any getAnyProperty(sal_Int32 nPropId) const
Gets the specified property from the property set.
void setProperties(const css::uno::Sequence< OUString > &rPropNames, const css::uno::Sequence< css::uno::Any > &rValues)
Puts the passed properties into the property set.
bool setAnyProperty(sal_Int32 nPropId, const css::uno::Any &rValue)
Puts the passed any into the property set.
bool hasProperty(sal_Int32 nPropId) const
Returns true, if the specified property is supported by the property set.
GraphicHelper & getGraphicHelper() const
Returns a helper for the handling of graphics and graphic objects.
sal_Int16 getTransparency() const
Returns the transparency of the color (0 = opaque, 100 = full transparent).
void addTransformation(sal_Int32 nElement, sal_Int32 nValue=-1)
Inserts the passed color transformation.
void assignIfUsed(const Color &rColor)
Overwrites this color with the passed color, if it is used.
bool isUsed() const
Returns true, if the color is initialized.
model::ComplexColor getComplexColor() const
bool hasTransparency() const
Returns true, if the color is transparent.
::Color getColor(const GraphicHelper &rGraphicHelper, ::Color nPhClr=API_RGB_TRANSPARENT) const
Returns the final RGB color value.
void assignIfUsed(const TextFont &rTextFont)
Overwrites this text font with the passed text font, if it is used.
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,...
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
constexpr ::Color COL_AUTO(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
css::uno::Sequence< T > concatSequences(const css::uno::Sequence< T > &rS1, const Ss &... rSn)
uno::Reference< util::XComplexColor > createXComplexColor(model::ComplexColor const &rColor)
float GetFontHeight(sal_Int32 nHeight)
sal_Int16 GetCaseMap(sal_Int32 nToken)
sal_Int16 GetFontUnderline(sal_Int32 nToken)
static void pushToGrabBag(PropertySet &rPropSet, const std::vector< PropertyValue > &aVectorOfPropertyValues)
sal_Int32 GetTextSpacingPoint(std::u16string_view sValue)
converts the ST_TextSpacingPoint to 1/100mm
sal_Int16 GetFontStrikeout(sal_Int32 nToken)
void assignIfUsed(std::optional< Type > &rDestValue, const std::optional< Type > &rSourceValue)
void assignUsed(const FillProperties &rSourceProps)
Properties for bitmap fills.
Color getBestSolidColor() const
Tries to resolve current settings to a solid color, e.g.
std::optional< sal_Int32 > moFillType
void pushToPropMap(PropertyMap &rPropMap, const ::oox::core::XmlFilterBase &rFilter) const
Writes the properties to the passed property map.
TextFont maAsianThemeFont
std::optional< sal_Int32 > moCaseMap
TextFont maLatinThemeFont
std::optional< OUString > moLang
std::optional< bool > moUnderlineFillFollowText
PropertyMap maHyperlinkPropertyMap
void pushToPropSet(PropertySet &rPropSet, const ::oox::core::XmlFilterBase &rFilter) const
Writes the properties to the passed property set.
std::optional< bool > moUnderlineLineFollowText
std::optional< double > moFontScale
If a font scale has to be applied manually to moHeight.
std::optional< bool > moItalic
std::vector< css::beans::PropertyValue > maTextEffectsProperties
std::optional< sal_Int32 > moStrikeout
float getCharHeightPoints(float fDefault) const
Returns the current character size.
std::optional< sal_Int32 > moBaseline
void assignUsed(const TextCharacterProperties &rSourceProps)
Overwrites all members that are explicitly set in rSourceProps.
std::optional< sal_Int32 > moUnderline
TextFont maComplexThemeFont
std::optional< sal_Int32 > moHeight
FillProperties maFillProperties
std::optional< bool > moBold
std::optional< LineProperties > moTextOutlineProperties
std::optional< sal_Int32 > moSpacing
constexpr OUStringLiteral PROP_CharHeightComplex
constexpr OUStringLiteral PROP_CharHeight
constexpr OUStringLiteral PROP_CharComplexColor
constexpr OUStringLiteral PROP_CharPostureComplex
constexpr OUStringLiteral PROP_CharLocale
constexpr OUStringLiteral PROP_CharContoured
constexpr OUStringLiteral PROP_CharPosture
constexpr OUStringLiteral PROP_CharWeight
constexpr OUStringLiteral PROP_CharFontNameComplex
constexpr OUStringLiteral PROP_CharUnderline
constexpr OUStringLiteral PROP_CharTransparence
constexpr OUStringLiteral PROP_CharColor
constexpr OUStringLiteral PROP_CharCaseMap
constexpr OUStringLiteral PROP_CharWeightComplex
constexpr OUStringLiteral PROP_CharEscapement
constexpr OUStringLiteral PROP_CharFontPitchAsian
constexpr OUStringLiteral PROP_CharStrikeout
constexpr OUStringLiteral PROP_CharKerning
constexpr OUStringLiteral PROP_CharFontPitchComplex
constexpr OUStringLiteral PROP_CharBackColor
constexpr OUStringLiteral PROP_CharLocaleAsian
constexpr OUStringLiteral PROP_CharLocaleComplex
constexpr OUStringLiteral PROP_CharHeightAsian
constexpr OUStringLiteral PROP_CharFontFamilyAsian
constexpr OUStringLiteral PROP_CharWeightAsian
constexpr OUStringLiteral PROP_CharFontNameAsian
constexpr OUStringLiteral PROP_CharFontFamilyComplex
constexpr OUStringLiteral PROP_CharFontPitch
constexpr OUStringLiteral PROP_CharUnderlineHasColor
constexpr OUStringLiteral PROP_CharEscapementHeight
constexpr OUStringLiteral PROP_CharFontName
constexpr OUStringLiteral PROP_CharPostureAsian
constexpr OUStringLiteral PROP_CharFontFamily
constexpr OUStringLiteral PROP_CharUnderlineColor