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

The textbox contains all text contents and properties. More...

#include <vmltextbox.hxx>

Collaboration diagram for oox::vml::TextBox:
[legend]

Public Member Functions

 TextBox (ShapeTypeModel &rTypeModel)
 
void appendPortion (const TextParagraphModel &rParagraph, const TextFontModel &rFont, const OUString &rText)
 Appends a new text portion to the textbox. More...
 
size_t getPortionCount () const
 Returns the current number of text portions. More...
 
const TextFontModelgetFirstFont () const
 Returns the font settings of the first text portion. More...
 
OUString getText () const
 Returns the entire text of all text portions. More...
 
void convert (const css::uno::Reference< css::drawing::XShape > &xShape) const
 

Public Attributes

ShapeTypeModelmrTypeModel
 
bool borderDistanceSet
 Text distance from the border (inset attribute of v:textbox), valid only if set. More...
 
int borderDistanceLeft
 
int borderDistanceTop
 
int borderDistanceRight
 
int borderDistanceBottom
 
OUString maLayoutFlow
 
OUString msNextTextbox
 

Private Types

typedef ::std::vector< TextPortionModelPortionVector
 

Private Attributes

PortionVector maPortions
 

Detailed Description

The textbox contains all text contents and properties.

Definition at line 79 of file vmltextbox.hxx.

Member Typedef Documentation

typedef ::std::vector< TextPortionModel > oox::vml::TextBox::PortionVector
private

Definition at line 103 of file vmltextbox.hxx.

Constructor & Destructor Documentation

oox::vml::TextBox::TextBox ( ShapeTypeModel rTypeModel)
explicit

Definition at line 49 of file vmltextbox.cxx.

Member Function Documentation

void oox::vml::TextBox::appendPortion ( const TextParagraphModel rParagraph,
const TextFontModel rFont,
const OUString &  rText 
)
void oox::vml::TextBox::convert ( const css::uno::Reference< css::drawing::XShape > &  xShape) const
const TextFontModel * oox::vml::TextBox::getFirstFont ( ) const

Returns the font settings of the first text portion.

Definition at line 64 of file vmltextbox.cxx.

References maPortions.

size_t oox::vml::TextBox::getPortionCount ( ) const
inline

Returns the current number of text portions.

Definition at line 88 of file vmltextbox.hxx.

Referenced by oox::vml::TextPortionContext::onEndElement().

OUString oox::vml::TextBox::getText ( ) const

Returns the entire text of all text portions.

Definition at line 69 of file vmltextbox.cxx.

References aBuffer, and maPortions.

Member Data Documentation

int oox::vml::TextBox::borderDistanceBottom

Definition at line 98 of file vmltextbox.hxx.

Referenced by oox::vml::TextBoxContext::TextBoxContext().

int oox::vml::TextBox::borderDistanceLeft

Definition at line 98 of file vmltextbox.hxx.

Referenced by oox::vml::TextBoxContext::TextBoxContext().

int oox::vml::TextBox::borderDistanceRight

Definition at line 98 of file vmltextbox.hxx.

Referenced by oox::vml::TextBoxContext::TextBoxContext().

bool oox::vml::TextBox::borderDistanceSet

Text distance from the border (inset attribute of v:textbox), valid only if set.

Definition at line 97 of file vmltextbox.hxx.

Referenced by oox::vml::TextBoxContext::TextBoxContext().

int oox::vml::TextBox::borderDistanceTop

Definition at line 98 of file vmltextbox.hxx.

Referenced by oox::vml::TextBoxContext::TextBoxContext().

OUString oox::vml::TextBox::maLayoutFlow

Definition at line 99 of file vmltextbox.hxx.

Referenced by convert(), and oox::vml::TextBoxContext::TextBoxContext().

PortionVector oox::vml::TextBox::maPortions
private

Definition at line 105 of file vmltextbox.hxx.

Referenced by appendPortion(), convert(), getFirstFont(), and getText().

ShapeTypeModel& oox::vml::TextBox::mrTypeModel
OUString oox::vml::TextBox::msNextTextbox

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