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

This class stores an unformatted or formatted string for Excel export. More...

#include <xestring.hxx>

Public Member Functions

 XclExpString (XclStrFlags nFlags=XclStrFlags::NONE, sal_uInt16 nMaxLen=EXC_STR_MAXLEN)
 Constructs an empty BIFF8 Unicode string. More...
 
 XclExpString (const OUString &rString, XclStrFlags nFlags=XclStrFlags::NONE, sal_uInt16 nMaxLen=EXC_STR_MAXLEN)
 Constructs an unformatted BIFF8 Unicode string. More...
 
void Assign (const OUString &rString, XclStrFlags nFlags=XclStrFlags::NONE, sal_uInt16 nMaxLen=EXC_STR_MAXLEN)
 Assigns an unformatted string, converts this object to a BIFF8 Unicode string. More...
 
void Assign (sal_Unicode cChar)
 Assigns a Unicode character, converts this object to a BIFF8 Unicode string. More...
 
void AssignByte (const OUString &rString, rtl_TextEncoding eTextEnc, XclStrFlags nFlags=XclStrFlags::NONE, sal_uInt16 nMaxLen=EXC_STR_MAXLEN)
 Assigns an unformatted string, converts this object to a BIFF2-BIFF7 byte string. More...
 
void Append (const OUString &rString)
 Appends a string. More...
 
void AppendByte (const OUString &rString, rtl_TextEncoding eTextEnc)
 Appends a string. More...
 
void AppendByte (sal_Unicode cChar, rtl_TextEncoding eTextEnc)
 Appends a character. More...
 
void AppendFormat (sal_uInt16 nChar, sal_uInt16 nFontIdx, bool bDropDuplicate=true)
 Appends a formatting run. More...
 
void AppendTrailingFormat (sal_uInt16 nFontIdx)
 Appends a trailing formatting run with the passed font index. More...
 
void LimitFormatCount (sal_uInt16 nMaxCount)
 Removes formatting runs at the end, if the string contains too much. More...
 
sal_uInt16 GetLeadingFont ()
 Returns the font index of the first char in the formatting run, or EXC_FONT_NOTFOUND. More...
 
sal_uInt16 RemoveLeadingFont ()
 The same as above + additionally remove the given font from the formatting run. More...
 
sal_uInt16 Len () const
 Returns the character count of the string. More...
 
bool IsEmpty () const
 Returns true, if the string is empty. More...
 
bool IsWrapped () const
 Returns true, if the string contains line breaks. More...
 
bool IsEqual (const XclExpString &rCmp) const
 Returns true, if this string is equal to the passed string. More...
 
bool IsLessThan (const XclExpString &rCmp) const
 Returns true, if this string is less than the passed string. More...
 
bool IsRich () const
 Returns true, if the string contains formatting information. More...
 
sal_uInt16 GetFormatsCount () const
 Returns the current count of formatting runs for rich strings. More...
 
const XclFormatRunVecGetFormats () const
 Returns the vector with all formatting runs. More...
 
sal_uInt8 GetFlagField () const
 Returns the current string flags field to export. More...
 
sal_uInt16 GetHeaderSize () const
 Returns the byte count the header will take on export. More...
 
std::size_t GetBufferSize () const
 Returns the byte count the character buffer will take on export. More...
 
std::size_t GetSize () const
 Returns the byte count the whole string will take on export. More...
 
sal_uInt16 GetChar (sal_uInt16 nCharIdx) const
 Returns the specified character from the (already encoded) string. More...
 
sal_uInt16 GetHash () const
 Returns a hash value for the string. More...
 
const ScfUInt16VecGetUnicodeBuffer () const
 
void WriteLenField (XclExpStream &rStrm) const
 Writes the string length field (1 byte or 2 bytes). More...
 
void WriteFlagField (XclExpStream &rStrm) const
 Writes the string flags field (1 byte). More...
 
