30 namespace text {
class XText; }
33namespace oox {
class SequenceInputStream; }
44 void setText(
const OUString& rText );
60 const css::uno::Reference< css::text::XText >& rxText,
65 const css::uno::Reference< css::text::XText >& rxText )
const;
105 void insert(::std::vector< FontPortionModel >::iterator it,
109 ::std::vector< FontPortionModel >::iterator
begin() {
return mvModels.begin(); }
153 void setText(
const OUString& rText );
157 void setBaseRange( sal_Int32 nBasePos, sal_Int32 nBaseEnd );
194 ::std::vector< PhoneticPortionModel >::const_iterator
begin()
const {
return mvModels.begin(); }
234 void convert(
const css::uno::Reference< css::text::XText >& rxText );
A vector with all font portions in a rich-string.
void push_back(const FontPortionModel &rModel)
::std::vector< FontPortionModel > mvModels
void insert(::std::vector< FontPortionModel >::iterator it, const FontPortionModel &rModel)
::std::vector< FontPortionModel >::iterator begin()
void importPortions(SequenceInputStream &rStrm)
Reads count and font identifiers from the passed stream.
const FontPortionModel & front() const
const FontPortionModel & back() const
void appendPortion(const FontPortionModel &rPortion)
Appends a rich-string font identifier.
A vector with all phonetic portions in a rich-string.
::std::vector< PhoneticPortionModel > mvModels
PhoneticPortionModelList()
void importPortions(SequenceInputStream &rStrm)
Reads all phonetic portions from the passed stream.
void push_back(const PhoneticPortionModel &rModel)
::std::vector< PhoneticPortionModel >::const_iterator begin() const
const PhoneticPortionModel & back() const
void appendPortion(const PhoneticPortionModel &rPortion)
Appends a rich-string phonetic portion.
void importStringData(SequenceInputStream &rStrm)
Imports phonetic settings from a rich string.
PhoneticSettings(const WorkbookHelper &rHelper)
void importPhoneticPr(const AttributeList &rAttribs)
Imports phonetic settings from the phoneticPr element.
PhoneticDataModel maModel
Contains text data and positioning information for a phonetic text portion.
void setBaseRange(sal_Int32 nBasePos, sal_Int32 nBaseEnd)
Sets the associated range in base text for this phonetic portion.
void importPhoneticRun(const AttributeList &rAttribs)
Imports attributes of a phonetic run (rPh element).
void setText(const OUString &rText)
Sets text data for this phonetic portion.
sal_Int32 mnBaseEnd
Start position in base text.
sal_Int32 mnBasePos
Portion text.
Contains text data and font attributes for a part of a rich formatted string.
bool hasFont() const
Returns true, if the portion contains font formatting.
FontRef mxFont
Portion text.
void convert(const css::uno::Reference< css::text::XText > &rxText, bool bReplace)
Converts the portion and replaces or appends to the passed XText.
void writeFontProperties(const css::uno::Reference< css::text::XText > &rxText) const
bool mbConverted
Link to global font list.
FontRef const & createFont(const WorkbookHelper &rHelper)
Creates and returns a new font formatting object.
const OUString & getText() const
Returns the text data of this portion.
void setFontId(sal_Int32 nFontId)
Links this portion to a font object from the global font list.
void finalizeImport(const WorkbookHelper &rHelper)
Final processing after import of all strings.
sal_Int32 mnFontId
Embedded portion font, may be empty.
void setText(const OUString &rText)
Sets text data for this portion.
Contains string data and a list of formatting runs for a rich formatted string.
void finalizeImport(const WorkbookHelper &rHelper)
Final processing after import of all strings.
RefVector< RichStringPhonetic > PhoneticVector
void createPhoneticPortions(std::u16string_view aText, PhoneticPortionModelList &rPortions, sal_Int32 nBaseLen)
Create phonetic text portions from the passed string and portion data.
void importString(SequenceInputStream &rStrm, bool bRich, const WorkbookHelper &rHelper)
Imports a Unicode rich-string from the passed record stream.
void importPhoneticPr(const AttributeList &rAttribs, const WorkbookHelper &rHelper)
Imports phonetic settings from the rPhoneticPr element.
std::unique_ptr< PhoneticSettings > mxPhonSettings
String portions with font data.
std::vector< RichStringPortion > maTextPortions
PhoneticVector maPhonPortions
Phonetic settings for this string.
bool extractPlainString(OUString &orString, const oox::xls::Font *pFirstPortionFont) const
Tries to extract a plain string from this object.
bool mbPreserveSpace
Phonetic text portions.
sal_Int32 createPortion()
Creates, appends, and returns a new empty string portion.
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,...
void setAttributes(const AttributeList &rAttribs)
RichStringPhoneticRef importPhoneticRun(const AttributeList &rAttribs)
Appends and returns a phonetic text object for a new phonetic run (rPh element).
RichStringPortion & getPortion(sal_Int32 nPortionIdx)
sal_Int32 importText(const AttributeList &rAttribs)
Appends and returns an index of a portion object for a plain string (t element).
bool isPreserveSpace() const
RichStringPhoneticRef createPhonetic()
Creates, appends, and returns a new empty phonetic text portion.
sal_Int32 importRun()
Appends and returns an index of a portion object for a new formatting run (r element).
void createTextPortions(std::u16string_view aText, FontPortionModelList &rPortions)
Create base text portions from the passed string and character formatting.
Helper class to provide access to global workbook data.
std::shared_ptr< RichStringPhonetic > RichStringPhoneticRef
std::shared_ptr< Font > FontRef
std::shared_ptr< RichString > RichStringRef
Represents a position in a rich-string containing current font identifier.
FontPortionModel(sal_Int32 nPos)
FontPortionModel()
Font identifier for the next characters.
sal_Int32 mnFontId
First character in the string.
void read(SequenceInputStream &rStrm)
sal_Int32 mnType
Font identifier for text formatting.
sal_Int32 mnAlignment
Phonetic text type.
PhoneticDataModel()
Phonetic portion alignment.
void setBiffData(sal_Int32 nType, sal_Int32 nAlignment)
Sets the passed data from binary import.
Represents a phonetic text portion in a rich-string with phonetic text.
PhoneticPortionModel(sal_Int32 nPos, sal_Int32 nBasePos, sal_Int32 nBaseLen)
void read(SequenceInputStream &rStrm)
sal_Int32 mnBasePos
First character in phonetic text.
PhoneticPortionModel()
Number of characters in base text.
sal_Int32 mnBaseLen
First character in base text.