diff options
Diffstat (limited to 'oox/source/drawingml/textbody.cxx')
-rw-r--r-- | oox/source/drawingml/textbody.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/oox/source/drawingml/textbody.cxx b/oox/source/drawingml/textbody.cxx index 80ebb4d2287d..323d654ce971 100644 --- a/oox/source/drawingml/textbody.cxx +++ b/oox/source/drawingml/textbody.cxx @@ -32,10 +32,12 @@ using namespace ::com::sun::star::beans; namespace oox { namespace drawingml { TextBody::TextBody() + : mbHasNoninheritedBodyProperties( false ) { } TextBody::TextBody( const TextBodyPtr& pBody ) + : mbHasNoninheritedBodyProperties( false ) { if( pBody.get() ) { maTextProperties = pBody->maTextProperties; @@ -104,6 +106,26 @@ OUString TextBody::toString() const return OUString(); } +bool TextBody::hasVisualRunProperties() const +{ + for ( auto& pTextParagraph : getParagraphs() ) + { + if ( pTextParagraph->hasVisualRunProperties() ) + return true; + } + return false; +} + +bool TextBody::hasParagraphProperties() const +{ + for ( auto& pTextParagraph : getParagraphs() ) + { + if ( pTextParagraph->hasProperties() ) + return true; + } + return false; +} + void TextBody::ApplyStyleEmpty( const ::oox::core::XmlFilterBase& rFilterBase, const Reference < XText > & xText, |