| LibreOffice Module sc (master) 1
    | 
Contains string data and a list of formatting runs for a rich formatted string. More...
#include <richstring.hxx>
| Public Member Functions | |
| sal_Int32 | importText (const AttributeList &rAttribs) | 
| Appends and returns an index of a portion object for a plain string (t element).  More... | |
| sal_Int32 | importRun () | 
| Appends and returns an index of a portion object for a new formatting run (r element).  More... | |
| RichStringPhoneticRef | importPhoneticRun (const AttributeList &rAttribs) | 
| Appends and returns a phonetic text object for a new phonetic run (rPh element).  More... | |
| void | importPhoneticPr (const AttributeList &rAttribs, const WorkbookHelper &rHelper) | 
| Imports phonetic settings from the rPhoneticPr element.  More... | |
| void | importString (SequenceInputStream &rStrm, bool bRich, const WorkbookHelper &rHelper) | 
| Imports a Unicode rich-string from the passed record stream.  More... | |
| void | finalizeImport (const WorkbookHelper &rHelper) | 
| Final processing after import of all strings.  More... | |
| bool | extractPlainString (OUString &orString, const oox::xls::Font *pFirstPortionFont) const | 
| Tries to extract a plain string from this object.  More... | |
| void | convert (const css::uno::Reference< css::text::XText > &rxText) | 
| Converts the string and writes it into the passed XText, replace old contents of the text object,.  More... | |
| std::unique_ptr< EditTextObject > | convert (ScEditEngineDefaulter &rEE, const oox::xls::Font *pFont) | 
| RichStringPortion & | getPortion (sal_Int32 nPortionIdx) | 
| void | setAttributes (const AttributeList &rAttribs) | 
| bool | isPreserveSpace () const | 
| Private Types | |
| typedef RefVector< RichStringPhonetic > | PhoneticVector | 
| Private Member Functions | |
| sal_Int32 | createPortion () | 
| Creates, appends, and returns a new empty string portion.  More... | |
| RichStringPhoneticRef | createPhonetic () | 
| Creates, appends, and returns a new empty phonetic text portion.  More... | |
| void | createTextPortions (std::u16string_view aText, FontPortionModelList &rPortions) | 
| Create base text portions from the passed string and character formatting.  More... | |
| void | createPhoneticPortions (std::u16string_view aText, PhoneticPortionModelList &rPortions, sal_Int32 nBaseLen) | 
| Create phonetic text portions from the passed string and portion data.  More... | |
| Private Attributes | |
| std::vector< RichStringPortion > | maTextPortions | 
| std::unique_ptr< PhoneticSettings > | mxPhonSettings | 
| String portions with font data.  More... | |
| PhoneticVector | maPhonPortions | 
| Phonetic settings for this string.  More... | |
| bool | mbPreserveSpace = false | 
| Phonetic text portions.  More... | |
Contains string data and a list of formatting runs for a rich formatted string.
Definition at line 206 of file richstring.hxx.
| 
 | private | 
Definition at line 255 of file richstring.hxx.
| void oox::xls::RichString::convert | ( | const css::uno::Reference< css::text::XText > & | rxText | ) | 
Converts the string and writes it into the passed XText, replace old contents of the text object,.
| rxText | The XText interface of the target object. | 
Referenced by oox::xls::WorksheetHelper::putRichString().
| std::unique_ptr< EditTextObject > oox::xls::RichString::convert | ( | ScEditEngineDefaulter & | rEE, | 
| const oox::xls::Font * | pFont | ||
| ) | 
Definition at line 401 of file richstring.cxx.
References EditEngine::CreateTextObject(), maTextPortions, and ScEditEngineDefaulter::SetTextCurrentDefaults().
| 
 | private | 
Creates, appends, and returns a new empty phonetic text portion.
Definition at line 431 of file richstring.cxx.
References maPhonPortions.
Referenced by createPhoneticPortions(), and importPhoneticRun().
| 
 | private | 
Create phonetic text portions from the passed string and portion data.
Definition at line 464 of file richstring.cxx.
References oox::xls::PhoneticPortionModelList::back(), oox::xls::PhoneticPortionModelList::begin(), createPhonetic(), oox::xls::PhoneticPortionModelList::empty(), maPhonPortions, oox::xls::PhoneticPortionModel::mnPos, and oox::xls::PhoneticPortionModelList::push_back().
Referenced by importString().
| 
 | private | 
