126 std::vector< XclExpTabInfoEntry >
158 sal_uInt16& rnXclTab,
SCTAB nScTab,
169 sal_uInt16& rnFirstXclTab, sal_uInt16& rnLastXclTab,
175 void FindExtSheet( sal_uInt16 nFileId,
const OUString& rTabName, sal_uInt16 nXclTabSpan,
176 sal_uInt16& rnExtSheet, sal_uInt16& rnFirstSBTab, sal_uInt16& rnLastSBTab,
184 void StoreCell( sal_uInt16 nFileId,
const OUString& rTabName,
const ScAddress& rPos );
193 sal_uInt16& rnExtSheet, sal_uInt16& rnExtName,
194 const OUString& rName );
197 sal_uInt16& rnExtSheet, sal_uInt16& rnExtName,
198 const OUString& rName );
204 sal_uInt16& rnExtSheet, sal_uInt16& rnExtName,
205 const OUString& rApplic,
const OUString& rTopic,
const OUString& rItem );
208 sal_uInt16& rnExtSheet, sal_uInt16& rnExtName,
const OUString& rUrl,
void CalcXclIndexes()
Searches for sheets not to be exported.
bool IsSelectedTab(SCTAB nScTab) const
Returns true, if the specified Calc sheet is selected and will be exported.
bool IsExportTab(SCTAB nScTab) const
Returns true, if the specified Calc sheet will be exported.
XclExpTabInfo(const XclExpRoot &rRoot)
Initializes the complete buffer from the current exported document.
bool InsertEuroTool(sal_uInt16 &rnExtSheet, sal_uInt16 &rnExtName, const OUString &rName)
InsertEuroTool.
This class is used to export Excel record streams.
bool IsExternalTab(SCTAB nScTab) const
Returns true, if the specified Calc sheet is used to store external cell contents.
Single reference (one address) into the sheet.
bool IsVisibleTab(SCTAB nScTab) const
Returns true, if the specified Calc sheet is visible and will be exported.
OUString GetScTabName(SCTAB nScTab) const
Returns the Calc name of the specified sheet.
sal_uInt16 mnDisplXclTab
Count of selected and exported sheets.
sal_uInt16 mnXclCnt
Count of Calc sheets.
std::vector< XclExpTabInfoEntry > maTabInfoVec
void FindExtSheet(sal_uInt16 &rnExtSheet, sal_uInt16 &rnXclTab, SCTAB nScTab, XclExpRefLogEntry *pRefLogEntry=nullptr)
Searches for an EXTERNSHEET index for the given Calc sheet.
Sheet will be ignored completely.
virtual void SaveXml(XclExpXmlStream &rStrm) override
Writes the entire Link table to OOXML.
Access to global data from other classes.
sal_uInt16 GetFirstVisXclTab() const
Returns the Excel index of the first visible sheet.
ScTabVec maToSortedVec
Sorted Calc sheet index -> real Calc sheet index.
sal_uInt16 mnFirstVisXclTab
Displayed (active) sheet.
Base class for all Excel records.
bool GetFlag(SCTAB nScTab, ExcTabBufFlags nFlags) const
Returns true, if any of the passed flags is set for the specified Calc sheet.
void StoreCell(const ScSingleRefData &rRef, const ScAddress &rPos)
Stores the cell with the given address in a CRN record list.
bool IsMirroredTab(SCTAB nScTab) const
Returns true, if the specified Calc sheet is displayed in right-to-left mode.
sal_uInt16 GetXclExtTabCount() const
Returns the number of external linked sheets.
bool InsertAddIn(sal_uInt16 &rnExtSheet, sal_uInt16 &rnExtName, const OUString &rName)
Finds or inserts an EXTERNNAME record for an add-in function name.
sal_uInt16 GetXclTab(SCTAB nScTab) const
Returns the Excel sheet index for a given Calc sheet.
Data structure with information about one Calc sheet.
virtual void Save(XclExpStream &rStrm) override
Writes the entire Link table.
bool InsertDde(sal_uInt16 &rnExtSheet, sal_uInt16 &rnExtName, const OUString &rApplic, const OUString &rTopic, const OUString &rItem)
Finds or inserts an EXTERNNAME record for DDE links.
XclExpLinkMgrImplPtr mxImpl
sal_uInt16 mnXclSelCnt
Count of external link sheets.
SCTAB mnScCnt
Array of Calc sheet index information.
::std::vector< SCTAB > ScTabVec
Stores the correct Excel sheet index for each Calc sheet.
XclExpLinkManager(const XclExpRoot &rRoot)
Abstract base class for implementation classes of the link manager.
Sheet is linked externally.
SCTAB GetScTabCount() const
Returns the number of Calc sheets.
bool InsertExtName(sal_uInt16 &rnExtSheet, sal_uInt16 &rnExtName, const OUString &rUrl, const OUString &rName, const ScExternalRefCache::TokenArrayRef &rArray)
void StoreCellRange(const ScComplexRefData &rRef, const ScAddress &rPos)
Stores all cells in the given range in a CRN record list.
Stores all data for internal/external references (the link table).
sal_uInt16 GetXclSelectedCount() const
Returns the number of exported selected sheets.
std::shared_ptr< XclExpLinkManagerImpl > XclExpLinkMgrImplPtr
sal_uInt16 GetXclTabCount() const
Returns the number of Excel sheets to be exported.
void CalcSortedIndexes()
Sorts the names of all tables and stores the indexes of the sorted indexes.
std::shared_ptr< ScTokenArray > TokenArrayRef
Log entry for external references in a formula, used i.e.
Complex reference (a range) into the sheet.
void SetFlag(SCTAB nScTab, ExcTabBufFlags nFlags, bool bSet=true)
Sets or clears (depending on bSet) all passed flags for the specified Calc sheet. ...
sal_uInt16 GetDisplayedXclTab() const
Returns the Excel index of the active, displayed sheet.
virtual ~XclExpLinkManager() override
sal_uInt16 mnXclExtCnt
Count of Excel sheets to be exported.
SCTAB GetRealScTab(SCTAB nSortedScTab) const
Returns the Calc sheet index of the nSortedTab-th entry in the sorted sheet names list...
ScTabVec maFromSortedVec
First visible sheet.
bool IsDisplayedTab(SCTAB nScTab) const
Returns true, if the specified Calc sheet is the displayed (active) sheet.