| LibreOffice Module sc (master) 1
    | 
Contains text data and font attributes for a part of a rich formatted string. More...
#include <richstring.hxx>
| Public Member Functions | |
| RichStringPortion () | |
| void | setText (const OUString &rText) | 
| Sets text data for this portion.  More... | |
| FontRef const & | createFont (const WorkbookHelper &rHelper) | 
| Creates and returns a new font formatting object.  More... | |
| void | setFontId (sal_Int32 nFontId) | 
| Links this portion to a font object from the global font list.  More... | |
| void | finalizeImport (const WorkbookHelper &rHelper) | 
| Final processing after import of all strings.  More... | |
| const OUString & | getText () const | 
| Returns the text data of this portion.  More... | |
| bool | hasFont () const | 
| Returns true, if the portion contains font formatting.  More... | |
| void | convert (const css::uno::Reference< css::text::XText > &rxText, bool bReplace) | 
| Converts the portion and replaces or appends to the passed XText.  More... | |
| void | convert (ScEditEngineDefaulter &rEE, ESelection &rSelection, const oox::xls::Font *pFont) | 
| void | writeFontProperties (const css::uno::Reference< css::text::XText > &rxText) const | 
| Private Attributes | |
| OUString | maText | 
| FontRef | mxFont | 
| Portion text.  More... | |
| sal_Int32 | mnFontId | 
| Embedded portion font, may be empty.  More... | |
| bool | mbConverted | 
| Link to global font list.  More... | |
Contains text data and font attributes for a part of a rich formatted string.
Definition at line 38 of file richstring.hxx.
| oox::xls::RichStringPortion::RichStringPortion | ( | ) | 
Definition at line 54 of file richstring.cxx.
| void oox::xls::RichStringPortion::convert | ( | const css::uno::Reference< css::text::XText > & | rxText, | 
| bool | bReplace | ||
| ) | 
Converts the portion and replaces or appends to the passed XText.
| void oox::xls::RichStringPortion::convert | ( | ScEditEngineDefaulter & | rEE, | 
| ESelection & | rSelection, | ||
| const oox::xls::Font * | pFont | ||
| ) | 
Definition at line 109 of file richstring.cxx.
References oox::xls::Font::fillToItemSet(), EditEngine::GetEmptyItemSet(), maText, mxFont, ESelection::nEndPara, ESelection::nEndPos, ESelection::nStartPara, ESelection::nStartPos, and EditEngine::QuickSetAttribs().
| FontRef const & oox::xls::RichStringPortion::createFont | ( | const WorkbookHelper & | rHelper | ) | 
Creates and returns a new font formatting object.
Definition at line 65 of file richstring.cxx.
References mxFont.
| void oox::xls::RichStringPortion::finalizeImport | ( | const WorkbookHelper & | rHelper | ) | 
Final processing after import of all strings.
Definition at line 76 of file richstring.cxx.
References oox::xls::StylesBuffer::getFont(), oox::xls::WorkbookHelper::getStyles(), mnFontId, and mxFont.
| 
 | inline | 
Returns the text data of this portion.
Definition at line 54 of file richstring.hxx.
References maText.
| 
 | inline | 
Returns true, if the portion contains font formatting.
Definition at line 56 of file richstring.hxx.
References mxFont.
| void oox::xls::RichStringPortion::setFontId | ( | sal_Int32 | nFontId | ) | 
Links this portion to a font object from the global font list.
Definition at line 71 of file richstring.cxx.
References mnFontId.
Referenced by oox::xls::RichString::createTextPortions().
| void oox::xls::RichStringPortion::setText | ( | const OUString & | rText | ) | 
Sets text data for this portion.
Definition at line 60 of file richstring.cxx.
References oox::AttributeConversion::decodeXString(), and maText.
Referenced by oox::xls::RichString::createTextPortions(), and oox::xls::RichString::importString().
| void oox::xls::RichStringPortion::writeFontProperties | ( | const css::uno::Reference< css::text::XText > & | rxText | ) | const | 
Definition at line 144 of file richstring.cxx.
References mxFont.
| 
 | private | 
Definition at line 68 of file richstring.hxx.
| 
 | private | 
Link to global font list.
Definition at line 71 of file richstring.hxx.
| 
 | private | 
Embedded portion font, may be empty.
Definition at line 70 of file richstring.hxx.
Referenced by finalizeImport(), and setFontId().
| 
 | private | 
Portion text.
Definition at line 69 of file richstring.hxx.
Referenced by convert(), createFont(), finalizeImport(), hasFont(), and writeFontProperties().