LibreOffice Module sc (master) 1
|
A buffer containing information about names and creation order of sheets. More...
#include <xilink.hxx>
Public Member Functions | |
void | AppendXclTabName (const OUString &rXclTabName, SCTAB nScTab) |
Appends an original Excel sheet name with corresponding Calc sheet index. More... | |
void | InsertScTab (SCTAB nScTab) |
Inserts a Calc sheet index (increases all following sheet indexes). More... | |
SCTAB | GetScTabFromXclName (const OUString &rXclTabName) const |
Returns the Calc sheet index from the passed original Excel sheet name. More... | |
void | ReadTabid (XclImpStream &rStrm) |
Reads the TABID record. More... | |
sal_uInt16 | GetCurrentIndex (sal_uInt16 nCreatedId, sal_uInt16 nMaxTabId) const |
Returns the current sheet index calculated from creation index. More... | |
Private Types | |
typedef ::std::map< OUString, SCTAB > | XclTabNameMap |
Private Attributes | |
XclTabNameMap | maTabNames |
ScfUInt16Vec | maTabIdVec |
All Excel sheet names with Calc sheet index. More... | |
A buffer containing information about names and creation order of sheets.
The first purpose of this buffer is to translate original Excel sheet names into Calc sheet indexes. This is not trivial because the filter may rename the Calc sheets during creation. This buffer stores the original Excel sheet names with the corresponding Calc sheet indexes.
The second purpose is to store the creation order of all sheets inside the Excel workbook. The creation order list is contained in the TABID record and needed to import the change log. Example: if the list contains 3;1;2 this means that the second sheet in the file was created first, then the third sheet in the file was created and finally the first sheet.
Definition at line 61 of file xilink.hxx.
|
private |
Definition at line 88 of file xilink.hxx.
void XclImpTabInfo::AppendXclTabName | ( | const OUString & | rXclTabName, |
SCTAB | nScTab | ||
) |
Appends an original Excel sheet name with corresponding Calc sheet index.
Definition at line 227 of file xilink.cxx.
References maTabNames.
Referenced by ImportExcel8::Boundsheet().
sal_uInt16 XclImpTabInfo::GetCurrentIndex | ( | sal_uInt16 | nCreatedId, |
sal_uInt16 | nMaxTabId | ||
) | const |
Returns the current sheet index calculated from creation index.
nCreatedId | The creation index of the sheet (1-based). |
nMaxTabId | All values greater than this parameter are not used to find the index. |
Definition at line 263 of file xilink.cxx.
References maTabIdVec, and nValue.
Referenced by XclImpChangeTrack::Read3DTabRefInfo(), and XclImpChangeTrack::ReadTabNum().
SCTAB XclImpTabInfo::GetScTabFromXclName | ( | const OUString & | rXclTabName | ) | const |
Returns the Calc sheet index from the passed original Excel sheet name.
Definition at line 239 of file xilink.cxx.
References maTabNames, and SCTAB_INVALID.
Referenced by XclImpPivotCache::ReadPivotCacheStream().
void XclImpTabInfo::InsertScTab | ( | SCTAB | nScTab | ) |
Inserts a Calc sheet index (increases all following sheet indexes).
Definition at line 232 of file xilink.cxx.
References maTabNames.
Referenced by ExcScenario::Apply().
void XclImpTabInfo::ReadTabid | ( | XclImpStream & | rStrm | ) |
Reads the TABID record.
Definition at line 247 of file xilink.cxx.
References EXC_BIFF8, maTabIdVec, nIndex, OSL_ENSURE_BIFF, and rStrm.
Referenced by ImportExcel8::Read().
|
private |
All Excel sheet names with Calc sheet index.
Definition at line 91 of file xilink.hxx.
Referenced by GetCurrentIndex(), and ReadTabid().
|
private |
Definition at line 90 of file xilink.hxx.
Referenced by AppendXclTabName(), GetScTabFromXclName(), and InsertScTab().