void WriteHeader (XclExpStream &rStrm) const
 Writes 8-bit or 16-bit length field and string flags field. More...
 
void WriteBuffer (XclExpStream &rStrm) const
 Writes the raw character buffer. More...
 
void WriteFormats (XclExpStream &rStrm, bool bWriteSize=false) const
 Writes the raw formatting run buffer. More...
 
void Write (XclExpStream &rStrm) const
 Writes the complete Unicode string. More...
 
void WriteHeaderToMem (sal_uInt8 *pnMem) const
 Writes the string header to memory. More...
 
void WriteBufferToMem (sal_uInt8 *pnMem) const
 Writes the raw character buffer to memory (8-bit or 16-bit little-endian). More...
 
void WriteToMem (sal_uInt8 *pnMem) const
 Writes the entire string to memory. More...
 
void WriteXml (XclExpXmlStream &rStrm) const
 

Private Member Functions

bool IsWriteFlags () const
 Returns true, if the flag field should be written. More...
 
bool IsWriteFormats () const
 Returns true, if the formatting run vector should be written. More...
 
void SetStrLen (sal_Int32 nNewLen)
 Sets the string length but regards the limit given in mnMaxLen. More...
 
void CharsToBuffer (const sal_Unicode *pcSource, sal_Int32 nBegin, sal_Int32 nLen)
 Inserts the passed character array into the internal character buffer. More...
 
void CharsToBuffer (const char *pcSource, sal_Int32 nBegin, sal_Int32 nLen)
 Inserts the passed character array into the internal character buffer. More...
 
void Init (sal_Int32 nCurrLen, XclStrFlags nFlags, sal_uInt16 nMaxLen, bool bBiff8)
 Initializes flags, string length, and resizes character buffer. More...
 
void Build (const sal_Unicode *pcSource, sal_Int32 nCurrLen, XclStrFlags nFlags, sal_uInt16 nMaxLen)
 Creates the character buffer from the given Unicode array. More...
 
void Build (const char *pcSource, sal_Int32 nCurrLen, XclStrFlags nFlags, sal_uInt16 nMaxLen)
 Creates the character buffer from the given character array. More...
 
void InitAppend (sal_Int32 nAddLen)
 Initializes string length and resizes character buffers for appending operation. More...
 
void BuildAppend (const sal_Unicode *pcSource, sal_Int32 nAddLen)
 Appends the given Unicode array to the character buffer. More...
 
void BuildAppend (const char *pcSource, sal_Int32 nAddLen)
 Appends the given character array to the character buffer. More...
 
void PrepareWrite (XclExpStream &rStrm, sal_uInt16 nBytes) const
 Initializes write process on stream. More...
 

Private Attributes

ScfUInt16Vec maUniBuffer
 
ScfUInt8Vec maCharBuffer
 The Unicode character buffer. More...
 
XclFormatRunVec maFormats
 The byte character buffer. More...
 
sal_uInt16 mnLen
 All formatting runs. More...
 
sal_uInt16 mnMaxLen
 Character count to export. More...
 
bool mbIsBiff8
 Maximum allowed number of characters. More...
 
bool mbIsUnicode
 true = BIFF8 Unicode string, false = BIFF2-7 bytestring. More...
 
bool mb8BitLen
 true, if at least one character is >0xFF. More...
 
bool mbSmartFlags
 true = write 8-bit string length; false = 16-bit. More...
 
bool mbSkipFormats
 true = omit flags on empty string; false = always write flags. More...
 
bool mbWrapped
 true = skip formats on export; false = write complete formatted string. More...
 
bool mbSkipHeader
 true = text contains several paragraphs. More...
 

Detailed Description

This class stores an unformatted or formatted string for Excel export.

The class supports two completely different types of Excel strings: 1) BIFF2-BIFF7 byte strings: The text is encoded as a 8-bit character array. The strings cannot contain any character formatting. 2) BIFF8 Unicode strings: The text may be stored as UCS-2 character array, or compressed to an 8-bit array, if all characters are less than U+0100. Unicode strings may contain a formatting array, that specifies the used FONT record for different ranges of characters.

