LibreOffice Module oox (master) 1
|
#include <titleconverter.hxx>
Public Member Functions | |
TextConverter (const ConverterRoot &rParent, TextModel &rModel) | |
virtual | ~TextConverter () override |
css::uno::Reference< css::chart2::data::XDataSequence > | createDataSequence (const OUString &rRole) |
Creates a data sequence object from the contained text data. More... | |
css::uno::Sequence< css::uno::Reference< css::chart2::XFormattedString > > | createStringSequence (const OUString &rDefaultText, const ModelRef< TextBody > &rxTextProp, ObjectType eObjType) |
Creates a sequence of formatted string objects. More... | |
Public Member Functions inherited from oox::drawingml::chart::ConverterBase< TextModel > | |
const TextModel & | getModel () const |
Public Member Functions inherited from oox::drawingml::chart::ConverterRoot | |
ConverterRoot (::oox::core::XmlFilterBase &rFilter, ChartConverter &rChartConverter, const ChartSpaceModel &rChartModel, const css::uno::Reference< css::chart2::XChartDocument > &rxChartDoc, const css::awt::Size &rChartSize) | |
virtual | ~ConverterRoot () |
ConverterRoot (ConverterRoot const &)=default | |
ConverterRoot (ConverterRoot &&)=default | |
ConverterRoot & | operator= (ConverterRoot const &)=default |
ConverterRoot & | operator= (ConverterRoot &&)=default |
css::uno::Reference< css::uno::XInterface > | createInstance (const OUString &rServiceName) const |
Creates an instance for the passed service name, using the process service factory. More... | |
css::uno::Reference< css::uno::XComponentContext > const & | getComponentContext () const |
Private Member Functions | |
css::uno::Reference< css::chart2::XFormattedString > | appendFormattedString (::std::vector< css::uno::Reference< css::chart2::XFormattedString > > &orStringVec, const OUString &rString, bool bAddNewLine) const |
Additional Inherited Members | |
Protected Member Functions inherited from oox::drawingml::chart::ConverterBase< TextModel > | |
ConverterBase (const ConverterRoot &rParent, TextModel &rModel) | |
virtual | ~ConverterBase () override |
Protected Member Functions inherited from oox::drawingml::chart::ConverterRoot | |
::oox::core::XmlFilterBase & | getFilter () const |
Returns the filter object of the imported/exported document. More... | |
ChartConverter & | getChartConverter () const |
Returns the chart converter. More... | |
css::uno::Reference< css::chart2::XChartDocument > const & | getChartDocument () const |
Returns the API chart document model. More... | |
const css::awt::Size & | getChartSize () const |
Returns the position and size of the chart shape in 1/100 mm. More... | |
ObjectFormatter & | getFormatter () const |
Returns the object formatter. More... | |
void | registerTitleLayout (const css::uno::Reference< css::chart2::XTitle > &rxTitle, const ModelRef< LayoutModel > &rxLayout, ObjectType eObjType, sal_Int32 nMainIdx, sal_Int32 nSubIdx) |
Registers a title object and its layout data, needed for conversion of the title position using the old Chart1 API. More... | |
void | convertTitlePositions () |
Converts the positions of the main title and all axis titles. More... | |
Static Protected Member Functions inherited from oox::drawingml::chart::ConverterRoot | |
static css::awt::Size | getDefaultPageSize () |
Returns the default position and size of the chart shape in 1/100 mm. More... | |
Protected Attributes inherited from oox::drawingml::chart::ConverterBase< TextModel > | |
TextModel & | mrModel |
Definition at line 39 of file titleconverter.hxx.
|
explicit |
Definition at line 54 of file titleconverter.cxx.
|
overridevirtual |
Definition at line 59 of file titleconverter.cxx.
|
private |
Definition at line 121 of file titleconverter.cxx.
References Exception, and oox::drawingml::chart::ConverterRoot::getComponentContext().
Referenced by createStringSequence().
Reference< XDataSequence > oox::drawingml::chart::TextConverter::createDataSequence | ( | const OUString & | rRole | ) |
Creates a data sequence object from the contained text data.
Definition at line 63 of file titleconverter.cxx.
References oox::drawingml::chart::DataSequenceConverter::createDataSequence(), oox::drawingml::chart::ModelRef< ModelType >::is(), oox::drawingml::chart::ConverterBase< TextModel >::mrModel, and oox::drawingml::chart::TextModel::mxDataSeq.
Sequence< Reference< XFormattedString > > oox::drawingml::chart::TextConverter::createStringSequence | ( | const OUString & | rDefaultText, |
const ModelRef< TextBody > & | rxTextProp, | ||
ObjectType | eObjType | ||
) |
Creates a sequence of formatted string objects.
Definition at line 74 of file titleconverter.cxx.
References appendFormattedString(), oox::drawingml::TextCharacterProperties::assignUsed(), comphelper::containerToSequence(), oox::drawingml::chart::ObjectFormatter::convertTextFormatting(), oox::drawingml::chart::ConverterRoot::getFormatter(), oox::drawingml::TextParagraph::getProperties(), oox::drawingml::TextParagraph::getRuns(), oox::drawingml::TextRun::getText(), oox::drawingml::TextParagraphProperties::getTextCharacterProperties(), oox::drawingml::TextRun::getTextCharacterProperties(), oox::drawingml::chart::ModelRef< ModelType >::is(), oox::drawingml::TextRun::isLineBreak(), oox::drawingml::chart::ConverterBase< TextModel >::mrModel, oox::drawingml::chart::TextModel::mxDataSeq, and oox::drawingml::chart::TextModel::mxTextBody.
Referenced by oox::drawingml::chart::TitleConverter::convertFromModel().