LibreOffice Module oox (master) 1
|
The textbox contains all text contents and properties. More...
#include <vmltextbox.hxx>
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 TextFontModel * | getFirstFont () 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 | |
ShapeTypeModel & | mrTypeModel |
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< TextPortionModel > | PortionVector |
Private Attributes | |
PortionVector | maPortions |
The textbox contains all text contents and properties.
Definition at line 79 of file vmltextbox.hxx.
|
private |
Definition at line 103 of file vmltextbox.hxx.
|
explicit |
Definition at line 50 of file vmltextbox.cxx.
void oox::vml::TextBox::appendPortion | ( | const TextParagraphModel & | rParagraph, |
const TextFontModel & | rFont, | ||
const OUString & | rText | ||
) |
Appends a new text portion to the textbox.
Definition at line 60 of file vmltextbox.cxx.
References maPortions.
Referenced by oox::vml::TextPortionContext::onCharacters(), oox::vml::TextPortionContext::onEndElement(), oox::vml::TextBoxContext::onEndElement(), and oox::vml::TextPortionContext::onStartElement().
void oox::vml::TextBox::convert | ( | const css::uno::Reference< css::drawing::XShape > & | xShape | ) | const |
Definition at line 78 of file vmltextbox.cxx.
References comphelper::containerToSequence(), comphelper::SequenceAsHashMap::getAsConstPropertyValueList(), maLayoutFlow, maPortions, oox::vml::TextFontModel::mobBold, oox::vml::TextFontModel::moColor, oox::vml::TextFontModel::moName, oox::vml::TextFontModel::moNameAsian, oox::vml::TextFontModel::moNameComplex, oox::vml::TextFontModel::monSize, oox::vml::TextFontModel::monSpacing, oox::vml::TextParagraphModel::moParaAdjust, oox::vml::TextParagraphModel::moParaStyleName, TOOLS_WARN_EXCEPTION, and comphelper::SequenceAsHashMap::update().
Referenced by oox::vml::SimpleShape::implConvertAndInsert().
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.
|
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 70 of file vmltextbox.cxx.
References aBuffer, and maPortions.
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().
|
private |
Definition at line 105 of file vmltextbox.hxx.
Referenced by appendPortion(), convert(), getFirstFont(), and getText().
ShapeTypeModel& oox::vml::TextBox::mrTypeModel |
Definition at line 95 of file vmltextbox.hxx.
Referenced by oox::vml::TextBoxContext::TextBoxContext(), and oox::vml::TextPortionContext::TextPortionContext().
OUString oox::vml::TextBox::msNextTextbox |
Definition at line 100 of file vmltextbox.hxx.
Referenced by oox::vml::ShapeBase::convertAndInsert(), and oox::vml::TextBoxContext::TextBoxContext().