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

◆ PortionVector

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

Definition at line 103 of file vmltextbox.hxx.

Constructor & Destructor Documentation

◆ TextBox()

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

Definition at line 50 of file vmltextbox.cxx.

Member Function Documentation

◆ appendPortion()

void oox::vml::TextBox::appendPortion ( const TextParagraphModel rParagraph,
const TextFontModel rFont,
const OUString &  rText 
)

◆ convert()

void oox::vml::TextBox::convert ( const css::uno::Reference< css::drawing::XShape > &  xShape) const

◆ getFirstFont()

const TextFontModel * oox::vml::TextBox::getFirstFont ( ) const

Returns the font settings of the first text portion.

Definition at line 65 of file vmltextbox.cxx.

References maPortions.

◆ getPortionCount()

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

◆ getText()

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

Returns the entire text of all text portions.

Definition at line 70 of file vmltextbox.cxx.

References aBuffer, and maPortions.

Member Data Documentation

◆ borderDistanceBottom

int oox::vml::TextBox::borderDistanceBottom

Definition at line 98 of file vmltextbox.hxx.

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

◆ borderDistanceLeft

int oox::vml::TextBox::borderDistanceLeft

Definition at line 98 of file vmltextbox.hxx.

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

◆ borderDistanceRight

int oox::vml::TextBox::borderDistanceRight

Definition at line 98 of file vmltextbox.hxx.

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

◆ borderDistanceSet

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

◆ borderDistanceTop

int oox::vml::TextBox::borderDistanceTop

Definition at line 98 of file vmltextbox.hxx.

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

◆ maLayoutFlow

OUString oox::vml::TextBox::maLayoutFlow

Definition at line 99 of file vmltextbox.hxx.

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

◆ maPortions

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

Definition at line 105 of file vmltextbox.hxx.

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

◆ mrTypeModel

ShapeTypeModel& oox::vml::TextBox::mrTypeModel

◆ msNextTextbox

OUString oox::vml::TextBox::msNextTextbox

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