Creates, appends, and returns a new empty string portion.
Definition at line 425 of file richstring.cxx.
References maTextPortions.
Referenced by createTextPortions(), importRun(), importString(), and importText().
| 
 | private | 
Create base text portions from the passed string and character formatting.
Definition at line 438 of file richstring.cxx.
References oox::xls::FontPortionModelList::back(), oox::xls::FontPortionModelList::begin(), createPortion(), oox::xls::FontPortionModelList::empty(), oox::xls::FontPortionModelList::front(), getPortion(), oox::xls::FontPortionModelList::insert(), maTextPortions, oox::xls::FontPortionModel::mnPos, oox::xls::FontPortionModelList::push_back(), oox::xls::RichStringPortion::setFontId(), and oox::xls::RichStringPortion::setText().
Referenced by importString().
| bool oox::xls::RichString::extractPlainString | ( | OUString & | orString, | 
| const oox::xls::Font * | pFirstPortionFont | ||
| ) | const | 
Tries to extract a plain string from this object.
Returns the string, if there is only one unformatted portion.
Definition at line 364 of file richstring.cxx.
References maPhonPortions, and maTextPortions.
| void oox::xls::RichString::finalizeImport | ( | const WorkbookHelper & | rHelper | ) | 
Final processing after import of all strings.
Definition at line 358 of file richstring.cxx.
References maTextPortions.
| 
 | inline | 
Definition at line 237 of file richstring.hxx.
References maTextPortions.
Referenced by createTextPortions(), and importString().
| void oox::xls::RichString::importPhoneticPr | ( | const AttributeList & | rAttribs, | 
| const WorkbookHelper & | rHelper | ||
| ) | 
Imports phonetic settings from the rPhoneticPr element.
Definition at line 323 of file richstring.cxx.
References mxPhonSettings.
| RichStringPhoneticRef oox::xls::RichString::importPhoneticRun | ( | const AttributeList & | rAttribs | ) | 
Appends and returns a phonetic text object for a new phonetic run (rPh element).
Definition at line 316 of file richstring.cxx.
References createPhonetic().
| sal_Int32 oox::xls::RichString::importRun | ( | ) | 
Appends and returns an index of a portion object for a new formatting run (r element).
Definition at line 304 of file richstring.cxx.
References createPortion().
| void oox::xls::RichString::importString | ( | SequenceInputStream & | rStrm, | 
| bool | bRich, | ||
| const WorkbookHelper & | rHelper | ||
| ) | 
Imports a Unicode rich-string from the passed record stream.
Definition at line 330 of file richstring.cxx.
References createPhoneticPortions(), createPortion(), createTextPortions(), oox::getFlag(), getPortion(), oox::xls::FontPortionModelList::importPortions(), oox::xls::PhoneticPortionModelList::importPortions(), mxPhonSettings, oox::xls::BiffHelper::readString(), rStrm, and oox::xls::RichStringPortion::setText().
| sal_Int32 oox::xls::RichString::importText | ( | const AttributeList & | rAttribs | ) | 
Appends and returns an index of a portion object for a plain string (t element).
Definition at line 297 of file richstring.cxx.
References createPortion(), and setAttributes().
| 
 | inline | 
Definition at line 241 of file richstring.hxx.
References mbPreserveSpace.
| void oox::xls::RichString::setAttributes | ( | const AttributeList & | rAttribs | ) | 
Definition at line 309 of file richstring.cxx.
References oox::AttributeList::getString(), and mbPreserveSpace.
Referenced by importText().
| 
 | private | 
Phonetic settings for this string.
Definition at line 259 of file richstring.hxx.
Referenced by createPhonetic(), createPhoneticPortions(), and extractPlainString().
| 
 | private | 
Definition at line 257 of file richstring.hxx.
Referenced by convert(), createPortion(), createTextPortions(), extractPlainString(), finalizeImport(), and getPortion().
| 
 | private | 
Phonetic text portions.
Definition at line 260 of file richstring.hxx.
Referenced by isPreserveSpace(), and setAttributes().
| 
 | private | 
String portions with font data.
Definition at line 258 of file richstring.hxx.
Referenced by importPhoneticPr(), and importString().