The class provides full support for NUL characters in strings. On construction or assignment the passed flags specify the behaviour of the string while it is written to a stream (the 'Write' functions and 'operator<<').

Definition at line 43 of file xestring.hxx.

Constructor & Destructor Documentation

XclExpString::XclExpString ( XclStrFlags  nFlags = XclStrFlags::NONE,
sal_uInt16  nMaxLen = EXC_STR_MAXLEN 
)
explicit

Constructs an empty BIFF8 Unicode string.

Parameters
nFlagsModifiers for string export.
nMaxLenThe maximum number of characters to store in this string.

Definition at line 99 of file xestring.cxx.

References Init().

XclExpString::XclExpString ( const OUString &  rString,
XclStrFlags  nFlags = XclStrFlags::NONE,
sal_uInt16  nMaxLen = EXC_STR_MAXLEN 
)
explicit

Constructs an unformatted BIFF8 Unicode string.

Parameters
nFlagsModifiers for string export.
nMaxLenThe maximum number of characters to store in this string.

Definition at line 104 of file xestring.cxx.

References Assign().

Member Function Documentation

void XclExpString::Append ( const OUString &  rString)

Appends a string.

Uses the string flags used in constructor or last Assign(). This object must be a BIFF8 Unicode string.

Definition at line 131 of file xestring.cxx.

References BuildAppend().

Referenced by XclExpStringHelper::AppendChar(), and XclExpStringHelper::AppendString().

void XclExpString::AppendByte ( const OUString &  rString,
rtl_TextEncoding  eTextEnc 
)

Appends a string.

Uses the string flags used in constructor or last Assign(). This object must be a BIFF2-BIFF7 byte string.

Definition at line 136 of file xestring.cxx.

References BuildAppend(), and OUStringToOString().

Referenced by XclExpStringHelper::AppendChar(), and XclExpStringHelper::AppendString().

void XclExpString::AppendByte ( sal_Unicode  cChar,
rtl_TextEncoding  eTextEnc 
)

Appends a character.

Uses the string flags used in constructor or last Assign(). This object must be a BIFF2-BIFF7 byte string.

Definition at line 146 of file xestring.cxx.

References BuildAppend().

void XclExpString::AppendFormat ( sal_uInt16  nChar,
sal_uInt16  nFontIdx,
bool  bDropDuplicate = true 
)

Appends a formatting run.

nChar must be greater than last contained character index.

Definition at line 162 of file xestring.cxx.

References EXC_STR_MAXLEN, EXC_STR_MAXLEN_8BIT, maFormats, and mbIsBiff8.

Referenced by AppendTrailingFormat().

void XclExpString::AppendTrailingFormat ( sal_uInt16  nFontIdx)

Appends a trailing formatting run with the passed font index.

Definition at line 170 of file xestring.cxx.

References AppendFormat(), and mnLen.

void XclExpString::Assign ( const OUString &  rString,
XclStrFlags  nFlags = XclStrFlags::NONE,
sal_uInt16  nMaxLen = EXC_STR_MAXLEN 
)

Assigns an unformatted string, converts this object to a BIFF8 Unicode string.

Parameters
nFlagsModifiers for string export.
nMaxLenThe maximum number of characters to store in this string.

Definition at line 111 of file xestring.cxx.

References Build().

Referenced by ExcEScenario::ExcEScenario(), XclExpHeaderFooter::WriteBody(), XclExpStyle::WriteBody(), XclExpNumFmtBuffer::WriteFormatRecord(), XclExpDV::XclExpDV(), XclExpFileSharing::XclExpFileSharing(), and XclExpString().

void XclExpString::Assign ( sal_Unicode  cChar)

Assigns a Unicode character, converts this object to a BIFF8 Unicode string.

Definition at line 116 of file xestring.cxx.

References Build(), EXC_STR_MAXLEN, and NONE.

void XclExpString::AssignByte ( const OUString &  rString,
rtl_TextEncoding  eTextEnc,
XclStrFlags  nFlags = XclStrFlags::NONE,
sal_uInt16  nMaxLen = EXC_STR_MAXLEN 
)

Assigns an unformatted string, converts this object to a BIFF2-BIFF7 byte string.

Parameters
nFlagsModifiers for string export.
nMaxLenThe maximum number of characters to store in this string.

Definition at line 121 of file xestring.cxx.

References Build(), and OUStringToOString().

Referenced by XclExpHeaderFooter::WriteBody(), XclExpFont::WriteBody(), XclExpStyle::WriteBody(), XclExpNumFmtBuffer::WriteFormatRecord(), and XclExpFileSharing::XclExpFileSharing().

void XclExpString::Build ( const sal_Unicode pcSource,
sal_Int32  nCurrLen,
XclStrFlags  nFlags,
sal_uInt16  nMaxLen 
)
private

Creates the character buffer from the given Unicode array.

Parameters
pcSourceThe source character buffer. Trailing NUL character is not necessary.
nFlagsModifiers for string export.
nCurrLenThe real count of characters contained in the passed buffer.
nMaxLenThe maximum length allowed of the resulting string.

Definition at line 516 of file xestring.cxx.

References CharsToBuffer(), Init(), and mnLen.

Referenced by Assign(), and AssignByte().

void XclExpString::Build ( const char *  pcSource,
sal_Int32  nCurrLen,
XclStrFlags  nFlags,
sal_uInt16  nMaxLen 
)
private

Creates the character buffer from the given character array.

Parameters
pcSourceThe source character buffer. Trailing NUL character is not necessary.
nFlagsModifiers for string export.
nCurrLenThe real count of characters contained in the passed buffer.
nMaxLenThe maximum length allowed of the resulting string.

Definition at line 522 of file xestring.cxx.

References CharsToBuffer(), Init(), and mnLen.

void XclExpString::BuildAppend ( const sal_Unicode pcSource,
sal_Int32  nAddLen 
)
private

Appends the given Unicode array to the character buffer.

Parameters
pcSourceThe source character buffer. Trailing NUL character is not necessary.
nAddLenThe real count of characters contained in the passed buffer.

Definition at line 537 of file xestring.cxx.

References CharsToBuffer(), InitAppend(), mbIsBiff8, and mnLen.

Referenced by Append(), and AppendByte().

void XclExpString::BuildAppend ( const char *  pcSource,
sal_Int32  nAddLen 
)
private

Appends the given character array to the character buffer.

Parameters
pcSourceThe source character buffer. Trailing NUL character is not necessary.
nAddLenThe real count of characters contained in the passed buffer.

Definition at line 548 of file xestring.cxx.

References CharsToBuffer(), InitAppend(), mbIsBiff8, and mnLen.

void XclExpString::CharsToBuffer ( const sal_Unicode pcSource,
sal_Int32  nBegin,
sal_Int32  nLen 
)
private

Inserts the passed character array into the internal character buffer.

Parameters
nBeginFirst index in internal buffer to fill.
nLenNumber of characters to insert.

Definition at line 460 of file xestring.cxx.

References EXC_LF, o3tl::make_unsigned(), maUniBuffer, mbIsUnicode, and mbWrapped.

Referenced by Build(), and BuildAppend().

void XclExpString::CharsToBuffer ( const char *  pcSource,
sal_Int32  nBegin,
sal_Int32  nLen 
)
private

Inserts the passed character array into the internal character buffer.

Parameters
nBeginFirst index in internal buffer to fill.
nLenNumber of characters to insert.

Definition at line 477 of file xestring.cxx.

References EXC_LF_C, maCharBuffer, o3tl::make_unsigned(), mbIsUnicode, and mbWrapped.

std::size_t XclExpString::GetBufferSize ( ) const

Returns the byte count the character buffer will take on export.

