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

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

Definition at line 32 of file textbody.cxx.

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

Definition at line 37 of file textbody.cxx.

References maTextListStyle, and maTextProperties.

Member Function Documentation

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

Definition at line 46 of file textbody.cxx.

References maParagraphs.

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

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
Text3DProperties& oox::drawingml::TextBody::get3DProperties ( )
inline

Definition at line 56 of file textbody.hxx.

References ma3DProperties.

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

Definition at line 57 of file textbody.hxx.

References ma3DProperties.

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

Definition at line 47 of file textbody.hxx.

References maParagraphs.

Referenced by hasParagraphProperties(), and hasVisualRunProperties().

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

Definition at line 50 of file textbody.hxx.

References maTextListStyle.

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

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

Definition at line 51 of file textbody.hxx.

References maTextListStyle.

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

Definition at line 53 of file textbody.hxx.

References maTextProperties.

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

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

Definition at line 54 of file textbody.hxx.

References maTextProperties.

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.

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.

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

Returns whether the textbody had a pPr tag in it.

Definition at line 108 of file textbody.cxx.

References getParagraphs().

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 98 of file textbody.cxx.

References getParagraphs().

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 oox::drawingml::TextListStyle::apply(), maParagraphs, maTextListStyle, nIndex, and paragraph.

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

Definition at line 74 of file textbody.cxx.

References maParagraphs.

Referenced by ApplyStyleEmpty(), and toString().

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().

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

Definition at line 90 of file textbody.cxx.

References isEmpty(), and maParagraphs.

Member Data Documentation

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

Definition at line 97 of file textbody.hxx.

Referenced by get3DProperties().

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

Definition at line 92 of file textbody.hxx.

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

TextListStyle oox::drawingml::TextBody::maTextListStyle
private
TextBodyProperties oox::drawingml::TextBody::maTextProperties
private

Definition at line 93 of file textbody.hxx.

Referenced by getTextProperties(), and TextBody().

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: