LibreOffice Module sc (master) 1
|
#include <compiler.hxx>
Public Member Functions | |
ScRawToken () | |
formula::StackVar | GetType () const |
only delete via Delete() More... | |
OpCode | GetOpCode () const |
void | NewOpCode (OpCode e) |
void | SetOpCode (OpCode eCode) |
void | SetString (rtl_uString *pData, rtl_uString *pDataIgnoreCase) |
void | SetSingleReference (const ScSingleRefData &rRef) |
void | SetDoubleReference (const ScComplexRefData &rRef) |
void | SetDouble (double fVal) |
void | SetErrorConstant (FormulaError nErr) |
void | SetName (sal_Int16 nSheet, sal_uInt16 nIndex) |
void | SetExternalSingleRef (sal_uInt16 nFileId, const OUString &rTabName, const ScSingleRefData &rRef) |
void | SetExternalDoubleRef (sal_uInt16 nFileId, const OUString &rTabName, const ScComplexRefData &rRef) |
void | SetExternalName (sal_uInt16 nFileId, const OUString &rName) |
void | SetExternal (const OUString &rStr) |
bool | IsValidReference (const ScDocument &rDoc) const |
If the token is a non-external reference, determine if the reference is valid. More... | |
formula::FormulaToken * | CreateToken (ScSheetLimits &rLimits) const |
Public Attributes | |
OpCode | eOp |
formula::StackVar | eType |
union { | |
double nValue | |
struct { | |
sal_uInt8 nCount | |
sal_Unicode cChar | |
} whitespace | |
struct { | |
sal_uInt8 cByte | |
formula::ParamClass eInForceArray | |
} sbyte | |
ScComplexRefData aRef | |
struct { | |
sal_uInt16 nFileId | |
ScComplexRefData aRef | |
} extref | |
struct { | |
sal_uInt16 nFileId | |
} extname | |
struct { | |
sal_Int16 nSheet | |
sal_uInt16 nIndex | |
} name | |
struct { | |
sal_uInt16 nIndex | |
ScTableRefToken::Item eItem | |
} table | |
struct { | |
rtl_uString * mpData | |
rtl_uString * mpDataIgnoreCase | |
} sharedstring | |
ScMatrix * pMat | |
FormulaError nError | |
short nJump [FORMULA_MAXJUMPCOUNT+1] | |
}; | |
OUString | maExternalName |
Private Member Functions | |
~ScRawToken () | |
Friends | |
class | ScCompiler |
class | ScTokenArray |
Definition at line 100 of file compiler.hxx.
|
inline |
Definition at line 146 of file compiler.hxx.
|
inlineprivate |
Definition at line 148 of file compiler.hxx.
FormulaToken * ScRawToken::CreateToken | ( | ScSheetLimits & | rLimits | ) | const |
Definition at line 352 of file token.cxx.
References aName, aRef, eOp, extname, extref, GetType(), IF_NOT_OPCODE_ERROR, maExternalName, name, nError, nJump, nValue, ocBad, ocMissing, ocPush, ocTableRef, ocWhitespace, pMat, ScComplexRefData::Ref1, SAL_WARN, sbyte, sharedstring, svByte, svDouble, svDoubleRef, svError, svExternal, svExternalDoubleRef, svExternalName, svExternalSingleRef, svFAP, svIndex, svJump, svMatrix, svMissing, svSep, svSingleRef, svString, svUnknown, table, and whitespace.
Referenced by ScTokenArray::AddRawToken(), and ScCompiler::CompileString().
|
inline |
Definition at line 151 of file compiler.hxx.
References eOp.
Referenced by ScCompiler::CompileString(), and ScCompiler::ParseOpCode().
|
inline |
only delete via Delete()
Definition at line 150 of file compiler.hxx.
References eType.
Referenced by CreateToken().
bool ScRawToken::IsValidReference | ( | const ScDocument & | rDoc | ) | const |
If the token is a non-external reference, determine if the reference is valid.
If the token is an external reference, return true. Else return false. Used only in ScCompiler::NextNewToken() to preserve non-existing sheet names in otherwise valid references.
Definition at line 335 of file token.cxx.
References aRef, eType, ScComplexRefData::Ref1, svDoubleRef, svExternalDoubleRef, svExternalSingleRef, svSingleRef, ScSingleRefData::Valid(), and ScComplexRefData::Valid().
Referenced by ScCompiler::NextNewToken().
|
inline |
Definition at line 152 of file compiler.hxx.
References eOp.
Referenced by ScCompiler::NextNewToken(), and ScCompiler::ParseOpCode().
void ScRawToken::SetDouble | ( | double | fVal | ) |
void ScRawToken::SetDoubleReference | ( | const ScComplexRefData & | rRef | ) |
Definition at line 268 of file token.cxx.
References aRef, eOp, eType, ocPush, and svDoubleRef.
Referenced by ScCompiler::ParseDoubleReference().
void ScRawToken::SetErrorConstant | ( | FormulaError | nErr | ) |
void ScRawToken::SetExternal | ( | const OUString & | rStr | ) |
Definition at line 328 of file token.cxx.
References eOp, eType, maExternalName, ocExternal, and svExternal.
Referenced by ScCompiler::ParseMacro(), and ScCompiler::ParseOpCode().
void ScRawToken::SetExternalDoubleRef | ( | sal_uInt16 | nFileId, |
const OUString & | rTabName, | ||
const ScComplexRefData & | rRef | ||
) |
Definition at line 309 of file token.cxx.
References eOp, eType, extref, maExternalName, nFileId, ocPush, and svExternalDoubleRef.
Referenced by ScCompiler::ParseDoubleReference().
void ScRawToken::SetExternalName | ( | sal_uInt16 | nFileId, |
const OUString & | rName | ||
) |
Definition at line 319 of file token.cxx.
References eOp, eType, extname, maExternalName, nFileId, ocPush, and svExternalName.
Referenced by ScCompiler::ParseExternalNamedRange().
void ScRawToken::SetExternalSingleRef | ( | sal_uInt16 | nFileId, |
const OUString & | rTabName, | ||
const ScSingleRefData & | rRef | ||
) |
Definition at line 298 of file token.cxx.
References eOp, eType, extref, maExternalName, nFileId, ocPush, and svExternalSingleRef.
Referenced by ScCompiler::ParseSingleReference().
void ScRawToken::SetName | ( | sal_Int16 | nSheet, |
sal_uInt16 | nIndex | ||
) |
void ScRawToken::SetOpCode | ( | OpCode | eCode | ) |
Definition at line 207 of file token.cxx.
References eOp, eType, FORMULA_MAXJUMPCOUNT, nJump, ocArrayClose, ocArrayColSep, ocArrayOpen, ocArrayRowSep, ocChoose, ocClose, ocIf, ocIfError, ocIfNA, ocMissing, ocOpen, ocSep, ocTableRefClose, ocTableRefOpen, ocWhitespace, sbyte, svByte, svJump, svMissing, svSep, and whitespace.
Referenced by ScCompiler::NextNewToken(), ScCompiler::ParseBoolean(), ScCompiler::ParseOpCode(), ScCompiler::ParseOpCode2(), ScCompiler::ParseTableRefItem(), and ScCompiler::ParseValue().
void ScRawToken::SetSingleReference | ( | const ScSingleRefData & | rRef | ) |
Definition at line 260 of file token.cxx.
References aRef, eOp, eType, ocPush, ScComplexRefData::Ref1, ScComplexRefData::Ref2, and svSingleRef.
Referenced by ScCompiler::ParseColRowName(), ScCompiler::ParseSingleReference(), and ScCompiler::ParseTableRefColumn().
void ScRawToken::SetString | ( | rtl_uString * | pData, |
rtl_uString * | pDataIgnoreCase | ||
) |
Definition at line 251 of file token.cxx.
References eOp, eType, ocPush, pData, sharedstring, and svString.
Referenced by ScCompiler::NextNewToken(), and ScCompiler::ParseString().
|
friend |
Definition at line 102 of file compiler.hxx.
|
friend |
Definition at line 105 of file compiler.hxx.
union { ... } ScRawToken::@18 |
ScComplexRefData ScRawToken::aRef |
Definition at line 119 of file compiler.hxx.
Referenced by CreateToken(), IsValidReference(), SetDoubleReference(), and SetSingleReference().
sal_uInt8 ScRawToken::cByte |
Definition at line 116 of file compiler.hxx.
Referenced by ScCompiler::NextNewToken().
sal_Unicode ScRawToken::cChar |
Definition at line 113 of file compiler.hxx.
Referenced by ScCompiler::NextNewToken().
formula::ParamClass ScRawToken::eInForceArray |
Definition at line 117 of file compiler.hxx.
ScTableRefToken::Item ScRawToken::eItem |
Definition at line 133 of file compiler.hxx.
OpCode ScRawToken::eOp |
Definition at line 106 of file compiler.hxx.
Referenced by CreateToken(), GetOpCode(), NewOpCode(), ScCompiler::ParseColRowName(), ScCompiler::ParseDBRange(), ScCompiler::ParseMacro(), SetDouble(), SetDoubleReference(), SetErrorConstant(), SetExternal(), SetExternalDoubleRef(), SetExternalName(), SetExternalSingleRef(), SetName(), SetOpCode(), SetSingleReference(), and SetString().
formula::StackVar ScRawToken::eType |
Definition at line 107 of file compiler.hxx.
Referenced by GetType(), IsValidReference(), SetDouble(), SetDoubleReference(), SetErrorConstant(), SetExternal(), SetExternalDoubleRef(), SetExternalName(), SetExternalSingleRef(), SetName(), SetOpCode(), SetSingleReference(), and SetString().
struct { ... } ScRawToken::extname |
Referenced by CreateToken(), and SetExternalName().
struct { ... } ScRawToken::extref |
Referenced by CreateToken(), SetExternalDoubleRef(), and SetExternalSingleRef().
OUString ScRawToken::maExternalName |
Definition at line 143 of file compiler.hxx.
Referenced by CreateToken(), SetExternal(), SetExternalDoubleRef(), SetExternalName(), and SetExternalSingleRef().
rtl_uString* ScRawToken::mpData |
Definition at line 136 of file compiler.hxx.
rtl_uString* ScRawToken::mpDataIgnoreCase |
Definition at line 137 of file compiler.hxx.
struct { ... } ScRawToken::name |
Referenced by CreateToken(), and SetName().
sal_uInt8 ScRawToken::nCount |
Definition at line 112 of file compiler.hxx.
Referenced by ScCompiler::NextNewToken().
FormulaError ScRawToken::nError |
Definition at line 140 of file compiler.hxx.
Referenced by CreateToken(), and SetErrorConstant().
sal_uInt16 ScRawToken::nFileId |
Definition at line 121 of file compiler.hxx.
Referenced by SetExternalDoubleRef(), SetExternalName(), and SetExternalSingleRef().
sal_uInt16 ScRawToken::nIndex |
Definition at line 129 of file compiler.hxx.
Referenced by SetName().
short ScRawToken::nJump[FORMULA_MAXJUMPCOUNT+1] |
Definition at line 141 of file compiler.hxx.
Referenced by CreateToken(), and SetOpCode().
sal_Int16 ScRawToken::nSheet |
Definition at line 128 of file compiler.hxx.
Referenced by SetName().
double ScRawToken::nValue |
Definition at line 110 of file compiler.hxx.
Referenced by CreateToken(), and SetDouble().
ScMatrix* ScRawToken::pMat |
Definition at line 139 of file compiler.hxx.
Referenced by CreateToken().
struct { ... } ScRawToken::sbyte |
Referenced by CreateToken(), ScCompiler::NextNewToken(), and SetOpCode().
struct { ... } ScRawToken::sharedstring |
Referenced by CreateToken(), and SetString().
struct { ... } ScRawToken::table |
Referenced by CreateToken().
struct { ... } ScRawToken::whitespace |
Referenced by CreateToken(), ScCompiler::NextNewToken(), and SetOpCode().