Kaydet (Commit) 338d006c authored tarafından Eike Rathke's avatar Eike Rathke

use ScTableRefToken in ScRawToken::CreateToken()

Change-Id: I895f142667a593bc5fc4f33f2417cbee991e503a
üst 20e95bcd
...@@ -136,6 +136,9 @@ public: ...@@ -136,6 +136,9 @@ public:
bool bGlobal; bool bGlobal;
sal_uInt16 nIndex; sal_uInt16 nIndex;
} name; } name;
struct {
sal_uInt16 nIndex;
} table;
struct { struct {
rtl_uString* mpData; rtl_uString* mpData;
rtl_uString* mpDataIgnoreCase; rtl_uString* mpDataIgnoreCase;
......
...@@ -328,6 +328,9 @@ FormulaToken* ScRawToken::CreateToken() const ...@@ -328,6 +328,9 @@ FormulaToken* ScRawToken::CreateToken() const
IF_NOT_OPCODE_ERROR( ocPush, ScMatrixToken); IF_NOT_OPCODE_ERROR( ocPush, ScMatrixToken);
return new ScMatrixToken( pMat ); return new ScMatrixToken( pMat );
case svIndex : case svIndex :
if (eOp == ocTableRef)
return new ScTableRefToken( table.nIndex);
else
return new FormulaIndexToken( eOp, name.nIndex, name.bGlobal); return new FormulaIndexToken( eOp, name.nIndex, name.bGlobal);
case svExternalSingleRef: case svExternalSingleRef:
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment