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 const svl::SharedStringGetString () 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 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 FormulaTokenClone () 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
 

Detailed Description

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

Definition at line 203 of file token.hxx.

Member Enumeration Documentation

◆ Item

Enumerator
TABLE 
ALL 
HEADERS 
DATA 
TOTALS 
THIS_ROW 
HEADERS_DATA 
DATA_TOTALS 

Definition at line 207 of file token.hxx.

Constructor & Destructor Documentation

◆ ScTableRefToken() [1/3]

ScTableRefToken::ScTableRefToken ( )
delete

Referenced by Clone().

◆ ScTableRefToken() [2/3]

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

Definition at line 864 of file token.cxx.

References mnIndex, nIndex, ocTableRef, and svIndex.

◆ ScTableRefToken() [3/3]

ScTableRefToken::ScTableRefToken ( const ScTableRefToken r)

Definition at line 871 of file token.cxx.

References Clone(), and mnIndex.

◆ ~ScTableRefToken()

ScTableRefToken::~ScTableRefToken ( )
overridevirtual

Definition at line 879 of file token.cxx.

Member Function Documentation

◆ AddItem()

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

Definition at line 905 of file token.cxx.

References meItem.

◆ Clone()

virtual FormulaToken * ScTableRefToken::Clone ( ) const
inlineoverridevirtual

Reimplemented from formula::FormulaToken.

Definition at line 228 of file token.hxx.

References ScTableRefToken().

◆ GetAreaRefRPN()

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

Definition at line 915 of file token.cxx.

References mxAreaRefRPN.

Referenced by ScCompiler::CreateStringFromIndex().

◆ GetIndex()

sal_uInt16 ScTableRefToken::GetIndex ( ) const
overridevirtual

Reimplemented from formula::FormulaToken.

Definition at line 881 of file token.cxx.

References mnIndex.

Referenced by ScCompiler::HandleTableRef().

◆ GetItem()

ScTableRefToken::Item ScTableRefToken::GetItem ( ) const

Definition at line 900 of file token.cxx.

References meItem.

Referenced by ScCompiler::HandleTableRef().

◆ GetSheet()

sal_Int16 ScTableRefToken::GetSheet ( ) const
overridevirtual

Reimplemented from formula::FormulaToken.

Definition at line 891 of file token.cxx.

References SAL_WARN.

◆ operator==()

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

Reimplemented from formula::FormulaToken.

Definition at line 920 of file token.cxx.

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

◆ SetAreaRefRPN()

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

Definition at line 910 of file token.cxx.

References mxAreaRefRPN.

Referenced by ScCompiler::HandleTableRef().

◆ SetIndex()

void ScTableRefToken::SetIndex ( sal_uInt16  n)
overridevirtual

Reimplemented from formula::FormulaToken.

Definition at line 886 of file token.cxx.

References mnIndex, and n.

Member Data Documentation

◆ meItem

Item ScTableRefToken::meItem
private

Definition at line 239 of file token.hxx.

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

◆ mnIndex

sal_uInt16 ScTableRefToken::mnIndex
private

index into table / database range collection

Definition at line 238 of file token.hxx.

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

◆ mxAreaRefRPN

formula::FormulaTokenRef ScTableRefToken::mxAreaRefRPN
private

resulting RPN area

Definition at line 237 of file token.hxx.

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


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