LibreOffice Module sc (master) 1
Functions
ScRefTokenHelper Namespace Reference

Functions

void compileRangeRepresentation (::std::vector< ScTokenRef > &rRefTokens, const OUString &rRangeStr, ScDocument &rDoc, const sal_Unicode cSep, ::formula::FormulaGrammar::Grammar eGrammar, bool bOnly3DRef=false)
 Compile an array of reference tokens from a data source range string. More...
 
bool getRangeFromToken (const ScDocument *pDoc, ScRange &rRange, const ScTokenRef &pToken, const ScAddress &rPos, bool bExternal=false)
 
void getRangeListFromTokens (const ScDocument *pDoc, ScRangeList &rRangeList, const ::std::vector< ScTokenRef > &pTokens, const ScAddress &rPos)
 
void getTokenFromRange (const ScDocument *pDoc, ScTokenRef &pToken, const ScRange &rRange)
 Create a double reference token from a range object. More...
 
void getTokensFromRangeList (const ScDocument *pDoc, ::std::vector< ScTokenRef > &pTokens, const ScRangeList &rRanges)
 
bool SC_DLLPUBLIC isRef (const ScTokenRef &pToken)
 
bool SC_DLLPUBLIC isExternalRef (const ScTokenRef &pToken)
 
bool SC_DLLPUBLIC intersects (const ScDocument *pDoc, const ::std::vector< ScTokenRef > &rTokens, const ScTokenRef &pToken, const ScAddress &rPos)
 
void SC_DLLPUBLIC join (const ScDocument *pDoc, ::std::vector< ScTokenRef > &rTokens, const ScTokenRef &pToken, const ScAddress &rPos)
 
bool getDoubleRefDataFromToken (ScComplexRefData &rData, const ScTokenRef &pToken)
 
ScTokenRef createRefToken (const ScDocument &rDoc, const ScAddress &rAddr)
 
ScTokenRef createRefToken (const ScDocument &rDoc, const ScRange &rRange)
 

Function Documentation

◆ compileRangeRepresentation()

void ScRefTokenHelper::compileRangeRepresentation ( ::std::vector< ScTokenRef > &  rRefTokens,
const OUString &  rRangeStr,
ScDocument rDoc,
const sal_Unicode  cSep,
::formula::FormulaGrammar::Grammar  eGrammar,
bool  bOnly3DRef = false 
)

◆ createRefToken() [1/2]

ScTokenRef ScRefTokenHelper::createRefToken ( const ScDocument rDoc,
const ScAddress rAddr 
)

◆ createRefToken() [2/2]

ScTokenRef ScRefTokenHelper::createRefToken ( const ScDocument rDoc,
const ScRange rRange 
)

◆ getDoubleRefDataFromToken()

bool ScRefTokenHelper::getDoubleRefDataFromToken ( ScComplexRefData rData,
const ScTokenRef pToken 
)

◆ getRangeFromToken()

bool ScRefTokenHelper::getRangeFromToken ( const ScDocument pDoc,
ScRange rRange,
const ScTokenRef pToken,
const ScAddress rPos,
bool  bExternal = false 
)

◆ getRangeListFromTokens()

void ScRefTokenHelper::getRangeListFromTokens ( const ScDocument pDoc,
ScRangeList rRangeList,
const ::std::vector< ScTokenRef > &  pTokens,
const ScAddress rPos 
)

◆ getTokenFromRange()

void ScRefTokenHelper::getTokenFromRange ( const ScDocument pDoc,
ScTokenRef pToken,
const ScRange rRange 
)

Create a double reference token from a range object.

Definition at line 190 of file reftokenhelper.cxx.

References aData, ScRange::aEnd, ScRange::aStart, ScDocument::GetSheetLimits(), and ScAddress::Tab().

Referenced by ScChartListener::UpdateChartIntersecting(), and ScChart2DataSequence::UpdateTokensFromRanges().

◆ getTokensFromRangeList()

void ScRefTokenHelper::getTokensFromRangeList ( const ScDocument pDoc,
::std::vector< ScTokenRef > &  pTokens,
const ScRangeList rRanges 
)

◆ intersects()

bool SC_DLLPUBLIC ScRefTokenHelper::intersects ( const ScDocument pDoc,
const ::std::vector< ScTokenRef > &  rTokens,
const ScTokenRef pToken,
const ScAddress rPos 
)

◆ isExternalRef()

bool ScRefTokenHelper::isExternalRef ( const ScTokenRef pToken)

◆ isRef()

bool ScRefTokenHelper::isRef ( const ScTokenRef pToken)

◆ join()

void SC_DLLPUBLIC ScRefTokenHelper::join ( const ScDocument pDoc,
::std::vector< ScTokenRef > &  rTokens,
const ScTokenRef pToken,
const ScAddress rPos 
)