Definition at line 243 of file xestring.cxx.

References mbIsUnicode, and mnLen.

Referenced by ExcEScenario::ExcEScenario(), ExcBundlesheet8::GetLen(), GetSize(), lcl_WriteFixedString(), and XclExpHyperlink::XclExpHyperlink().

sal_uInt16 XclExpString::GetChar ( sal_uInt16  nCharIdx) const

Returns the specified character from the (already encoded) string.

Definition at line 256 of file xestring.cxx.

References Len(), maCharBuffer, maUniBuffer, and mbIsBiff8.

sal_uInt8 XclExpString::GetFlagField ( ) const

Returns the current string flags field to export.

Definition at line 230 of file xestring.cxx.

References EXC_STRF_16BIT, EXC_STRF_RICH, IsWriteFormats(), and mbIsUnicode.

Referenced by WriteBuffer(), WriteFlagField(), WriteHeader(), and WriteHeaderToMem().

const XclFormatRunVec& XclExpString::GetFormats ( ) const
inline

Returns the vector with all formatting runs.

Definition at line 129 of file xestring.hxx.

References maFormats.

sal_uInt16 XclExpString::GetFormatsCount ( ) const

Returns the current count of formatting runs for rich strings.

Definition at line 225 of file xestring.cxx.

References maFormats.

Referenced by GetSize(), WriteFormats(), and WriteHeader().

sal_uInt16 XclExpString::GetHash ( ) const

Returns a hash value for the string.

Definition at line 262 of file xestring.cxx.

References maCharBuffer, maFormats, maUniBuffer, and mbIsBiff8.

sal_uInt16 XclExpString::GetHeaderSize ( ) const

Returns the byte count the header will take on export.

Definition at line 235 of file xestring.cxx.

References IsWriteFlags(), IsWriteFormats(), and mb8BitLen.

Referenced by GetSize(), WriteHeader(), and WriteToMem().

sal_uInt16 XclExpString::GetLeadingFont ( )

Returns the font index of the first char in the formatting run, or EXC_FONT_NOTFOUND.

Definition at line 181 of file xestring.cxx.

References EXC_FONT_NOTFOUND, and maFormats.

Referenced by RemoveLeadingFont().

std::size_t XclExpString::GetSize ( ) const
const ScfUInt16Vec& XclExpString::GetUnicodeBuffer ( ) const
inline

Definition at line 145 of file xestring.hxx.

References maUniBuffer.

Referenced by XclXmlUtils::ToOString(), XclXmlUtils::ToOUString(), and WriteXml().

void XclExpString::Init ( sal_Int32  nCurrLen,
XclStrFlags  nFlags,
sal_uInt16  nMaxLen,
bool  bBiff8 
)
private

Initializes flags, string length, and resizes character buffer.

Parameters
nFlagsModifiers for string export.
nCurrLenThe requested number of characters for the string.
nMaxLenThe maximum length allowed of the resulting string.
bBiff8true = BIFF8 Unicode string; false = BIFF2-BIFF7 byte string.

Definition at line 491 of file xestring.cxx.

References EightBitLength, ForceUnicode, maCharBuffer, maFormats, maUniBuffer, mb8BitLen, mbIsBiff8, mbIsUnicode, mbSkipFormats, mbSkipHeader, mbSmartFlags, mbWrapped, mnLen, mnMaxLen, NoHeader, SeparateFormats, SetStrLen(), and SmartFlags.

Referenced by Build(), and XclExpString().

void XclExpString::InitAppend ( sal_Int32  nAddLen)
private

Initializes string length and resizes character buffers for appending operation.

Parameters
nAddLenThe number of characters to be appended.

Definition at line 528 of file xestring.cxx.

References maCharBuffer, maUniBuffer, mbIsBiff8, mnLen, and SetStrLen().

Referenced by BuildAppend().

bool XclExpString::IsEmpty ( ) const
inline

Returns true, if the string is empty.

