22#include <com/sun/star/frame/XModel.hpp> 
   23#include <com/sun/star/text/ControlCharacter.hpp> 
   24#include <com/sun/star/beans/XPropertySet.hpp> 
   25#include <com/sun/star/beans/XPropertyState.hpp> 
   26#include <com/sun/star/lang/XMultiServiceFactory.hpp> 
   27#include <com/sun/star/text/XTextField.hpp> 
   34#include <oox/token/properties.hxx> 
   35#include <oox/token/tokens.hxx> 
   46    mbIsLineBreak( false )
 
   55        const ::oox::core::XmlFilterBase& rFilterBase,
 
   59        float nDefaultCharHeight)
 const 
   61    sal_Int32 nCharHeight = 0;
 
   67        Any aOldFontName = xState->getPropertyDefault(
"CharFontName");
 
   68        Any aOldFontPitch = xState->getPropertyDefault(
"CharFontPitch");
 
   69        Any aOldFontFamily = xState->getPropertyDefault(
"CharFontFamily");
 
   79        if ( aTextCharacterProps.
moHeight.has_value() )
 
   80            nCharHeight = aTextCharacterProps.
moHeight.value();
 
   83            aTextCharacterProps.
moHeight = 
static_cast<sal_Int32
>(nDefaultCharHeight * 100);
 
   90                SAL_WARN(
"oox",  
"OOX: TextRun::insertAt() insert line break" );
 
   91                xText->insertControlCharacter( xStart, ControlCharacter::LINE_BREAK, 
false );
 
   96                sal_Int32 nMax = 
getText().getLength();
 
  106                    sal_Int16 nFontFamily = 0, nFontPitch = 0;
 
  120                    xText->insertString(xStart, aSubString, 
false);
 
  148                xTextFieldCursor->gotoEnd( 
false );
 
  153                xText->insertTextContent( xStart, xField, 
false );
 
  155                xTextFieldCursor->gotoEnd( 
true );
 
  165                aTextCharacterProps.
pushToPropSet( aFieldTextPropSet, rFilterBase );
 
  169                SAL_WARN(
"oox",  
"OOX: URL field couldn't be created" );
 
  170                xText->insertString( xStart, 
getText(), 
false );
 
bool hasProperty(sal_Int32 nPropId) const
Returns true, if the map contains a property with the passed identifier.
 
A wrapper for a UNO 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 setProperty(sal_Int32 nPropId, const Type &rValue)
Puts the passed value into the property set.
 
void setSchemeClr(sal_Int32 nToken)
Sets a scheme color from the a:schemeClr element.
 
bool isUsed() const
Returns true, if the color is initialized.
 
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,...
 
virtual sal_Int32 insertAt(const ::oox::core::XmlFilterBase &rFilterBase, const css::uno::Reference< css::text::XText > &xText, const css::uno::Reference< css::text::XTextCursor > &xAt, const TextCharacterProperties &rTextCharacterStyle, float nDefaultCharHeight) const
 
TextCharacterProperties maTextCharacterProperties
 
#define TOOLS_WARN_EXCEPTION(area, stream)
 
Reference< XSingleServiceFactory > xFactory
 
#define SAL_WARN(area, stream)
 
void copy(const fs::path &src, const fs::path &dest)
 
Color maFillColor
Fill type (OOXML token).
 
std::optional< sal_Int32 > moFillType
 
PropertyMap maHyperlinkPropertyMap
 
void pushToPropSet(PropertySet &rPropSet, const ::oox::core::XmlFilterBase &rFilter) const
Writes the properties to the passed property set.
 
void assignUsed(const TextCharacterProperties &rSourceProps)
Overwrites all members that are explicitly set in rSourceProps.
 
std::optional< sal_Int32 > moUnderline
 
std::optional< sal_Int32 > moHeight
 
FillProperties maFillProperties
 
constexpr OUStringLiteral PROP_CharColor
 
constexpr OUStringLiteral PROP_CharFontPitch
 
constexpr OUStringLiteral PROP_CharFontName
 
constexpr OUStringLiteral PROP_CharFontFamily