LibreOffice Module sc (master) 1
|
Special token to remember details of ocTableRef "structured references". More...
#include <token.hxx>
Public Types | |
enum | Item { TABLE = 0 , ALL = 1 , HEADERS = 2 , DATA = 4 , TOTALS = 8 , THIS_ROW = 16 , HEADERS_DATA = HEADERS | DATA , DATA_TOTALS = DATA | TOTALS } |
Public Member Functions | |
ScTableRefToken ()=delete | |
ScTableRefToken (sal_uInt16 nIndex, Item eItem) | |
ScTableRefToken (const ScTableRefToken &r) | |
virtual | ~ScTableRefToken () override |
virtual sal_uInt16 | GetIndex () const override |
virtual void | SetIndex (sal_uInt16 n) override |
virtual sal_Int16 | GetSheet () const override |
virtual bool | operator== (const formula::FormulaToken &rToken) const override |
virtual FormulaToken * | Clone () const override |
Item | GetItem () const |
void | AddItem (Item) |
void | SetAreaRefRPN (formula::FormulaToken *pToken) |
formula::FormulaToken * | GetAreaRefRPN () const |
Public Member Functions inherited from formula::FormulaToken | |
FormulaToken (StackVar eTypeP, OpCode e=ocPush) | |
FormulaToken (const FormulaToken &r) | |
virtual | ~FormulaToken () |
void | Delete () |
void | DeleteIfZeroRef () |
StackVar | GetType () const |
bool | IsFunction () const |
bool | IsExternalRef () const |
bool | IsRef () const |
sal_uInt8 | GetParamCount () const |
void | IncRef () const |
void | DecRef () const |
oslInterlockedCount | GetRef () const |
OpCode | GetOpCode () const |
bool | IsInForceArray () const |
virtual sal_uInt8 | GetByte () const |
virtual void | SetByte (sal_uInt8 n) |
virtual ParamClass | GetInForceArray () const |
virtual void | SetInForceArray (ParamClass c) |
virtual double | GetDouble () const |
virtual double & | GetDoubleAsReference () |
virtual sal_Int16 | GetDoubleType () const |
virtual void | SetDoubleType (sal_Int16 nType) |
virtual const svl::SharedString & | GetString () const |
virtual void | SetString (const svl::SharedString &rStr) |
virtual sal_uInt16 | GetIndex () const |
virtual void | SetIndex (sal_uInt16 n) |
virtual sal_Int16 | GetSheet () const |
virtual void | SetSheet (sal_Int16 n) |
virtual sal_Unicode | GetChar () const |
virtual short * | GetJump () const |
virtual const OUString & | GetExternal () const |
virtual FormulaToken * | GetFAPOrigToken () const |
virtual FormulaError | GetError () const |
virtual void | SetError (FormulaError) |
virtual const ScSingleRefData * | GetSingleRef () const |
virtual ScSingleRefData * | GetSingleRef () |
virtual const ScComplexRefData * | GetDoubleRef () const |
virtual ScComplexRefData * | GetDoubleRef () |
virtual const ScSingleRefData * | GetSingleRef2 () const |
virtual ScSingleRefData * | GetSingleRef2 () |
virtual const ScMatrix * | GetMatrix () const |
virtual ScMatrix * | GetMatrix () |
virtual ScJumpMatrix * | GetJumpMatrix () const |
virtual const std::vector< ScComplexRefData > * | GetRefList () const |
virtual std::vector< ScComplexRefData > * | GetRefList () |
virtual FormulaToken * | Clone () const |
virtual bool | TextEqual (const formula::FormulaToken &rToken) const |
virtual bool | operator== (const FormulaToken &rToken) const |
void | NewOpCode (OpCode e, const PrivateAccess &) |
Private Attributes | |
formula::FormulaTokenRef | mxAreaRefRPN |
resulting RPN area More... | |
sal_uInt16 | mnIndex |
index into table / database range collection More... | |
Item | meItem |
Special token to remember details of ocTableRef "structured references".
|
delete |
Referenced by Clone().
ScTableRefToken::ScTableRefToken | ( | sal_uInt16 | nIndex, |
ScTableRefToken::Item | eItem | ||
) |
ScTableRefToken::ScTableRefToken | ( | const ScTableRefToken & | r | ) |
void ScTableRefToken::AddItem | ( | ScTableRefToken::Item | eItem | ) |
|
inlineoverridevirtual |
Reimplemented from formula::FormulaToken.
Definition at line 228 of file token.hxx.
References ScTableRefToken().
formula::FormulaToken * ScTableRefToken::GetAreaRefRPN | ( | ) | const |
Definition at line 915 of file token.cxx.
References mxAreaRefRPN.
Referenced by ScCompiler::CreateStringFromIndex().
|
overridevirtual |
Reimplemented from formula::FormulaToken.
Definition at line 881 of file token.cxx.
References mnIndex.
Referenced by ScCompiler::HandleTableRef().
ScTableRefToken::Item ScTableRefToken::GetItem | ( | ) | const |
Definition at line 900 of file token.cxx.
References meItem.
Referenced by ScCompiler::HandleTableRef().
|
overridevirtual |
Reimplemented from formula::FormulaToken.
Definition at line 891 of file token.cxx.
References SAL_WARN.
|
overridevirtual |
Reimplemented from formula::FormulaToken.
Definition at line 920 of file token.cxx.
References formula::FormulaToken::GetIndex(), meItem, mnIndex, mxAreaRefRPN, and p.
void ScTableRefToken::SetAreaRefRPN | ( | formula::FormulaToken * | pToken | ) |
Definition at line 910 of file token.cxx.
References mxAreaRefRPN.
Referenced by ScCompiler::HandleTableRef().
|
overridevirtual |
Reimplemented from formula::FormulaToken.
|
private |
Definition at line 239 of file token.hxx.
Referenced by AddItem(), GetItem(), and operator==().
|
private |
index into table / database range collection
Definition at line 238 of file token.hxx.
Referenced by GetIndex(), operator==(), and SetIndex().
|
private |
resulting RPN area
Definition at line 237 of file token.hxx.
Referenced by GetAreaRefRPN(), operator==(), and SetAreaRefRPN().