LibreOffice Module sc (master) 1
Classes | Public Member Functions | Private Types | Private Attributes | List of all members
XclImpExtName Class Reference

Stores contents of an external name. More...

#include <xilink.hxx>

Classes

class  MOper
 MOper, multiple operands, stores cached values of external range specified in the record. More...
 

Public Member Functions

 XclImpExtName (XclImpSupbook &rSupbook, XclImpStream &rStrm, XclSupbookType eSubType, ExcelToSc *pFormulaConv)
 Reads the external name from the stream. More...
 
 ~XclImpExtName ()
 
void CreateDdeData (ScDocument &rDoc, const OUString &rApplc, const OUString &rExtDoc) const
 Create and apply the cached list of this DDE Link to the document. More...
 
void CreateExtNameData (const ScDocument &rDoc, sal_uInt16 nFileId) const
 
bool CreateOleData (const ScDocument &rDoc, const OUString &rUrl, sal_uInt16 &rFileId, OUString &rTabName, ScRange &rRange) const
 Create OLE link data. More...
 
bool HasFormulaTokens () const
 
XclImpExtNameType GetType () const
 
const OUString & GetName () const
 
sal_uInt32 GetStorageId () const
 

Private Types

typedef ::std::unique_ptr< XclImpCachedMatrixXclImpCachedMatrixPtr
 
typedef ::std::unique_ptr< ScTokenArrayTokenArrayPtr
 

Private Attributes

XclImpCachedMatrixPtr mxDdeMatrix
 
std::optional< MOpermoMOper
 Cached results of the DDE link. More...
 
TokenArrayPtr mxArray
 Cached values for OLE link. More...
 
OUString maName
 Formula tokens for external name. More...
 
sal_uInt32 mnStorageId
 The name of the external name. More...
 
XclImpExtNameType meType
 Storage ID for OLE object storages. More...
 

Detailed Description

Stores contents of an external name.

@descr Supported: External defined names, AddIn names, DDE links and OLE objects.

Definition at line 112 of file xilink.hxx.

Member Typedef Documentation

◆ TokenArrayPtr

typedef ::std::unique_ptr< ScTokenArray > XclImpExtName::TokenArrayPtr
private

Definition at line 155 of file xilink.hxx.

◆ XclImpCachedMatrixPtr

typedef ::std::unique_ptr< XclImpCachedMatrix > XclImpExtName::XclImpCachedMatrixPtr
private

Definition at line 154 of file xilink.hxx.

Constructor & Destructor Documentation

◆ XclImpExtName()

XclImpExtName::XclImpExtName ( XclImpSupbook rSupbook,
XclImpStream rStrm,
XclSupbookType  eSubType,
ExcelToSc pFormulaConv 
)
explicit

◆ ~XclImpExtName()

XclImpExtName::~XclImpExtName ( )

Definition at line 409 of file xilink.cxx.

Member Function Documentation

◆ CreateDdeData()

void XclImpExtName::CreateDdeData ( ScDocument rDoc,
const OUString &  rApplc,
const OUString &  rExtDoc 
) const

Create and apply the cached list of this DDE Link to the document.

Definition at line 413 of file xilink.cxx.

References ScDocument::CreateDdeLink(), ScDocument::GetSharedStringPool(), maName, mxDdeMatrix, and SC_DDE_DEFAULT.

◆ CreateExtNameData()

void XclImpExtName::CreateExtNameData ( const ScDocument rDoc,
sal_uInt16  nFileId 
) const

◆ CreateOleData()

bool XclImpExtName::CreateOleData ( const ScDocument rDoc,
const OUString &  rUrl,
sal_uInt16 &  rFileId,
OUString &  rTabName,
ScRange rRange 
) const

◆ GetName()

const OUString & XclImpExtName::GetName ( ) const
inline

Definition at line 150 of file xilink.hxx.

References maName.

◆ GetStorageId()

sal_uInt32 XclImpExtName::GetStorageId ( ) const
inline

Definition at line 151 of file xilink.hxx.

References mnStorageId.

Referenced by XclImpPictureObj::ReadPictFmla().

◆ GetType()

XclImpExtNameType XclImpExtName::GetType ( ) const
inline

Definition at line 149 of file xilink.hxx.

References meType.

Referenced by XclImpPictureObj::ReadPictFmla().

◆ HasFormulaTokens()

bool XclImpExtName::HasFormulaTokens ( ) const

Definition at line 547 of file xilink.cxx.

References mxArray.

Member Data Documentation

◆ maName

OUString XclImpExtName::maName
private

Formula tokens for external name.

Definition at line 160 of file xilink.hxx.

Referenced by CreateDdeData(), CreateExtNameData(), CreateOleData(), GetName(), and XclImpExtName().

◆ meType

XclImpExtNameType XclImpExtName::meType
private

Storage ID for OLE object storages.

Definition at line 162 of file xilink.hxx.

Referenced by GetType(), and XclImpExtName().

◆ mnStorageId

sal_uInt32 XclImpExtName::mnStorageId
private

The name of the external name.

Definition at line 161 of file xilink.hxx.

Referenced by GetStorageId(), and XclImpExtName().

◆ moMOper

std::optional<MOper> XclImpExtName::moMOper
private

Cached results of the DDE link.

Definition at line 158 of file xilink.hxx.

Referenced by CreateOleData(), and XclImpExtName().

◆ mxArray

TokenArrayPtr XclImpExtName::mxArray
private

Cached values for OLE link.

Definition at line 159 of file xilink.hxx.

Referenced by CreateExtNameData(), HasFormulaTokens(), and XclImpExtName().

◆ mxDdeMatrix

XclImpCachedMatrixPtr XclImpExtName::mxDdeMatrix
private

Definition at line 157 of file xilink.hxx.

Referenced by CreateDdeData(), and XclImpExtName().


The documentation for this class was generated from the following files: