LibreOffice Module sc (master)  1
Public Types | Public Member Functions | Private Attributes | List of all members
ScTableRefToken Class Referencefinal

Special token to remember details of ocTableRef "structured references". More...

#include <token.hxx>

Inheritance diagram for ScTableRefToken:
[legend]
Collaboration diagram for ScTableRefToken:
[legend]

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 FormulaTokenClone () const override
 
Item GetItem () const
 
void AddItem (Item)
 
void SetAreaRefRPN (formula::FormulaToken *pToken)
 
formula::FormulaTokenGetAreaRefRPN () 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 svl::SharedString GetString () const
 
virtual void SetString (const svl::SharedString &rStr)
 
virtual void SetSheet (sal_Int16 n)
 
virtual short * GetJump () const
 
virtual const OUString & GetExternal () const
 
virtual FormulaTokenGetFAPOrigToken () const
 
virtual FormulaError GetError () const
 
virtual void SetError (FormulaError)
 
virtual const ScSingleRefDataGetSingleRef () const
 
virtual ScSingleRefDataGetSingleRef ()
 
virtual const ScComplexRefDataGetDoubleRef () const
 
virtual ScComplexRefDataGetDoubleRef ()
 
virtual const ScSingleRefDataGetSingleRef2 () const
 
virtual ScSingleRefDataGetSingleRef2 ()
 
virtual const ScMatrixGetMatrix () const
 
virtual ScMatrixGetMatrix ()
 
virtual ScJumpMatrixGetJumpMatrix () const
 
virtual const std::vector< ScComplexRefData > * GetRefList () const
 
virtual std::vector< ScComplexRefData > * GetRefList ()
 
virtual bool TextEqual (const formula::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
 

Detailed Description

Special token to remember details of ocTableRef "structured references".

Definition at line 204 of file token.hxx.

Member Enumeration Documentation

Enumerator
TABLE 
ALL 
HEADERS 
DATA 
TOTALS 
THIS_ROW 
HEADERS_DATA 
DATA_TOTALS 

Definition at line 208 of file token.hxx.

Constructor & Destructor Documentation

ScTableRefToken::ScTableRefToken ( )
delete

Referenced by Clone().

ScTableRefToken::ScTableRefToken ( sal_uInt16  nIndex,
ScTableRefToken::Item  eItem 
)

Definition at line 863 of file token.cxx.

References mnIndex, ocTableRef, and svIndex.

ScTableRefToken::ScTableRefToken ( const ScTableRefToken r)

Definition at line 870 of file token.cxx.

References Clone(), and mnIndex.

ScTableRefToken::~ScTableRefToken ( )
overridevirtual

Definition at line 878 of file token.cxx.

Member Function Documentation

void ScTableRefToken::AddItem ( ScTableRefToken::Item  eItem)

Definition at line 904 of file token.cxx.

References meItem.

Referenced by ScCompiler::IsTableRefItem().

virtual FormulaToken* ScTableRefToken::Clone ( ) const
inlineoverridevirtual

Reimplemented from formula::FormulaToken.

Definition at line 229 of file token.hxx.

References ScTableRefToken().

formula::FormulaToken * ScTableRefToken::GetAreaRefRPN ( ) const

Definition at line 914 of file token.cxx.

References mxAreaRefRPN.

Referenced by ScCompiler::CreateStringFromIndex().

sal_uInt16 ScTableRefToken::GetIndex ( ) const
overridevirtual

Reimplemented from formula::FormulaToken.

Definition at line 880 of file token.cxx.

References mnIndex.

Referenced by ScCompiler::HandleTableRef(), and ScCompiler::IsTableRefColumn().

ScTableRefToken::Item ScTableRefToken::GetItem ( ) const

Definition at line 899 of file token.cxx.

References meItem.

Referenced by ScCompiler::HandleTableRef(), and operator==().

sal_Int16 ScTableRefToken::GetSheet ( ) const
overridevirtual

Reimplemented from formula::FormulaToken.

Definition at line 890 of file token.cxx.

References SAL_WARN.

bool ScTableRefToken::operator== ( const formula::FormulaToken rToken) const
overridevirtual

Reimplemented from formula::FormulaToken.

Definition at line 919 of file token.cxx.

References formula::FormulaToken::GetIndex(), GetItem(), meItem, mnIndex, and mxAreaRefRPN.

void ScTableRefToken::SetAreaRefRPN ( formula::FormulaToken pToken)

Definition at line 909 of file token.cxx.

References mxAreaRefRPN.

Referenced by ScCompiler::HandleTableRef().

void ScTableRefToken::SetIndex ( sal_uInt16  n)
overridevirtual

Reimplemented from formula::FormulaToken.

Definition at line 885 of file token.cxx.

References mnIndex.

Member Data Documentation

Item ScTableRefToken::meItem
private

Definition at line 240 of file token.hxx.

Referenced by AddItem(), GetItem(), and operator==().

sal_uInt16 ScTableRefToken::mnIndex
private

index into table / database range collection

Definition at line 239 of file token.hxx.

Referenced by GetIndex(), operator==(), and SetIndex().

formula::FormulaTokenRef ScTableRefToken::mxAreaRefRPN
private

resulting RPN area

Definition at line 238 of file token.hxx.

Referenced by GetAreaRefRPN(), operator==(), and SetAreaRefRPN().


The documentation for this class was generated from the following files: