LibreOffice Module oox (master) 1
Public Member Functions | Private Attributes | List of all members
oox::drawingml::TextBody Class Reference

#include <textbody.hxx>

Collaboration diagram for oox::drawingml::TextBody:
[legend]

Public Member Functions

 TextBody ()
 
 TextBody (const TextBodyPtr &pBody)
 
const TextParagraphVectorgetParagraphs () const
 
TextParagraphaddParagraph ()
 
const TextListStylegetTextListStyle () const
 
TextListStylegetTextListStyle ()
 
const TextBodyPropertiesgetTextProperties () const
 
TextBodyPropertiesgetTextProperties ()
 
Text3DPropertiesget3DProperties ()
 
const Text3DPropertiesget3DProperties () const
 
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 More...
 
bool isEmpty () const
 
OUString toString () const
 
bool hasVisualRunProperties () const
 Returns whether the textbody had a rPr tag in it that alters it visually. More...
 
bool hasParagraphProperties () const
 Returns whether the textbody had a pPr tag in it. More...
 
bool hasNoninheritedBodyProperties () const
 Returns whether the textbody had a non-empty bodyPr tag in it. More...
 
void setHasNoninheritedBodyProperties ()
 Flags textbody as having a non-empty bodyPr tag. More...
 
bool hasListStyleOnImport () const
 Returns whether the textbody had a non-empty lstStyle tag in it. More...
 
void ApplyStyleEmpty (const ::oox::core::XmlFilterBase &rFilterBase, const css::uno::Reference< css::text::XText > &xText, const TextCharacterProperties &rTextStyleProperties, const TextListStylePtr &pMasterTextListStylePtr) const
 

Private Attributes

TextParagraphVector maParagraphs
 
TextBodyProperties maTextProperties
 
bool mbHasNoninheritedBodyProperties
 Set if bodyPr tag in this textbody is non-empty during import. More...
 
TextListStyle maTextListStyle
 
Text3DProperties ma3DProperties
 

Detailed Description

Definition at line 41 of file textbody.hxx.

Constructor & Destructor Documentation

◆ TextBody() [1/2]

oox::drawingml::TextBody::TextBody ( )

Definition at line 32 of file textbody.cxx.

◆ TextBody() [2/2]

oox::drawingml::TextBody::TextBody ( const TextBodyPtr pBody)

Definition at line 37 of file textbody.cxx.

References maTextListStyle, and maTextProperties.

Member Function Documentation

◆ addParagraph()

TextParagraph & oox::drawingml::TextBody::addParagraph ( )

Definition at line 46 of file textbody.cxx.

References maParagraphs.

Referenced by oox::drawingml::TextBodyContext::onCreateContext().

◆ ApplyStyleEmpty()

void oox::drawingml::TextBody::ApplyStyleEmpty ( const ::oox::core::XmlFilterBase rFilterBase,
const css::uno::Reference< css::text::XText > &  xText,
const TextCharacterProperties rTextStyleProperties,
const TextListStylePtr pMasterTextListStylePtr 
) const

◆ get3DProperties() [1/2]

Text3DProperties & oox::drawingml::TextBody::get3DProperties ( )
inline

Definition at line 56 of file textbody.hxx.

References ma3DProperties.

◆ get3DProperties() [2/2]

const Text3DProperties & oox::drawingml::TextBody::get3DProperties ( ) const
inline

Definition at line 57 of file textbody.hxx.

References ma3DProperties.

◆ getParagraphs()

const TextParagraphVector & oox::drawingml::TextBody::getParagraphs ( ) const
inline

Definition at line 47 of file textbody.hxx.

References maParagraphs.

Referenced by hasParagraphProperties(), and hasVisualRunProperties().

◆ getTextListStyle() [1/2]

TextListStyle & oox::drawingml::TextBody::getTextListStyle ( )
inline

Definition at line 51 of file textbody.hxx.

References maTextListStyle.

◆ getTextListStyle() [2/2]

const TextListStyle & oox::drawingml::TextBody::getTextListStyle ( ) const
inline

Definition at line 50 of file textbody.hxx.

References maTextListStyle.

Referenced by oox::drawingml::TextBodyContext::onCreateContext().

◆ getTextProperties() [1/2]

TextBodyProperties & oox::drawingml::TextBody::getTextProperties ( )
inline

Definition at line 54 of file textbody.hxx.

References maTextProperties.

◆ getTextProperties() [2/2]

const TextBodyProperties & oox::drawingml::TextBody::getTextProperties ( ) const
inline

Definition at line 53 of file textbody.hxx.

References maTextProperties.

Referenced by oox::drawingml::TextBodyContext::onCreateContext().

◆ hasListStyleOnImport()

bool oox::drawingml::TextBody::hasListStyleOnImport ( ) const
inline

Returns whether the textbody had a non-empty lstStyle tag in it.

Definition at line 84 of file textbody.hxx.

References oox::drawingml::TextListStyle::hasListStyleOnImport(), and maTextListStyle.

◆ hasNoninheritedBodyProperties()

bool oox::drawingml::TextBody::hasNoninheritedBodyProperties ( ) const
inline

Returns whether the textbody had a non-empty bodyPr tag in it.

Definition at line 79 of file textbody.hxx.

References mbHasNoninheritedBodyProperties.

◆ hasParagraphProperties()

bool oox::drawingml::TextBody::hasParagraphProperties ( ) const

Returns whether the textbody had a pPr tag in it.

Definition at line 110 of file textbody.cxx.

References getParagraphs().

◆ hasVisualRunProperties()

bool oox::drawingml::TextBody::hasVisualRunProperties ( ) const

Returns whether the textbody had a rPr tag in it that alters it visually.

For instance lang doesn't have a visual effect.

Definition at line 100 of file textbody.cxx.

References getParagraphs().

◆ insertAt()

void oox::drawingml::TextBody::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

Definition at line 53 of file textbody.cxx.

References maParagraphs, maTextListStyle, nIndex, and paragraph.

◆ isEmpty()

bool oox::drawingml::TextBody::isEmpty ( ) const

Definition at line 73 of file textbody.cxx.

References maParagraphs.

Referenced by ApplyStyleEmpty(), and toString().

◆ setHasNoninheritedBodyProperties()

void oox::drawingml::TextBody::setHasNoninheritedBodyProperties ( )
inline

Flags textbody as having a non-empty bodyPr tag.

Definition at line 81 of file textbody.hxx.

References mbHasNoninheritedBodyProperties.

Referenced by oox::drawingml::TextBodyContext::onCreateContext().

◆ toString()

OUString oox::drawingml::TextBody::toString ( ) const

Definition at line 89 of file textbody.cxx.

References isEmpty(), and maParagraphs.

Member Data Documentation

◆ ma3DProperties

Text3DProperties oox::drawingml::TextBody::ma3DProperties
private

Definition at line 97 of file textbody.hxx.

Referenced by get3DProperties().

◆ maParagraphs

TextParagraphVector oox::drawingml::TextBody::maParagraphs
private

Definition at line 92 of file textbody.hxx.

Referenced by addParagraph(), ApplyStyleEmpty(), getParagraphs(), insertAt(), isEmpty(), and toString().

◆ maTextListStyle

TextListStyle oox::drawingml::TextBody::maTextListStyle
private

◆ maTextProperties

TextBodyProperties oox::drawingml::TextBody::maTextProperties
private

Definition at line 93 of file textbody.hxx.

Referenced by getTextProperties(), and TextBody().

◆ mbHasNoninheritedBodyProperties

bool oox::drawingml::TextBody::mbHasNoninheritedBodyProperties
private

Set if bodyPr tag in this textbody is non-empty during import.

Definition at line 95 of file textbody.hxx.

Referenced by hasNoninheritedBodyProperties(), and setHasNoninheritedBodyProperties().


The documentation for this class was generated from the following files: