LibreOffice Module sc (master) 1
|
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) |
void ScRefTokenHelper::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.
The source range may consist of multiple ranges separated by ';'s.
Referenced by ScChart2DataProvider::convertRangeToXML(), ScMyOLEFixer::CreateChartListener(), ScChart2DataProvider::createDataSequenceByRangeRepresentation(), ScChart2DataProvider::createDataSequenceByRangeRepresentationPossible(), ScChart2DataProvider::createDataSource(), ScChart2DataProvider::createDataSourcePossible(), and ScChart2DataProvider::detectArguments().
ScTokenRef ScRefTokenHelper::createRefToken | ( | const ScDocument & | rDoc, |
const ScAddress & | rAddr | ||
) |
Definition at line 470 of file reftokenhelper.cxx.
References ScDocument::GetSheetLimits(), and ScSingleRefData::InitAddress().
Referenced by ScDetectiveFunc::GetAllSuccs().
ScTokenRef ScRefTokenHelper::createRefToken | ( | const ScDocument & | rDoc, |
const ScRange & | rRange | ||
) |
Definition at line 478 of file reftokenhelper.cxx.
References ScDocument::GetSheetLimits(), and ScComplexRefData::InitRange().
bool ScRefTokenHelper::getDoubleRefDataFromToken | ( | ScComplexRefData & | rData, |
const ScTokenRef & | pToken | ||
) |
Definition at line 445 of file reftokenhelper.cxx.
References ScComplexRefData::Ref1, ScComplexRefData::Ref2, ScSingleRefData::SetFlag3D(), svDoubleRef, svExternalDoubleRef, svExternalSingleRef, and svSingleRef.
bool ScRefTokenHelper::getRangeFromToken | ( | const ScDocument * | pDoc, |
ScRange & | rRange, | ||
const ScTokenRef & | pToken, | ||
const ScAddress & | rPos, | ||
bool | bExternal = false |
||
) |
Definition at line 133 of file reftokenhelper.cxx.
References ScRange::aEnd, ScRange::aStart, eType, ScDocument::FindRangeNameBySheetAndIndex(), ScRangeData::IsReference(), ocName, svDoubleRef, svExternalDoubleRef, svExternalSingleRef, svIndex, svSingleRef, ScSingleRefData::toAbs(), and ScComplexRefData::toAbs().
Referenced by ScChart2DataSequence::addModifyListener(), ScChart2DataSequence::BuildDataCache(), ScViewFunc::DetectiveMarkPred(), ScChart2DataSequence::FillCacheFromExternalRef(), ScChart2DataSequence::Notify(), and ScChart2DataSequence::RefChanged().
void ScRefTokenHelper::getRangeListFromTokens | ( | const ScDocument * | pDoc, |
ScRangeList & | rRangeList, | ||
const ::std::vector< ScTokenRef > & | pTokens, | ||
const ScAddress & | rPos | ||
) |
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().
void ScRefTokenHelper::getTokensFromRangeList | ( | const ScDocument * | pDoc, |
::std::vector< ScTokenRef > & | pTokens, | ||
const ScRangeList & | rRanges | ||
) |
Referenced by ScChartListener::ScChartListener(), and ScChartListener::SetRangeList().
bool SC_DLLPUBLIC ScRefTokenHelper::intersects | ( | const ScDocument * | pDoc, |
const ::std::vector< ScTokenRef > & | rTokens, | ||
const ScTokenRef & | pToken, | ||
const ScAddress & | rPos | ||
) |
Referenced by ScDetectiveFunc::GetAllSuccs(), and ScChartListener::UpdateChartIntersecting().
bool ScRefTokenHelper::isExternalRef | ( | const ScTokenRef & | pToken | ) |
Definition at line 233 of file reftokenhelper.cxx.
References svExternalDoubleRef, and svExternalSingleRef.
Referenced by ScChart2DataSequence::BuildDataCache(), ScViewFunc::DetectiveMarkPred(), and ScChart2DataSequence::Notify().
bool ScRefTokenHelper::isRef | ( | const ScTokenRef & | pToken | ) |
Definition at line 218 of file reftokenhelper.cxx.
References svDoubleRef, svExternalDoubleRef, svExternalSingleRef, and svSingleRef.
Referenced by XclImpChSourceLink::FillSourceLink().
void SC_DLLPUBLIC ScRefTokenHelper::join | ( | const ScDocument * | pDoc, |
::std::vector< ScTokenRef > & | rTokens, | ||
const ScTokenRef & | pToken, | ||
const ScAddress & | rPos | ||
) |