Definition at line 116 of file xestring.hxx.

References mnLen.

Referenced by IsWriteFlags(), and WriteBufferToMem().

bool XclExpString::IsEqual ( const XclExpString rCmp) const

Returns true, if this string is equal to the passed string.

Definition at line 201 of file xestring.cxx.

References maCharBuffer, maFormats, maUniBuffer, mbIsBiff8, mbIsUnicode, mbWrapped, and mnLen.

Referenced by operator==().

bool XclExpString::IsLessThan ( const XclExpString rCmp) const

Returns true, if this string is less than the passed string.

Definition at line 215 of file xestring.cxx.

References maCharBuffer, maFormats, maUniBuffer, and mbIsBiff8.

Referenced by operator<().

bool XclExpString::IsRich ( ) const
inline

Returns true, if the string contains formatting information.

Definition at line 125 of file xestring.hxx.

References maFormats.

Referenced by IsWriteFormats(), XclXmlUtils::ToOString(), XclXmlUtils::ToOUString(), and WriteFormats().

bool XclExpString::IsWrapped ( ) const
inline

Returns true, if the string contains line breaks.

Definition at line 118 of file xestring.hxx.

References mbWrapped.

bool XclExpString::IsWriteFlags ( ) const
private

Returns true, if the flag field should be written.

Definition at line 444 of file xestring.cxx.

References IsEmpty(), mbIsBiff8, and mbSmartFlags.

Referenced by GetHeaderSize(), WriteHeader(), and WriteHeaderToMem().

bool XclExpString::IsWriteFormats ( ) const
private

Returns true, if the formatting run vector should be written.

Definition at line 449 of file xestring.cxx.

References IsRich(), mbIsBiff8, and mbSkipFormats.

Referenced by GetFlagField(), GetHeaderSize(), GetSize(), Write(), WriteHeader(), WriteHeaderToMem(), and WriteXml().

sal_uInt16 XclExpString::Len ( ) const
inline
void XclExpString::LimitFormatCount ( sal_uInt16  nMaxCount)

Removes formatting runs at the end, if the string contains too much.

Definition at line 175 of file xestring.cxx.

References maFormats.

void XclExpString::PrepareWrite ( XclExpStream rStrm,
sal_uInt16  nBytes 
) const
private

Initializes write process on stream.

Definition at line 559 of file xestring.cxx.

References mbIsUnicode, and XclExpStream::SetSliceSize().

Referenced by WriteFlagField(), and WriteHeader().

sal_uInt16 XclExpString::RemoveLeadingFont ( )

The same as above + additionally remove the given font from the formatting run.

Definition at line 191 of file xestring.cxx.

References EXC_FONT_NOTFOUND, GetLeadingFont(), and maFormats.

void XclExpString::SetStrLen ( sal_Int32  nNewLen)
private

Sets the string length but regards the limit given in mnMaxLen.

Definition at line 454 of file xestring.cxx.

References limit_cast(), mb8BitLen, mnLen, and mnMaxLen.

Referenced by Init(), and InitAppend().

void XclExpString::Write ( XclExpStream rStrm) const

Writes the complete Unicode string.

Definition at line 336 of file xestring.cxx.

References IsWriteFormats(), mbSkipHeader, WriteBuffer(), WriteFormats(), and WriteHeader().

Referenced by operator<<().

void XclExpString::WriteBuffer ( XclExpStream rStrm) const
void XclExpString::WriteBufferToMem ( sal_uInt8 pnMem) const

Writes the raw character buffer to memory (8-bit or 16-bit little-endian).

Definition at line 366 of file xestring.cxx.

References assert(), IsEmpty(), maCharBuffer, maUniBuffer, mbIsBiff8, mbIsUnicode, and mnLen.

Referenced by WriteToMem().

void XclExpString::WriteFlagField ( XclExpStream rStrm) const

Writes the string flags field (1 byte).

Definition at line 279 of file xestring.cxx.

