21#include <com/sun/star/beans/XPropertySet.hpp>
24#include <oox/token/properties.hxx>
33 : mbHasNoninheritedBodyProperties( false )
38 : mbHasNoninheritedBodyProperties( false )
48 auto xPara = std::make_shared<TextParagraph>();
54 const ::oox::core::XmlFilterBase& rFilterBase,
63 float nCharHeight = xPropertySet->getPropertyValue(
"CharHeight").get<
float>();
67 paragraph->insertAt(rFilterBase, xText, xAt, rTextStyleProperties, aMasterTextStyle,
83 if ( rRuns.size() > 1 )
86 return rRuns[0]->getText().isEmpty();
95 return rRuns.front()->getText();
104 if ( pTextParagraph->hasVisualRunProperties() )
114 if ( pTextParagraph->hasProperties() )
121 const ::oox::core::XmlFilterBase& rFilterBase,
139 aCombinedTextStyle.
apply(*pMasterTextListStylePtr);
143 if (pTextParagraphStyle)
148 float nCharHeight = xProps->getPropertyValue(
"CharHeight").get<
float>();
150 aParaProp.
apply(*pTextParagraphStyle);
151 aParaProp.pushToPropSet(&rFilterBase, xProps, aioBulletList, &pTextParagraphStyle->
getBulletList(),
152 true, nCharHeight,
true);
A helper that maps property identifiers to property values.
bool setProperty(sal_Int32 nPropId, Type &&rValue)
Sets the specified property to the passed value.
A wrapper for a UNO property set.
const TextParagraphVector & getParagraphs() const
TextListStyle maTextListStyle
void insertAt(const ::oox::core::XmlFilterBase &rFilterBase, const css::uno::Reference< css::text::XText > &xText, const css::uno::Reference< css::text::XTextCursor > &xAt, const TextCharacterProperties &rTextStyleProperties, const TextListStylePtr &pMasterTextListStyle) const
insert the text body at the text cursor
TextParagraph & addParagraph()
TextParagraphVector maParagraphs
void ApplyStyleEmpty(const ::oox::core::XmlFilterBase &rFilterBase, const css::uno::Reference< css::text::XText > &xText, const TextCharacterProperties &rTextStyleProperties, const TextListStylePtr &pMasterTextListStylePtr) const
bool hasVisualRunProperties() const
Returns whether the textbody had a rPr tag in it that alters it visually.
OUString toString() const
TextBodyProperties maTextProperties
bool hasParagraphProperties() const
Returns whether the textbody had a pPr tag in it.
void apply(const TextListStyle &rTextListStyle)
void apply(const TextParagraphProperties &rSourceProps)
BulletList & getBulletList()
std::shared_ptr< TextListStyle > TextListStylePtr
std::shared_ptr< TextBody > TextBodyPtr
void pushToPropSet(PropertySet &rPropSet, const ::oox::core::XmlFilterBase &rFilter) const
Writes the properties to the passed property set.
constexpr OUStringLiteral PROP_LeftMargin