#include <xelink.hxx>


Public Member Functions | |
| XclExpTabInfo (const XclExpRoot &rRoot) | |
| Initializes the complete buffer from the current exported document. | |
| bool | IsExportTab (SCTAB nScTab) const |
| Returns true, if the specified Calc sheet will be exported. | |
| bool | IsExternalTab (SCTAB nScTab) const |
| Returns true, if the specified Calc sheet is used to store external cell contents. | |
| bool | IsVisibleTab (SCTAB nScTab) const |
| Returns true, if the specified Calc sheet is visible and will be exported. | |
| bool | IsSelectedTab (SCTAB nScTab) const |
| Returns true, if the specified Calc sheet is selected and will be exported. | |
| bool | IsDisplayedTab (SCTAB nScTab) const |
| Returns true, if the specified Calc sheet is the displayed (active) sheet. | |
| bool | IsMirroredTab (SCTAB nScTab) const |
| Returns true, if the specified Calc sheet is displayed in right-to-left mode. | |
| const String & | GetScTabName (SCTAB nScTab) const |
| Returns the Calc name of the specified sheet. | |
| sal_uInt16 | GetXclTab (SCTAB nScTab) const |
| Returns the Excel sheet index for a given Calc sheet. | |
| SCTAB | GetRealScTab (SCTAB nSortedScTab) const |
| Returns the Calc sheet index of the nSortedTab-th entry in the sorted sheet names list. | |
| SCTAB | GetScTabCount () const |
| Returns the number of Calc sheets. | |
| sal_uInt16 | GetXclTabCount () const |
| Returns the number of Excel sheets to be exported. | |
| sal_uInt16 | GetXclExtTabCount () const |
| Returns the number of external linked sheets. | |
| sal_uInt16 | GetXclSelectedCount () const |
| Returns the number of exported selected sheets. | |
| sal_uInt16 | GetDisplayedXclTab () const |
| Returns the Excel index of the active, displayed sheet. | |
| sal_uInt16 | GetFirstVisXclTab () const |
| Returns the Excel index of the first visible sheet. | |
| XclExpTabInfo (const XclExpRoot &rRoot) | |
| Initializes the complete buffer from the current exported document. | |
| bool | IsExportTab (SCTAB nScTab) const |
| Returns true, if the specified Calc sheet will be exported. | |
| bool | IsExternalTab (SCTAB nScTab) const |
| Returns true, if the specified Calc sheet is used to store external cell contents. | |
| bool | IsVisibleTab (SCTAB nScTab) const |
| Returns true, if the specified Calc sheet is visible and will be exported. | |
| bool | IsSelectedTab (SCTAB nScTab) const |
| Returns true, if the specified Calc sheet is selected and will be exported. | |
| bool | IsDisplayedTab (SCTAB nScTab) const |
| Returns true, if the specified Calc sheet is the displayed (active) sheet. | |
| bool | IsMirroredTab (SCTAB nScTab) const |
| Returns true, if the specified Calc sheet is displayed in right-to-left mode. | |
| const String & | GetScTabName (SCTAB nScTab) const |
| Returns the Calc name of the specified sheet. | |
| sal_uInt16 | GetXclTab (SCTAB nScTab) const |
| Returns the Excel sheet index for a given Calc sheet. | |
| SCTAB | GetRealScTab (SCTAB nSortedScTab) const |
| Returns the Calc sheet index of the nSortedTab-th entry in the sorted sheet names list. | |
| SCTAB | GetScTabCount () const |
| Returns the number of Calc sheets. | |
| sal_uInt16 | GetXclTabCount () const |
| Returns the number of Excel sheets to be exported. | |
| sal_uInt16 | GetXclExtTabCount () const |
| Returns the number of external linked sheets. | |
| sal_uInt16 | GetXclSelectedCount () const |
| Returns the number of exported selected sheets. | |
| sal_uInt16 | GetDisplayedXclTab () const |
| Returns the Excel index of the active, displayed sheet. | |
| sal_uInt16 | GetFirstVisXclTab () const |
| Returns the Excel index of the first visible sheet. | |
Private Types | |
| typedef ::std::vector < XclExpTabInfoEntry > | XclExpTabInfoVec |
| typedef ::std::vector< SCTAB > | ScTabVec |
| typedef ::std::vector < XclExpTabInfoEntry > | XclExpTabInfoVec |
| typedef ::std::vector< SCTAB > | ScTabVec |
Private Member Functions | |
| bool | GetFlag (SCTAB nScTab, sal_uInt8 nFlags) const |
| Returns true, if any of the passed flags is set for the specified Calc sheet. | |
| void | SetFlag (SCTAB nScTab, sal_uInt8 nFlags, bool bSet=true) |
| Sets or clears (depending on bSet) all passed flags for the specified Calc sheet. | |
| void | CalcXclIndexes () |
| Searches for sheets not to be exported. | |
| void | CalcSortedIndexes () |
| Sorts the names of all tables and stores the indexes of the sorted indexes. | |
| bool | GetFlag (SCTAB nScTab, sal_uInt8 nFlags) const |
| Returns true, if any of the passed flags is set for the specified Calc sheet. | |
| void | SetFlag (SCTAB nScTab, sal_uInt8 nFlags, bool bSet=true) |
| Sets or clears (depending on bSet) all passed flags for the specified Calc sheet. | |
| void | CalcXclIndexes () |
| Searches for sheets not to be exported. | |
| void | CalcSortedIndexes () |
| Sorts the names of all tables and stores the indexes of the sorted indexes. | |
Private Attributes | |
| XclExpTabInfoVec | maTabInfoVec |
| SCTAB | mnScCnt |
| Array of Calc sheet index information. | |
| sal_uInt16 | mnXclCnt |
| Count of Calc sheets. | |
| sal_uInt16 | mnXclExtCnt |
| Count of Excel sheets to be exported. | |
| sal_uInt16 | mnXclSelCnt |
| Count of external link sheets. | |
| sal_uInt16 | mnDisplXclTab |
| Count of selected and exported sheets. | |
| sal_uInt16 | mnFirstVisXclTab |
| Displayed (active) sheet. | |
| ScTabVec | maFromSortedVec |
| First visible sheet. | |
| ScTabVec | maToSortedVec |
| Sorted Calc sheet index -> real Calc sheet index. | |
Classes | |
| struct | XclExpTabInfoEntry |
| Data structure with infoemation about one Calc sheet. More... | |
The class knows all sheets which will not exported (i.e. external link sheets, scenario sheets).
Definition at line 62 of file inc/xelink.hxx.
typedef ::std::vector< XclExpTabInfoEntry > XclExpTabInfo::XclExpTabInfoVec [private] |
Definition at line 127 of file inc/xelink.hxx.
typedef ::std::vector< SCTAB > XclExpTabInfo::ScTabVec [private] |
Definition at line 128 of file inc/xelink.hxx.
typedef ::std::vector< XclExpTabInfoEntry > XclExpTabInfo::XclExpTabInfoVec [private] |
Definition at line 126 of file xlsx/xelink.hxx.
typedef ::std::vector< SCTAB > XclExpTabInfo::ScTabVec [private] |
Definition at line 127 of file xlsx/xelink.hxx.
| XclExpTabInfo::XclExpTabInfo | ( | const XclExpRoot & | rRoot | ) | [explicit] |
Initializes the complete buffer from the current exported document.
Sheet is mirrored (right-to-left).
Definition at line 696 of file xelink.cxx.
References CalcSortedIndexes(), CalcXclIndexes(), EXC_TABBUF_EXTERN, EXC_TABBUF_IGNORE, EXC_TABBUF_MIRRORED, EXC_TABBUF_SELECTED, EXC_TABBUF_SKIPMASK, EXC_TABBUF_VISIBLE, XclRoot::GetDoc(), ScExtDocOptions::GetDocSettings(), XclRoot::GetExtDocOptions(), ScDocument::GetLinkMode(), ScDocument::GetName(), ScDocument::GetTableCount(), ScExtDocOptions::GetTabSettings(), GetXclTab(), IsExportTab(), ScDocument::IsLayoutRTL(), ScDocument::IsScenario(), IsSelectedTab(), ScDocument::IsVisible(), maTabInfoVec, ScExtDocSettings::mnDisplTab, mnDisplXclTab, mnFirstVisXclTab, mnScCnt, mnXclSelCnt, SC_LINK_VALUE, SCTAB_INVALID, and SetFlag().
| XclExpTabInfo::XclExpTabInfo | ( | const XclExpRoot & | rRoot | ) | [explicit] |
Initializes the complete buffer from the current exported document.
| bool XclExpTabInfo::IsExportTab | ( | SCTAB | nScTab | ) | const |
Returns true, if the specified Calc sheet will be exported.
Definition at line 795 of file xelink.cxx.
References EXC_TABBUF_SKIPMASK, GetFlag(), and mnScCnt.
Referenced by CalcXclIndexes(), XclExpNameManagerImpl::CreateBuiltInNames(), XclExpLinkManagerImpl5::CreateInternal(), ExcTable::FillAsHeader(), XclExpProgressBar::Initialize(), XclExpPivotCache::XclExpPivotCache(), and XclExpTabInfo().
| bool XclExpTabInfo::IsExternalTab | ( | SCTAB | nScTab | ) | const |
Returns true, if the specified Calc sheet is used to store external cell contents.
Definition at line 801 of file xelink.cxx.
References EXC_TABBUF_EXTERN, GetFlag(), and mnScCnt.
Referenced by CalcXclIndexes(), and XclExpLinkManagerImpl8::StoreCellRange().
| bool XclExpTabInfo::IsVisibleTab | ( | SCTAB | nScTab | ) | const |
Returns true, if the specified Calc sheet is visible and will be exported.
Definition at line 808 of file xelink.cxx.
References EXC_TABBUF_VISIBLE, and GetFlag().
| bool XclExpTabInfo::IsSelectedTab | ( | SCTAB | nScTab | ) | const |
Returns true, if the specified Calc sheet is selected and will be exported.
Definition at line 813 of file xelink.cxx.
References EXC_TABBUF_SELECTED, and GetFlag().
Referenced by XclExpTabInfo(), and XclExpTabViewSettings::XclExpTabViewSettings().
| bool XclExpTabInfo::IsDisplayedTab | ( | SCTAB | nScTab | ) | const |
Returns true, if the specified Calc sheet is the displayed (active) sheet.
Definition at line 818 of file xelink.cxx.
References GetXclTab(), mnDisplXclTab, and mnScCnt.
Referenced by XclExpTabViewSettings::XclExpTabViewSettings().
| bool XclExpTabInfo::IsMirroredTab | ( | SCTAB | nScTab | ) | const |
Returns true, if the specified Calc sheet is displayed in right-to-left mode.
Definition at line 824 of file xelink.cxx.
References EXC_TABBUF_MIRRORED, and GetFlag().
Referenced by XclExpTabViewSettings::XclExpTabViewSettings().
| const String & XclExpTabInfo::GetScTabName | ( | SCTAB | nScTab | ) | const |
Returns the Calc name of the specified sheet.
Definition at line 829 of file xelink.cxx.
References EMPTY_STRING, maTabInfoVec, and mnScCnt.
Referenced by XclExpLinkManagerImpl5::CreateInternal(), and ExcBundlesheet::ExcBundlesheet().
| sal_uInt16 XclExpTabInfo::GetXclTab | ( | SCTAB | nScTab | ) | const |
Returns the Excel sheet index for a given Calc sheet.
Definition at line 835 of file xelink.cxx.
References EXC_TAB_DELETED, maTabInfoVec, and mnScCnt.
Referenced by XclExpLinkManagerImpl8::FindExtSheet(), XclExpLinkManagerImpl5::FindInternal(), XclExpChTrAction::GetTabId(), IsDisplayedTab(), XclExpSupbookBuffer::StoreCellRange(), XclExpChTrAction::WriteTabId(), and XclExpTabInfo().
Returns the Calc sheet index of the nSortedTab-th entry in the sorted sheet names list.
Definition at line 840 of file xelink.cxx.
References maFromSortedVec, mnScCnt, and SCTAB_INVALID.
Referenced by XclExpNameManagerImpl::CreateBuiltInNames().
| SCTAB XclExpTabInfo::GetScTabCount | ( | ) | const [inline] |
Returns the number of Calc sheets.
Definition at line 92 of file inc/xelink.hxx.
References mnScCnt.
Referenced by XclExpNameManagerImpl::CreateBuiltInNames(), XclExpLinkManagerImpl5::CreateInternal(), ExcTable::FillAsHeader(), XclExpProgressBar::Initialize(), and ExcDocument::ReadDoc().
| sal_uInt16 XclExpTabInfo::GetXclTabCount | ( | ) | const [inline] |
Returns the number of Excel sheets to be exported.
Definition at line 95 of file inc/xelink.hxx.
References mnXclCnt.
Referenced by ExcTable::FillAsHeader(), and XclExpSupbookBuffer::XclExpSupbookBuffer().
| sal_uInt16 XclExpTabInfo::GetXclExtTabCount | ( | ) | const [inline] |
Returns the number of external linked sheets.
Definition at line 97 of file inc/xelink.hxx.
References mnXclExtCnt.
Referenced by XclExpSupbookBuffer::XclExpSupbookBuffer().
| sal_uInt16 XclExpTabInfo::GetXclSelectedCount | ( | ) | const [inline] |
Returns the number of exported selected sheets.
Definition at line 99 of file inc/xelink.hxx.
References mnXclSelCnt.
Referenced by XclExpWindow1::WriteBody().
| sal_uInt16 XclExpTabInfo::GetDisplayedXclTab | ( | ) | const [inline] |
Returns the Excel index of the active, displayed sheet.
Definition at line 102 of file inc/xelink.hxx.
References mnDisplXclTab.
Referenced by XclExpWindow1::SaveXml(), and XclExpWindow1::WriteBody().
| sal_uInt16 XclExpTabInfo::GetFirstVisXclTab | ( | ) | const [inline] |
Returns the Excel index of the first visible sheet.
Definition at line 104 of file inc/xelink.hxx.
References mnFirstVisXclTab.
Referenced by XclExpWindow1::SaveXml(), and XclExpWindow1::WriteBody().
| bool XclExpTabInfo::GetFlag | ( | SCTAB | nScTab, | |
| sal_uInt8 | nFlags | |||
| ) | const [private] |
Returns true, if any of the passed flags is set for the specified Calc sheet.
Definition at line 852 of file xelink.cxx.
References get_flag(), maTabInfoVec, and mnScCnt.
Referenced by IsExportTab(), IsExternalTab(), IsMirroredTab(), IsSelectedTab(), and IsVisibleTab().
| void XclExpTabInfo::SetFlag | ( | SCTAB | nScTab, | |
| sal_uInt8 | nFlags, | |||
| bool | bSet = true | |||
| ) | [private] |
Sets or clears (depending on bSet) all passed flags for the specified Calc sheet.
Definition at line 858 of file xelink.cxx.
References maTabInfoVec, mnScCnt, and set_flag().
Referenced by XclExpTabInfo().
| void XclExpTabInfo::CalcXclIndexes | ( | ) | [private] |
Searches for sheets not to be exported.
Definition at line 865 of file xelink.cxx.
References EXC_TAB_DELETED, IsExportTab(), IsExternalTab(), maTabInfoVec, mnScCnt, mnXclCnt, and mnXclExtCnt.
Referenced by XclExpTabInfo().
| void XclExpTabInfo::CalcSortedIndexes | ( | ) | [private] |
Sorts the names of all tables and stores the indexes of the sorted indexes.
Definition at line 906 of file xelink.cxx.
References XclRoot::GetDoc(), ScDocument::GetName(), maFromSortedVec, maToSortedVec, and mnScCnt.
Referenced by XclExpTabInfo().
| bool XclExpTabInfo::IsExportTab | ( | SCTAB | nScTab | ) | const |
Returns true, if the specified Calc sheet will be exported.
| bool XclExpTabInfo::IsExternalTab | ( | SCTAB | nScTab | ) | const |
Returns true, if the specified Calc sheet is used to store external cell contents.
| bool XclExpTabInfo::IsVisibleTab | ( | SCTAB | nScTab | ) | const |
Returns true, if the specified Calc sheet is visible and will be exported.
| bool XclExpTabInfo::IsSelectedTab | ( | SCTAB | nScTab | ) | const |
Returns true, if the specified Calc sheet is selected and will be exported.
| bool XclExpTabInfo::IsDisplayedTab | ( | SCTAB | nScTab | ) | const |
Returns true, if the specified Calc sheet is the displayed (active) sheet.
| bool XclExpTabInfo::IsMirroredTab | ( | SCTAB | nScTab | ) | const |
Returns true, if the specified Calc sheet is displayed in right-to-left mode.
| const String& XclExpTabInfo::GetScTabName | ( | SCTAB | nScTab | ) | const |
Returns the Calc name of the specified sheet.
| sal_uInt16 XclExpTabInfo::GetXclTab | ( | SCTAB | nScTab | ) | const |
Returns the Excel sheet index for a given Calc sheet.
Returns the Calc sheet index of the nSortedTab-th entry in the sorted sheet names list.
| SCTAB XclExpTabInfo::GetScTabCount | ( | ) | const [inline] |
Returns the number of Calc sheets.
Definition at line 91 of file xlsx/xelink.hxx.
References mnScCnt.
| sal_uInt16 XclExpTabInfo::GetXclTabCount | ( | ) | const [inline] |
Returns the number of Excel sheets to be exported.
Definition at line 94 of file xlsx/xelink.hxx.
References mnXclCnt.
| sal_uInt16 XclExpTabInfo::GetXclExtTabCount | ( | ) | const [inline] |
Returns the number of external linked sheets.
Definition at line 96 of file xlsx/xelink.hxx.
References mnXclExtCnt.
| sal_uInt16 XclExpTabInfo::GetXclSelectedCount | ( | ) | const [inline] |
Returns the number of exported selected sheets.
Definition at line 98 of file xlsx/xelink.hxx.
References mnXclSelCnt.
| sal_uInt16 XclExpTabInfo::GetDisplayedXclTab | ( | ) | const [inline] |
Returns the Excel index of the active, displayed sheet.
Definition at line 101 of file xlsx/xelink.hxx.
References mnDisplXclTab.
| sal_uInt16 XclExpTabInfo::GetFirstVisXclTab | ( | ) | const [inline] |
Returns the Excel index of the first visible sheet.
Definition at line 103 of file xlsx/xelink.hxx.
References mnFirstVisXclTab.
| bool XclExpTabInfo::GetFlag | ( | SCTAB | nScTab, | |
| sal_uInt8 | nFlags | |||
| ) | const [private] |
Returns true, if any of the passed flags is set for the specified Calc sheet.
| void XclExpTabInfo::SetFlag | ( | SCTAB | nScTab, | |
| sal_uInt8 | nFlags, | |||
| bool | bSet = true | |||
| ) | [private] |
Sets or clears (depending on bSet) all passed flags for the specified Calc sheet.
| void XclExpTabInfo::CalcXclIndexes | ( | ) | [private] |
Searches for sheets not to be exported.
| void XclExpTabInfo::CalcSortedIndexes | ( | ) | [private] |
Sorts the names of all tables and stores the indexes of the sorted indexes.
XclExpTabInfoVec XclExpTabInfo::maTabInfoVec [private] |
Definition at line 130 of file inc/xelink.hxx.
Referenced by CalcXclIndexes(), GetFlag(), GetScTabName(), GetXclTab(), SetFlag(), and XclExpTabInfo().
SCTAB XclExpTabInfo::mnScCnt [private] |
Array of Calc sheet index information.
Definition at line 132 of file inc/xelink.hxx.
Referenced by CalcSortedIndexes(), CalcXclIndexes(), GetFlag(), GetRealScTab(), GetScTabCount(), GetScTabName(), GetXclTab(), IsDisplayedTab(), IsExportTab(), IsExternalTab(), SetFlag(), and XclExpTabInfo().
sal_uInt16 XclExpTabInfo::mnXclCnt [private] |
Count of Calc sheets.
Definition at line 133 of file inc/xelink.hxx.
Referenced by CalcXclIndexes(), and GetXclTabCount().
sal_uInt16 XclExpTabInfo::mnXclExtCnt [private] |
Count of Excel sheets to be exported.
Definition at line 134 of file inc/xelink.hxx.
Referenced by CalcXclIndexes(), and GetXclExtTabCount().
sal_uInt16 XclExpTabInfo::mnXclSelCnt [private] |
Count of external link sheets.
Definition at line 135 of file inc/xelink.hxx.
Referenced by GetXclSelectedCount(), and XclExpTabInfo().
sal_uInt16 XclExpTabInfo::mnDisplXclTab [private] |
Count of selected and exported sheets.
Definition at line 136 of file inc/xelink.hxx.
Referenced by GetDisplayedXclTab(), IsDisplayedTab(), and XclExpTabInfo().
sal_uInt16 XclExpTabInfo::mnFirstVisXclTab [private] |
Displayed (active) sheet.
Definition at line 137 of file inc/xelink.hxx.
Referenced by GetFirstVisXclTab(), and XclExpTabInfo().
ScTabVec XclExpTabInfo::maFromSortedVec [private] |
First visible sheet.
Definition at line 139 of file inc/xelink.hxx.
Referenced by CalcSortedIndexes(), and GetRealScTab().
ScTabVec XclExpTabInfo::maToSortedVec [private] |
Sorted Calc sheet index -> real Calc sheet index.
Definition at line 140 of file inc/xelink.hxx.
Referenced by CalcSortedIndexes().
1.5.6