References GetFlagField(), mbIsBiff8, PrepareWrite(), and XclExpStream::SetSliceSize().

Referenced by operator<<(), and ExcEScenario::SaveCont().

void XclExpString::WriteFormats ( XclExpStream rStrm,
bool  bWriteSize = false 
) const

Writes the raw formatting run buffer.

Definition at line 312 of file xestring.cxx.

References GetFormatsCount(), IsRich(), maFormats, mbIsBiff8, and XclExpStream::SetSliceSize().

Referenced by Write().

void XclExpString::WriteHeader ( XclExpStream rStrm) const

Writes 8-bit or 16-bit length field and string flags field.

Definition at line 289 of file xestring.cxx.

References GetFlagField(), GetFormatsCount(), GetHeaderSize(), IsWriteFlags(), IsWriteFormats(), mb8BitLen, mnLen, PrepareWrite(), XclExpStream::SetSliceSize(), and WriteLenField().

Referenced by Write().

void XclExpString::WriteHeaderToMem ( sal_uInt8 pnMem) const

Writes the string header to memory.

Definition at line 345 of file xestring.cxx.

References assert(), GetFlagField(), IsWriteFlags(), IsWriteFormats(), mb8BitLen, and mnLen.

Referenced by WriteToMem().

void XclExpString::WriteLenField ( XclExpStream rStrm) const

Writes the string length field (1 byte or 2 bytes).

Definition at line 271 of file xestring.cxx.

References mb8BitLen, and mnLen.

Referenced by WriteHeader().

void XclExpString::WriteToMem ( sal_uInt8 pnMem) const

Writes the entire string to memory.

Definition at line 389 of file xestring.cxx.

References GetHeaderSize(), WriteBufferToMem(), and WriteHeaderToMem().

void XclExpString::WriteXml ( XclExpXmlStream rStrm) const

Member Data Documentation

ScfUInt8Vec XclExpString::maCharBuffer
private

The Unicode character buffer.

Definition at line 228 of file xestring.hxx.

Referenced by CharsToBuffer(), GetChar(), GetHash(), Init(), InitAppend(), IsEqual(), IsLessThan(), WriteBuffer(), and WriteBufferToMem().

XclFormatRunVec XclExpString::maFormats
private
ScfUInt16Vec XclExpString::maUniBuffer
private
bool XclExpString::mb8BitLen
private

true, if at least one character is >0xFF.

Definition at line 234 of file xestring.hxx.

Referenced by GetHeaderSize(), Init(), SetStrLen(), WriteHeader(), WriteHeaderToMem(), and WriteLenField().

bool XclExpString::mbIsBiff8
private
bool XclExpString::mbIsUnicode
private

true = BIFF8 Unicode string, false = BIFF2-7 bytestring.

Definition at line 233 of file xestring.hxx.

Referenced by CharsToBuffer(), GetBufferSize(), GetFlagField(), Init(), IsEqual(), PrepareWrite(), and WriteBufferToMem().

bool XclExpString::mbSkipFormats
private

true = omit flags on empty string; false = always write flags.

Definition at line 236 of file xestring.hxx.

Referenced by Init(), and IsWriteFormats().

bool XclExpString::mbSkipHeader
private

true = text contains several paragraphs.

Definition at line 238 of file xestring.hxx.

Referenced by Init(), and Write().

bool XclExpString::mbSmartFlags
private

true = write 8-bit string length; false = 16-bit.

Definition at line 235 of file xestring.hxx.

Referenced by Init(), and IsWriteFlags().

bool XclExpString::mbWrapped
private

true = skip formats on export; false = write complete formatted string.

Definition at line 237 of file xestring.hxx.

Referenced by CharsToBuffer(), Init(), IsEqual(), and IsWrapped().

sal_uInt16 XclExpString::mnLen
private
sal_uInt16 XclExpString::mnMaxLen
private

Character count to export.

Definition at line 231 of file xestring.hxx.

Referenced by Init(), and SetStrLen().


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