LibreOffice Module sc (master) 1
|
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< XclImpCachedMatrix > | XclImpCachedMatrixPtr |
typedef ::std::unique_ptr< ScTokenArray > | TokenArrayPtr |
Private Attributes | |
XclImpCachedMatrixPtr | mxDdeMatrix |
std::optional< MOper > | moMOper |
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... | |
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.
|
private |
Definition at line 155 of file xilink.hxx.
|
private |
Definition at line 154 of file xilink.hxx.
|
explicit |
Reads the external name from the stream.
Definition at line 345 of file xilink.cxx.
References Addin, ExcelToSc::ConvertExternName(), ScfTools::ConvertToScDefinedName(), Eurotool, EXC_EXTN_BUILTIN, EXC_EXTN_OLE, EXC_EXTN_OLE_OR_DDE, get_flag(), get_flagvalue(), XclImpRoot::GetScAddInName(), XclImpSupbook::GetSharedStringPool(), XclImpSupbook::GetTabCount(), XclImpSupbook::GetTabName(), XclImpSupbook::GetXclUrl(), i, maName, meType, mnStorageId, moMOper, mxArray, mxDdeMatrix, nCount, rStrm, xlExtAddIn, xlExtDDE, xlExtEuroConvert, xlExtName, and xlExtOLE.
XclImpExtName::~XclImpExtName | ( | ) |
Definition at line 409 of file xilink.cxx.
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.
void XclImpExtName::CreateExtNameData | ( | const ScDocument & | rDoc, |
sal_uInt16 | nFileId | ||
) | const |
Definition at line 421 of file xilink.cxx.
References ScDocument::GetExternalRefManager(), maName, mxArray, and ScExternalRefManager::storeRangeNameTokens().
bool XclImpExtName::CreateOleData | ( | const ScDocument & | rDoc, |
const OUString & | rUrl, | ||
sal_uInt16 & | rFileId, | ||
OUString & | rTabName, | ||
ScRange & | rRange | ||
) | const |
Create OLE link data.
OLE link data is converted to external reference, since OLE link doesn't work cross-platform, and is not very reliable even on Windows.
Definition at line 472 of file xilink.cxx.
References ScRange::aEnd, ScRange::aStart, Boolean, ScAddress::Col(), formula::FormulaGrammar::CONV_XL_R1C1, ScMatrixValue::fVal, ScMatrix::Get(), ScMatrixValue::GetBoolean(), ScExternalRefManager::getCacheTable(), ScMatrix::GetDimensions(), ScExternalRefManager::getExternalFileId(), ScDocument::GetExternalRefManager(), ScMatrixValue::GetString(), i, maName, moMOper, ScMatrixValue::nType, ScRange::ParseAny(), ScAddress::Row(), String, ScAddress::Tab(), VALID, Value, and ZERO.
Referenced by ExcelToSc8::HandleOleLink().
|
inline |
Definition at line 150 of file xilink.hxx.
References maName.
|
inline |
Definition at line 151 of file xilink.hxx.
References mnStorageId.
Referenced by XclImpPictureObj::ReadPictFmla().
|
inline |
Definition at line 149 of file xilink.hxx.
References meType.
Referenced by XclImpPictureObj::ReadPictFmla().
bool XclImpExtName::HasFormulaTokens | ( | ) | const |
Definition at line 547 of file xilink.cxx.
References mxArray.
|
private |
Formula tokens for external name.
Definition at line 160 of file xilink.hxx.
Referenced by CreateDdeData(), CreateExtNameData(), CreateOleData(), GetName(), and XclImpExtName().
|
private |
Storage ID for OLE object storages.
Definition at line 162 of file xilink.hxx.
Referenced by GetType(), and XclImpExtName().
|
private |
The name of the external name.
Definition at line 161 of file xilink.hxx.
Referenced by GetStorageId(), and XclImpExtName().
|
private |
Cached results of the DDE link.
Definition at line 158 of file xilink.hxx.
Referenced by CreateOleData(), and XclImpExtName().
|
private |
Cached values for OLE link.
Definition at line 159 of file xilink.hxx.
Referenced by CreateExtNameData(), HasFormulaTokens(), and XclImpExtName().
|
private |
Definition at line 157 of file xilink.hxx.
Referenced by CreateDdeData(), and XclImpExtName().