20 #ifndef INCLUDED_SC_SOURCE_FILTER_INC_XILINK_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_INC_XILINK_HXX
32 class SharedStringPool;
85 sal_uInt16
GetCurrentIndex( sal_uInt16 nCreatedId, sal_uInt16 nMaxTabId )
const;
135 const OUString& rApplc,
const OUString& rExtDoc )
const;
145 sal_uInt16& rFileId, OUString& rTabName,
ScRange& rRange)
const;
202 bool IsSelfRef( sal_uInt16 nXtiIndex )
const;
207 sal_uInt16 nXtiIndex )
const;
219 bool GetLinkData( OUString& rApplic, OUString& rTopic, sal_uInt16 nXtiIndex )
const;
221 const OUString&
GetMacroName( sal_uInt16 nExtSheet, sal_uInt16 nExtName )
const;
Matrix data type that can store values of mixed types.
MOper, multiple operands, stores cached values of external range specified in the record...
void ReadExternsheet(XclImpStream &rStrm)
Reads the EXTERNSHEET record.
const OUString & GetMacroName(sal_uInt16 nExtSheet, sal_uInt16 nExtName) const
Returns the specified macro name or an empty string on error.
const ScMatrix & GetCache() const
MOper(svl::SharedStringPool &rPool, XclImpStream &rStrm)
This class represents an external linked document (record SUPBOOK).
XclImpExtNameType
Type of an external name.
::std::unique_ptr< XclImpCachedMatrix > XclImpCachedMatrixPtr
XclImpExtNameType meType
Storage ID for OLE object storages.
void ReadTabid(XclImpStream &rStrm)
Reads the TABID record.
void ReadExternname(XclImpStream &rStrm, ExcelToSc *pFormulaConv)
Reads an EXTERNNAME record and appends it to the current SUPBOOK.
bool GetScTabRange(SCTAB &rnFirstScTab, SCTAB &rnLastScTab, sal_uInt16 nXtiIndex) const
Returns the Calc sheet index range of the specified XTI entry.
void ReadXct(XclImpStream &rStrm)
Reads an XCT record and appends it to the current SUPBOOK.
::boost::intrusive_ptr< ScMatrix > ScMatrixRef
void CreateDdeData(ScDocument &rDoc, const OUString &rApplc, const OUString &rExtDoc) const
Create and apply the cached list of this DDE Link to the document.
XclImpExtNameType GetType() const
XclImpLinkManager(const XclImpRoot &rRoot)
sal_uInt16 GetCurrentIndex(sal_uInt16 nCreatedId, sal_uInt16 nMaxTabId) const
Returns the current sheet index calculated from creation index.
A buffer containing information about names and creation order of sheets.
Stores contents of an external name.
bool HasFormulaTokens() const
void InsertScTab(SCTAB nScTab)
Inserts a Calc sheet index (increases all following sheet indexes).
sal_uInt32 mnStorageId
The name of the external name.
Contains cached values in a 2-dimensional array.
std::unique_ptr< MOper > mpMOper
Cached results of the DDE link.
const XclImpExtName * GetExternName(sal_uInt16 nXtiIndex, sal_uInt16 nExtName) const
Returns the specified external name or 0 on error.
bool GetLinkData(OUString &rApplic, OUString &rTopic, sal_uInt16 nXtiIndex) const
Tries to decode the URL of the specified XTI entry to OLE or DDE link components. ...
::std::unique_ptr< XclImpLinkManagerImpl > XclImpLinkMgrImplPtr
XclImpLinkMgrImplPtr mxImpl
virtual ~XclImpLinkManager() override
OUString maName
Formula tokens for external name.
bool CreateOleData(const ScDocument &rDoc, const OUString &rUrl, sal_uInt16 &rFileId, OUString &rTabName, ScRange &rRange) const
Create OLE link data.
void ReadSupbook(XclImpStream &rStrm)
Reads a SUPBOOK record.
sal_uInt32 GetStorageId() const
These need to be in global namespace just like their respective types are.
::std::map< OUString, SCTAB > XclTabNameMap
const OUString * GetSupbookUrl(sal_uInt16 nXtiIndex) const
XclImpExtName(XclImpSupbook &rSupbook, XclImpStream &rStrm, XclSupbookType eSubType, ExcelToSc *pFormulaConv)
Reads the external name from the stream.
SCTAB GetScTabFromXclName(const OUString &rXclTabName) const
Returns the Calc sheet index from the passed original Excel sheet name.
This class is used to import record oriented streams.
TokenArrayPtr mxArray
Cached values for OLE link.
XclImpCachedMatrixPtr mxDdeMatrix
Implementation of the link manager.
bool IsSelfRef(sal_uInt16 nXtiIndex) const
Returns true, if the specified XTI entry contains an internal reference.
void CreateExtNameData(const ScDocument &rDoc, sal_uInt16 nFileId) const
Access to global data from other classes.
XclSupbookType
This enumeration specifies the type of a SUPBOOK record.
ScfUInt16Vec maTabIdVec
All Excel sheet names with Calc sheet index.
const OUString & GetName() const
An external defined name.
const OUString & GetSupbookTabName(sal_uInt16 nXti, sal_uInt16 nXtiTab) const
This is the central class for the import of all internal/external links.
::std::unique_ptr< ScTokenArray > TokenArrayPtr
void ReadCrn(XclImpStream &rStrm)
Reads a CRN record and appends it to the current SUPBOOK.
void AppendXclTabName(const OUString &rXclTabName, SCTAB nScTab)
Appends an original Excel sheet name with corresponding Calc sheet index.