LibreOffice Module sc (master) 1
|
Implementation of the SST export. More...
Public Member Functions | |
XclExpSstImpl () | |
sal_uInt32 | Insert (XclExpStringRef xString) |
Inserts the passed string, if not already inserted, and returns the unique SST index. More... | |
void | Save (XclExpStream &rStrm) |
Writes the complete SST and EXTSST records. More... | |
void | SaveXml (XclExpXmlStream &rStrm) |
Private Types | |
typedef ::std::vector< XclExpHashEntry > | XclExpHashVec |
Private Attributes | |
std::vector< XclExpStringRef > | maStringVector |
std::vector< XclExpHashVec > | maHashTab |
List of unique strings (in SST ID order). More... | |
sal_uInt32 | mnTotal |
Hashed table that manages string pointers. More... | |
sal_uInt32 | mnSize |
Total count of strings (including doubles). More... | |
Implementation of the SST export.
@descr Stores all passed strings in a hash table and prevents repeated insertion of equal strings.
Definition at line 94 of file xecontent.cxx.
|
private |
Definition at line 107 of file xecontent.cxx.
|
explicit |
Definition at line 118 of file xecontent.cxx.
References mnSize.
sal_uInt32 XclExpSstImpl::Insert | ( | XclExpStringRef | xString | ) |
Inserts the passed string, if not already inserted, and returns the unique SST index.
Definition at line 125 of file xecontent.cxx.
References EXC_SST_HASHTABLE_SIZE, maHashTab, maStringVector, mnSize, and mnTotal.
void XclExpSstImpl::Save | ( | XclExpStream & | rStrm | ) |
Writes the complete SST and EXTSST records.
Definition at line 156 of file xecontent.cxx.
References EXC_ID_EXTSST, EXC_ID_SST, maStringVector, mnSize, mnTotal, rStrm, SvStream::Seek(), STREAM_SEEK_TO_BEGIN, SvStream::WriteUInt16(), and SvStream::WriteUInt32().
void XclExpSstImpl::SaveXml | ( | XclExpXmlStream & | rStrm | ) |
Definition at line 207 of file xecontent.cxx.
References oox::getRelationship(), maStringVector, mnSize, mnTotal, rStrm, and u.
|
private |
List of unique strings (in SST ID order).
Definition at line 111 of file xecontent.cxx.
Referenced by Insert().
|
private |
Definition at line 109 of file xecontent.cxx.
|
private |
Total count of strings (including doubles).
Definition at line 113 of file xecontent.cxx.
|
private |
Hashed table that manages string pointers.
Definition at line 112 of file xecontent.cxx.