LibreOffice Module sc (master)  1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
XclImpString Class Reference

This class represents an unformatted or formatted string and provides importing from stream. More...

#include <xistring.hxx>

Public Member Functions

 XclImpString ()
 Constructs an empty string. More...
 
 XclImpString (const OUString &rString)
 Constructs an unformatted string. More...
 
void Read (XclImpStream &rStrm, XclStrFlags nFlags=XclStrFlags::NONE)
 Reads a complete string from the passed stream. More...
 
void SetText (const OUString &rText)
 Sets the passed string data. More...
 
void SetFormats (const XclFormatRunVec &rFormats)
 Sets the passed formatting buffer. More...
 
void ReadFormats (XclImpStream &rStrm)
 Reads and appends the formatting information (run count and runs) from stream. More...
 
void ReadObjFormats (XclImpStream &rStrm, sal_uInt16 nFormatSize)
 Reads and appends formatting runs from an OBJ or TXO record. More...
 
bool IsEmpty () const
 Returns true, if the string is empty. More...
 
const OUString & GetText () const
 Returns the pure text data of the string. More...
 
bool IsRich () const
 Returns true, if the string contains formatting information. More...
 
const XclFormatRunVecGetFormats () const
 Returns the formatting run vector. More...
 

Static Public Member Functions

static void AppendFormat (XclFormatRunVec &rFormats, sal_uInt16 nChar, sal_uInt16 nFontIdx)
 Insert a formatting run to the passed format buffer. More...
 
static void ReadFormats (XclImpStream &rStrm, XclFormatRunVec &rFormats)
 Reads and appends the formatting information (run count and runs) from stream. More...
 
static void ReadFormats (XclImpStream &rStrm, XclFormatRunVec &rFormats, sal_uInt16 nRunCount)
 Reads and appends nRunCount formatting runs from stream. More...
 
static void ReadObjFormats (XclImpStream &rStrm, XclFormatRunVec &rFormats, sal_uInt16 nFormatSize)
 Reads and appends formatting runs from an OBJ or TXO record. More...
 

Private Attributes

OUString maString
 
XclFormatRunVec maFormats
 The text data of the string. More...
 

Detailed Description

This class represents an unformatted or formatted string and provides importing from stream.

Definition at line 31 of file xistring.hxx.

Constructor & Destructor Documentation

XclImpString::XclImpString ( )
explicit

Constructs an empty string.

Definition at line 32 of file xistring.cxx.

XclImpString::XclImpString ( const OUString &  rString)
explicit

Constructs an unformatted string.

Definition at line 36 of file xistring.cxx.

Member Function Documentation

void XclImpString::AppendFormat ( XclFormatRunVec rFormats,
sal_uInt16  nChar,
sal_uInt16  nFontIdx 
)
static

Insert a formatting run to the passed format buffer.

Definition at line 92 of file xistring.cxx.

Referenced by ReadFormats(), and ReadObjFormats().

const XclFormatRunVec& XclImpString::GetFormats ( ) const
inline

Returns the formatting run vector.

Definition at line 59 of file xistring.hxx.

References maFormats.

const OUString& XclImpString::GetText ( ) const
inline

Returns the pure text data of the string.

Definition at line 54 of file xistring.hxx.

References maString.

Referenced by XclImpStringHelper::SetToDocument().

bool XclImpString::IsEmpty ( ) const
inline

Returns true, if the string is empty.

Definition at line 52 of file xistring.hxx.

References maString.

bool XclImpString::IsRich ( ) const
inline

Returns true, if the string contains formatting information.

Definition at line 57 of file xistring.hxx.

References maFormats.

Referenced by ImportExcel::Rstring().

void XclImpString::Read ( XclImpStream rStrm,
XclStrFlags  nFlags = XclStrFlags::NONE 
)
void XclImpString::ReadFormats ( XclImpStream rStrm)
inline

Reads and appends the formatting information (run count and runs) from stream.

Definition at line 47 of file xistring.hxx.

References maFormats, and ReadFormats().

Referenced by Read(), ReadFormats(), XclImpChText::ReadSubRecord(), and ImportExcel::Rstring().

void XclImpString::ReadFormats ( XclImpStream rStrm,
XclFormatRunVec rFormats 
)
static

Reads and appends the formatting information (run count and runs) from stream.

Definition at line 102 of file xistring.cxx.

References EXC_BIFF8, XclRoot::GetBiff(), XclImpStream::GetRoot(), ReadFormats(), XclImpStream::ReaduInt16(), and XclImpStream::ReaduInt8().

void XclImpString::ReadFormats ( XclImpStream rStrm,
XclFormatRunVec rFormats,
sal_uInt16  nRunCount 
)
static
void XclImpString::ReadObjFormats ( XclImpStream rStrm,
sal_uInt16  nFormatSize 
)
inline

Reads and appends formatting runs from an OBJ or TXO record.

Definition at line 49 of file xistring.hxx.

References maFormats, and ReadObjFormats().

Referenced by ReadObjFormats().

void XclImpString::ReadObjFormats ( XclImpStream rStrm,
XclFormatRunVec rFormats,
sal_uInt16  nFormatSize 
)
static

Reads and appends formatting runs from an OBJ or TXO record.

Definition at line 146 of file xistring.cxx.

References AppendFormat(), XclImpStream::Ignore(), and XclImpStream::ReaduInt16().

void XclImpString::SetFormats ( const XclFormatRunVec rFormats)
inline

Sets the passed formatting buffer.

Definition at line 45 of file xistring.hxx.

References maFormats.

void XclImpString::SetText ( const OUString &  rText)
inline

Sets the passed string data.

Definition at line 43 of file xistring.hxx.

References maString.

Member Data Documentation

XclFormatRunVec XclImpString::maFormats
private

The text data of the string.

Definition at line 72 of file xistring.hxx.

Referenced by GetFormats(), IsRich(), Read(), ReadFormats(), ReadObjFormats(), and SetFormats().

OUString XclImpString::maString
private

Definition at line 71 of file xistring.hxx.

Referenced by GetText(), IsEmpty(), Read(), and SetText().


The documentation for this class was generated from the following files: