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::unique_ptr< MOpermpMOper
 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.

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

Definition at line 111 of file xilink.hxx.

Member Typedef Documentation

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

Definition at line 154 of file xilink.hxx.

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

Definition at line 153 of file xilink.hxx.

Constructor & Destructor Documentation

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

Definition at line 408 of file xilink.cxx.

Member Function Documentation

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 412 of file xilink.cxx.

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

void XclImpExtName::CreateExtNameData ( const ScDocument rDoc,
sal_uInt16  nFileId 
) const
bool XclImpExtName::CreateOleData ( const ScDocument rDoc,
const OUString &  rUrl,
sal_uInt16 &  rFileId,
OUString &  rTabName,
ScRange rRange 
) const
const OUString& XclImpExtName::GetName ( ) const
inline

Definition at line 149 of file xilink.hxx.

References maName.

sal_uInt32 XclImpExtName::GetStorageId ( ) const
inline

Definition at line 150 of file xilink.hxx.

References mnStorageId.

Referenced by XclImpPictureObj::ReadPictFmla().

XclImpExtNameType XclImpExtName::GetType ( ) const
inline

Definition at line 148 of file xilink.hxx.

References meType.

Referenced by XclImpPictureObj::ReadPictFmla().

bool XclImpExtName::HasFormulaTokens ( ) const

Definition at line 546 of file xilink.cxx.

References mxArray.

Member Data Documentation

OUString XclImpExtName::maName
private

Formula tokens for external name.

Definition at line 159 of file xilink.hxx.

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

XclImpExtNameType XclImpExtName::meType
private

Storage ID for OLE object storages.

Definition at line 161 of file xilink.hxx.

Referenced by GetType(), and XclImpExtName().

sal_uInt32 XclImpExtName::mnStorageId
private

The name of the external name.

Definition at line 160 of file xilink.hxx.

Referenced by GetStorageId(), and XclImpExtName().

std::unique_ptr<MOper> XclImpExtName::mpMOper
private

Cached results of the DDE link.

Definition at line 157 of file xilink.hxx.

Referenced by CreateOleData(), and XclImpExtName().

TokenArrayPtr XclImpExtName::mxArray
private

Cached values for OLE link.

Definition at line 158 of file xilink.hxx.

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

XclImpCachedMatrixPtr XclImpExtName::mxDdeMatrix
private

Definition at line 156 of file xilink.hxx.

Referenced by CreateDdeData(), and XclImpExtName().


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