22#include <document.hxx>
24#include <tokenarray.hxx>
29#include <osl/diagnose.h>
40 n +=
static_cast<sal_uInt32
>(cCurrent);
72 TokenArraysType::const_iterator it =
maTokenArrays.find(rRefPos);
81 maEntries.emplace_back( rFPAN, rTN, bSWB );
83 return static_cast< sal_Int16
>(
maEntries.size() );
88 OSL_ENSURE( nExcIndex,
89 "*ExtSheetBuffer::GetScTabIndex(): Sheet-Index == 0!" );
91 if ( !nExcIndex || nExcIndex >
maEntries.size() )
95 sal_uInt16& rTabNum = pCur->
nTabNum;
97 if( rTabNum < 0xFFFD )
103 if( rTabNum == 0xFFFF )
110 rScIndex = rTabNum =
static_cast<sal_uInt16
>(nNewTabNum);
125 rScIndex = rTabNum =
static_cast<sal_uInt16
>(nNewTabNum);
148 return (
nFlags & 0x0002 ) != 0;
177 OSL_ENSURE( nNameIdx > 0,
"ExtNameBuff::GetNameByIndex() - invalid name index" );
178 ExtNameMap::const_iterator aIt =
maExtNames.find( nRefIdx );
179 return ((aIt !=
maExtNames.end()) && (0 < nNameIdx) && (nNameIdx <= aIt->second.size())) ? &aIt->second[ nNameIdx - 1 ] :
nullptr;
ExtNameBuff(const XclImpRoot &rRoot)
void AddDDE(sal_Int16 nRefIdx)
void AddOLE(sal_Int16 nRefIdx, sal_uInt32 nStorageId)
const ExtName * GetNameByIndex(sal_Int16 nRefIdx, sal_uInt16 nNameIdx) const
void AddName(sal_Int16 nRefIdx)
std::vector< Cont > maEntries
sal_Int16 Add(const OUString &rFilePathAndName, const OUString &rTabName, const bool bSameWorkbook)
bool GetScTabIndex(sal_uInt16 nExcSheetIndex, sal_uInt16 &rIn_LastTab_Out_ScIndex)
SC_DLLPUBLIC bool LinkExternalTab(SCTAB &nTab, const OUString &aDocTab, const OUString &aFileName, const OUString &aTabName)
SC_DLLPUBLIC bool GetTable(const OUString &rName, SCTAB &rTab) const
const ScExtDocSettings & GetDocSettings() const
static SC_DLLPUBLIC OUString GetDocTabName(std::u16string_view rFileName, std::u16string_view rTabName)
static SC_DLLPUBLIC OUString GetAbsDocName(const OUString &rFileName, const SfxObjectShell *pShell)
ScTokenArray CloneValue() const
True copy!
static sal_uInt32 MakeHashCode(const OUString &)
Access to global data from other classes.
SfxObjectShell * GetDocShell() const
Returns the object shell of the Calc document.
ScExtDocOptions & GetExtDocOptions() const
Returns the extended document options.
ScDocument & GetDoc() const
Returns reference to the destination document (import) or source document (export).
sal_uInt32 mnLinkCnt
Recursive counter for loading external documents.