LibreOffice Module sc (master) 1
|
Implementation class of the export formula compiler. More...
Public Member Functions | |
XclExpFmlaCompImpl (const XclExpRoot &rRoot) | |
XclTokenArrayRef | CreateFormula (XclFormulaType eType, const ScTokenArray &rScTokArr, const ScAddress *pScBasePos=nullptr, XclExpRefLog *pRefLog=nullptr) |
Creates an Excel token array from the passed Calc token array. More... | |
XclTokenArrayRef | CreateErrorFormula (sal_uInt8 nErrCode) |
Creates a single error token containing the passed error code. More... | |
XclTokenArrayRef | CreateSpecialRefFormula (sal_uInt8 nTokenId, const XclAddress &rXclPos) |
Creates a single token for a special cell reference. More... | |
XclTokenArrayRef | CreateNameXFormula (sal_uInt16 nExtSheet, sal_uInt16 nExtName) |
Creates a single tNameXR token for a reference to an external name. More... | |
bool | Is3DRefOnly (XclFormulaType eType) const |
Returns true, if the passed formula type allows 3D references only. More... | |
bool | IsRef2D (const ScSingleRefData &rRefData, bool bCheck3DFlag) const |
bool | IsRef2D (const ScComplexRefData &rRefData, bool bCheck3DFlag) const |
Private Types | |
typedef std::map< XclFormulaType, XclExpCompConfig > | XclExpCompConfigMap |
typedef std::shared_ptr< XclExpCompData > | XclExpCompDataRef |
Private Member Functions | |
const XclExpCompConfig * | GetConfigForType (XclFormulaType eType) const |
sal_uInt16 | GetSize () const |
void | Init (XclFormulaType eType) |
void | Init (XclFormulaType eType, const ScTokenArray &rScTokArr, const ScAddress *pScBasePos, XclExpRefLog *pRefLog) |
void | RecalcTokenClasses () |
void | RecalcTokenClass (const XclExpTokenConvInfo &rConvInfo, XclFuncParamConv ePrevConv, XclExpClassConv ePrevClassConv, bool bWasRefClass, o3tl::sorted_vector< const XclExpTokenConvInfo * > &rSeenTokens) |
void | FinalizeFormula () |
XclTokenArrayRef | CreateTokenArray () |
const FormulaToken * | GetNextRawToken () |
const FormulaToken * | PeekNextRawToken () const |
bool | GetNextToken (XclExpScToken &rTokData) |
XclExpScToken | GetNextToken () |
XclExpScToken | Expression (XclExpScToken aTokData, bool bInParentheses, bool bStopAtSep) |
XclExpScToken | SkipExpression (XclExpScToken aTokData, bool bStopAtSep) |
XclExpScToken | OrTerm (XclExpScToken aTokData, bool bInParentheses) |
XclExpScToken | AndTerm (XclExpScToken aTokData, bool bInParentheses) |
XclExpScToken | CompareTerm (XclExpScToken aTokData, bool bInParentheses) |
XclExpScToken | ConcatTerm (XclExpScToken aTokData, bool bInParentheses) |
XclExpScToken | AddSubTerm (XclExpScToken aTokData, bool bInParentheses) |
XclExpScToken | MulDivTerm (XclExpScToken aTokData, bool bInParentheses) |
XclExpScToken | PowTerm (XclExpScToken aTokData, bool bInParentheses) |
XclExpScToken | UnaryPostTerm (XclExpScToken aTokData, bool bInParentheses) |
XclExpScToken | UnaryPreTerm (XclExpScToken aTokData, bool bInParentheses) |
XclExpScToken | ListTerm (XclExpScToken aTokData, bool bInParentheses) |
XclExpScToken | IntersectTerm (XclExpScToken aTokData, bool &rbHasRefOp) |
XclExpScToken | RangeTerm (XclExpScToken aTokData, bool &rbHasRefOp) |
XclExpScToken | Factor (XclExpScToken aTokData) |
void | ProcessDouble (const XclExpScToken &rTokData) |
void | ProcessString (const XclExpScToken &rTokData) |
void | ProcessMissing (const XclExpScToken &rTokData) |
void | ProcessBad (const XclExpScToken &rTokData) |
void | ProcessParentheses (const XclExpScToken &rTokData) |
void | ProcessBoolean (const XclExpScToken &rTokData) |
void | ProcessDdeLink (const XclExpScToken &rTokData) |
void | ProcessExternal (const XclExpScToken &rTokData) |
void | ProcessMatrix (const XclExpScToken &rTokData) |
void | ProcessFunction (const XclExpScToken &rTokData) |
void | PrepareFunction (const XclExpFuncData &rFuncData) |
void | FinishFunction (XclExpFuncData &rFuncData, sal_uInt8 nCloseSpaces) |
void | FinishIfFunction (XclExpFuncData &rFuncData) |
void | FinishChooseFunction (XclExpFuncData &rFuncData) |
XclExpScToken | ProcessParam (XclExpScToken aTokData, XclExpFuncData &rFuncData) |
void | PrepareParam (XclExpFuncData &rFuncData) |
void | FinishParam (XclExpFuncData &rFuncData) |
void | AppendDefaultParam (XclExpFuncData &rFuncData) |
void | AppendTrailingParam (XclExpFuncData &rFuncData) |
SCTAB | GetScTab (const ScSingleRefData &rRefData) const |
void | ConvertRefData (ScSingleRefData &rRefData, XclAddress &rXclPos, bool bNatLangRef, bool bTruncMaxCol, bool bTruncMaxRow) const |
void | ConvertRefData (ScComplexRefData &rRefData, XclRange &rXclRange, bool bNatLangRef) const |
XclExpRefLogEntry * | GetNewRefLogEntry () |
void | ProcessCellRef (const XclExpScToken &rTokData) |
void | ProcessRangeRef (const XclExpScToken &rTokData) |
void | ProcessExternalCellRef (const XclExpScToken &rTokData) |
void | ProcessExternalRangeRef (const XclExpScToken &rTokData) |
void | ProcessDefinedName (const XclExpScToken &rTokData) |
void | ProcessExternalName (const XclExpScToken &rTokData) |
void | PushOperandPos (sal_uInt16 nTokPos) |
void | PushOperatorPos (sal_uInt16 nTokPos, const XclExpOperandListRef &rxOperands) |
sal_uInt16 | PopOperandPos () |
void | Append (sal_uInt8 nData) |
void | Append (sal_uInt8 nData, size_t nCount) |
void | Append (sal_uInt16 nData) |
void | Append (sal_uInt32 nData) |
void | Append (double fData) |
void | Append (const OUString &rString) |
void | AppendAddress (const XclAddress &rXclPos) |
void | AppendRange (const XclRange &rXclRange) |
void | AppendSpaceToken (sal_uInt8 nType, sal_uInt8 nCount) |
void | AppendOperandTokenId (sal_uInt8 nTokenId, sal_uInt8 nSpaces=0) |
void | AppendIntToken (sal_uInt16 nValue, sal_uInt8 nSpaces=0) |
void | AppendNumToken (double fValue, sal_uInt8 nSpaces=0) |
void | AppendBoolToken (bool bValue, sal_uInt8 nSpaces=0) |
void | AppendErrorToken (sal_uInt8 nErrCode, sal_uInt8 nSpaces=0) |
void | AppendMissingToken (sal_uInt8 nSpaces=0) |
void | AppendNameToken (sal_uInt16 nNameIdx, sal_uInt8 nSpaces=0) |
void | AppendMissingNameToken (const OUString &rName, sal_uInt8 nSpaces=0) |
void | AppendNameXToken (sal_uInt16 nExtSheet, sal_uInt16 nExtName, sal_uInt8 nSpaces=0) |
void | AppendMacroCallToken (const XclExpExtFuncData &rExtFuncData) |
void | AppendAddInCallToken (const XclExpExtFuncData &rExtFuncData) |
void | AppendEuroToolCallToken (const XclExpExtFuncData &rExtFuncData) |
void | AppendOperatorTokenId (sal_uInt8 nTokenId, const XclExpOperandListRef &rxOperands, sal_uInt8 nSpaces=0) |
void | AppendUnaryOperatorToken (sal_uInt8 nTokenId, sal_uInt8 nSpaces=0) |
void | AppendBinaryOperatorToken (sal_uInt8 nTokenId, bool bValType, sal_uInt8 nSpaces=0) |
void | AppendLogicalOperatorToken (sal_uInt16 nXclFuncIdx, sal_uInt8 nOpCount) |
void | AppendFuncToken (const XclExpFuncData &rFuncData) |
void | AppendParenToken (sal_uInt8 nOpenSpaces=0, sal_uInt8 nCloseSpaces=0) |
void | AppendJumpToken (XclExpFuncData &rFuncData, sal_uInt8 nAttrType) |
void | InsertZeros (sal_uInt16 nInsertPos, sal_uInt16 nInsertSize) |
void | Overwrite (sal_uInt16 nWriteToPos, sal_uInt16 nOffset) |
void | UpdateAttrGoto (sal_uInt16 nAttrPos) |
bool | IsSpaceToken (sal_uInt16 nPos) const |
void | RemoveTrailingParen () |
void | AppendExt (sal_uInt8 nData) |
void | AppendExt (sal_uInt8 nData, size_t nCount) |
void | AppendExt (sal_uInt16 nData) |
void | AppendExt (double fData) |
void | AppendExt (const OUString &rString) |
Private Attributes | |
XclExpCompConfigMap | maCfgMap |
XclFunctionProvider | maFuncProv |
Compiler configuration map for all formula types. More... | |
XclExpCompDataRef | mxData |
Excel function data provider. More... | |
std::vector< XclExpCompDataRef > | maDataStack |
Working data for current formula. More... | |
const XclBiff | meBiff |
Stack for working data, when compiler is called recursively. More... | |
const SCCOL | mnMaxAbsCol |
Cached BIFF version to save GetBiff() calls. More... | |
const SCROW | mnMaxAbsRow |
Maximum column index. More... | |
const SCCOL | mnMaxScCol |
Maximum row index. More... | |
const SCROW | mnMaxScRow |
Maximum column index in Calc itself. More... | |
const sal_uInt16 | mnMaxColMask |
Maximum row index in Calc itself. More... | |
const sal_uInt32 | mnMaxRowMask |
Mask to delete invalid bits in column fields. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from XclExpRoot | |
XclExpRoot (XclExpRootData &rExpRootData) | |
const XclExpRoot & | GetRoot () const |
Returns this root instance - for code readability in derived classes. More... | |
bool | IsRelUrl () const |
Returns true, if URLs should be stored relative to the document location. More... | |
sc::CompileFormulaContext & | GetCompileFormulaContext () const |
XclExpTabInfo & | GetTabInfo () const |
Returns the buffer for Calc->Excel sheet index conversion. More... | |
XclExpAddressConverter & | GetAddressConverter () const |
Returns the address converter. More... | |
XclExpFormulaCompiler & | GetFormulaCompiler () const |
Returns the formula compiler to produce formula token arrays. More... | |
XclExpProgressBar & | GetProgressBar () const |
Returns the export progress bar. More... | |
XclExpSst & | GetSst () const |
Returns the shared string table. More... | |
XclExpPalette & | GetPalette () const |
Returns the color buffer. More... | |
XclExpFontBuffer & | GetFontBuffer () const |
Returns the font buffer. More... | |
XclExpNumFmtBuffer & | GetNumFmtBuffer () const |
Returns the number format buffer. More... | |
XclExpXFBuffer & | GetXFBuffer () const |
Returns the cell formatting attributes buffer. More... | |
XclExpLinkManager & | GetGlobalLinkManager () const |
Returns the global link manager for defined names. More... | |
XclExpLinkManager & | GetLocalLinkManager () const |
Returns the local link manager for the current sheet. More... | |
XclExpNameManager & | GetNameManager () const |
Returns the buffer that contains internal defined names. More... | |
XclExpObjectManager & | GetObjectManager () const |
Returns the drawing object manager. More... | |
XclExpFilterManager & | GetFilterManager () const |
Returns the filter manager. More... | |
XclExpPivotTableManager & | GetPivotTableManager () const |
Returns the pivot table manager. More... | |
XclExpDxfs & | GetDxfs () const |
Returns the differential formatting list. More... | |
OStringBuffer & | GetStringBuf () const |
Clean and return the OStringBuffer. More... | |
XclExpXmlPivotTableManager & | GetXmlPivotTableManager () |
XclExpTablesManager & | GetTablesManager () |
void | InitializeConvert () |
Is called when export filter starts to create the Excel document (all BIFF versions). More... | |
void | InitializeGlobals () |
Is called when export filter starts to create the workbook global data (>=BIFF5). More... | |
void | InitializeTable (SCTAB nScTab) |
Is called when export filter starts to create data for a single sheet (all BIFF versions). More... | |
void | InitializeSave () |
Is called before export filter starts to write the records to the stream. More... | |
XclExpRecordRef | CreateRecord (sal_uInt16 nRecId) const |
Returns the reference to a record (or record list) representing a root object. More... | |
bool | IsDocumentEncrypted () const |
css::uno::Sequence< css::beans::NamedValue > | GetEncryptionData () const |
Protected Member Functions inherited from XclRoot | |
XclRoot (XclRootData &rRootData) | |
XclRoot (const XclRoot &rRoot) | |
virtual | ~XclRoot () |
XclRoot & | operator= (const XclRoot &rRoot) |
RootData & | GetOldRoot () const |
Returns old RootData struct. More... | |
XclBiff | GetBiff () const |
Returns the current BIFF version of the importer/exporter. More... | |
XclOutput | GetOutput () const |
Returns the current output format of the importer/exporter. More... | |
bool | IsImport () const |
Returns true, if currently a document is imported. More... | |
rtl_TextEncoding | GetTextEncoding () const |
Returns the text encoding to import/export byte strings. More... | |
LanguageType | GetSysLanguage () const |
Returns the system language, i.e. More... | |
LanguageType | GetDocLanguage () const |
Returns the document language. More... | |
LanguageType | GetUILanguage () const |
Returns the UI language. More... | |
sal_Int16 | GetDefApiScript () const |
Returns the default script type, e.g. More... | |
tools::Long | GetCharWidth () const |
Returns the width of the '0' character (default font) for the current printer (twips). More... | |
tools::Long | GetSpaceWidth () const |
bool | IsInGlobals () const |
Returns the current Calc sheet index. More... | |
SCTAB | GetCurrScTab () const |
Returns the current Calc sheet index. More... | |
sal_Int32 | GetHmmFromPixelX (double fPixelX) const |
Calculates the width of the passed number of pixels in 1/100 mm. More... | |
sal_Int32 | GetHmmFromPixelY (double fPixelY) const |
Calculates the height of the passed number of pixels in 1/100 mm. More... | |
SfxMedium & | GetMedium () const |
Returns the medium to import from. More... | |
const OUString & | GetDocUrl () const |
Returns the document URL of the imported/exported file. More... | |
const OUString & | GetBasePath () const |
Returns the base path of the imported/exported file. More... | |
const OUString & | GetUserName () const |
Returns the current user name. More... | |
css::uno::Sequence< css::beans::NamedValue > | RequestEncryptionData (::comphelper::IDocPasswordVerifier &rVerifier) const |
Requests and verifies a password from the medium or the user. More... | |
const tools::SvRef< SotStorage > & | GetRootStorage () const |
Returns the OLE2 root storage of the imported/exported file. More... | |
bool | HasVbaStorage () const |
Returns true, if the document contains a VBA storage. More... | |
tools::SvRef< SotStorage > | OpenStorage (tools::SvRef< SotStorage > const &xStrg, const OUString &rStrgName) const |
Tries to open a storage as child of the specified storage for reading or writing. More... | |
tools::SvRef< SotStorage > | OpenStorage (const OUString &rStrgName) const |
Tries to open a storage as child of the root storage for reading or writing. More... | |
tools::SvRef< SotStorageStream > | OpenStream (tools::SvRef< SotStorage > const &xStrg, const OUString &rStrmName) const |
Tries to open a new stream in the specified storage for reading or writing. More... | |
tools::SvRef< SotStorageStream > | OpenStream (const OUString &rStrmName) const |
Tries to open a new stream in the root storage for reading or writing. More... | |
ScDocument & | GetDoc () const |
Returns reference to the destination document (import) or source document (export). More... | |
SfxObjectShell * | GetDocShell () const |
Returns the object shell of the Calc document. More... | |
ScModelObj * | GetDocModelObj () const |
Returns the object model of the Calc document. More... | |
OutputDevice * | GetPrinter () const |
Returns pointer to the printer of the Calc document. More... | |
ScStyleSheetPool & | GetStyleSheetPool () const |
Returns the style sheet pool of the Calc document. More... | |
ScRangeName & | GetNamedRanges () const |
Returns the defined names container of the Calc document. More... | |
SdrPage * | GetSdrPage (SCTAB nScTab) const |
Returns the drawing layer page of the passed sheet, if present. More... | |
SvNumberFormatter & | GetFormatter () const |
Returns the number formatter of the Calc document. More... | |
DateTime | GetNullDate () const |
Returns the null date of the current number formatter. More... | |
sal_uInt16 | GetBaseYear () const |
Returns the base year depending on the current null date (1900 or 1904). More... | |
double | GetDoubleFromDateTime (const DateTime &rDateTime) const |
Converts a date/time value to a floating-point value. More... | |
DateTime | GetDateTimeFromDouble (double fValue) const |
Converts a floating-point value to a date/time value. More... | |
ScEditEngineDefaulter & | GetEditEngine () const |
Returns the edit engine for import/export of rich strings etc. More... | |
ScHeaderEditEngine & | GetHFEditEngine () const |
Returns the edit engine for import/export of headers/footers. More... | |
EditEngine & | GetDrawEditEngine () const |
Returns the edit engine for import/export of drawing text boxes. More... | |
XclFontPropSetHelper & | GetFontPropSetHelper () const |
Returns the property set helper for fonts. More... | |
XclChPropSetHelper & | GetChartPropSetHelper () const |
Returns the property set helper for the chart filters. More... | |
ScExtDocOptions & | GetExtDocOptions () const |
Returns the extended document options. More... | |
XclTracer & | GetTracer () const |
Returns the filter tracer. More... | |
const ScAddress & | GetScMaxPos () const |
Returns the highest possible cell address in a Calc document. More... | |
const ScAddress & | GetXclMaxPos () const |
Returns the highest possible cell address in an Excel document (using current BIFF version). More... | |
const ScAddress & | GetMaxPos () const |
Returns the highest possible cell address valid in Calc and Excel (using current BIFF version). More... | |
void | SetDocLanguage (LanguageType eLang) |
Sets the document language. More... | |
void | SetUILanguage (LanguageType eLang) |
Sets the UI language, i.e. More... | |
void | SetTextEncoding (rtl_TextEncoding eTextEnc) |
Sets the text encoding to import/export byte strings. More... | |
void | SetCharWidth (const XclFontData &rFontData) |
Sets the width of the '0' - '9' digit character as well as the ' ' space char (using the default font) for the current printer (twips). More... | |
void | SetCurrScTab (SCTAB nScTab) |
Sets the current Calc sheet index. More... | |
void | IncCurrScTab () |
Increases the current Calc sheet index by 1. More... | |
Static Protected Member Functions inherited from XclExpRoot | |
static css::uno::Sequence< css::beans::NamedValue > | GenerateEncryptionData (std::u16string_view aPass) |
static css::uno::Sequence< css::beans::NamedValue > | GenerateDefaultEncryptionData () |
Static Protected Member Functions inherited from XclRoot | |
static OUString | GetDefaultPassword () |
Returns the default password used for stream encryption. More... | |
Static Protected Member Functions inherited from XclTokenArrayHelper | |
static sal_uInt8 | GetTokenId (sal_uInt8 nBaseId, sal_uInt8 nTokenClass) |
Returns the classified token ID from a base ID and the token class. More... | |
static sal_uInt8 | GetTokenClass (sal_uInt8 nTokenId) |
Returns the token class of the passed token ID. More... | |
static void | ChangeTokenClass (sal_uInt8 &rnTokenId, sal_uInt8 nTokenClass) |
Changes the token class in the passed classified token ID. More... | |
static bool | GetTokenString (OUString &rString, const ::formula::FormulaToken &rScToken) |
Tries to extract a string from the passed token. More... | |
static bool | GetString (OUString &rString, const ScTokenArray &rScTokArr) |
Parses the passed formula and tries to find a single string token, i.e. More... | |
static bool | GetStringList (OUString &rStringList, const ScTokenArray &rScTokArr, sal_Unicode cSep) |
Parses the passed formula and tries to find a string token list, i.e. More... | |
static void | ConvertStringToList (ScTokenArray &rScTokArr, svl::SharedStringPool &rSPool, sal_Unicode cStringSep) |
Tries to convert a formula that consists of a single string token to a list of strings. More... | |
static bool | GetMultipleOpRefs (const ScDocument &rDoc, XclMultipleOpRefs &rRefs, const ScTokenArray &rScTokArr, const ScAddress &rScPos) |
Parses the passed formula and tries to extract references of a multiple operation. More... | |
Implementation class of the export formula compiler.
Definition at line 297 of file xeformula.cxx.
|
private |
Definition at line 456 of file xeformula.cxx.
|
private |
Definition at line 457 of file xeformula.cxx.
|
explicit |
Definition at line 473 of file xeformula.cxx.
|
private |
Definition at line 1047 of file xeformula.cxx.
References AppendBinaryOperatorToken(), EXC_TOKID_NONE, GetNextToken(), MulDivTerm(), and mxData.
Referenced by ConcatTerm().
|
private |
Definition at line 1000 of file xeformula.cxx.
References AppendLogicalOperatorToken(), CompareTerm(), EXC_FUNC_MAXPARAM, EXC_FUNCID_AND, GetNextToken(), mxData, ocAnd, and RemoveTrailingParen().
Referenced by OrTerm().
|
private |
Definition at line 2313 of file xeformula.cxx.
References EightBitLength, XclExpRoot::GetRoot(), and mxData.
|
private |
Definition at line 2308 of file xeformula.cxx.
References mxData.
|
private |
Definition at line 2298 of file xeformula.cxx.
References mxData.
|
private |
Definition at line 2303 of file xeformula.cxx.
References mxData.
|
private |
Definition at line 2288 of file xeformula.cxx.
References mxData.
Referenced by AppendAddress(), AppendBoolToken(), AppendErrorToken(), AppendFuncToken(), AppendIntToken(), AppendJumpToken(), AppendLogicalOperatorToken(), AppendNameToken(), AppendNameXToken(), AppendNumToken(), AppendOperandTokenId(), AppendOperatorTokenId(), AppendParenToken(), AppendRange(), AppendSpaceToken(), CreateSpecialRefFormula(), ProcessCellRef(), ProcessExternalCellRef(), ProcessExternalRangeRef(), ProcessMatrix(), ProcessRangeRef(), and ProcessString().
|
private |
Definition at line 2293 of file xeformula.cxx.
|
private |
Definition at line 2424 of file xeformula.cxx.
References AppendMacroCallToken(), AppendNameXToken(), ScGlobal::GetAddInCollection(), ScUnoAddInCollection::GetExcelName(), XclRoot::GetUILanguage(), and mxData.
Referenced by AppendDefaultParam().
|
private |
Definition at line 2318 of file xeformula.cxx.
References Append(), EXC_BIFF5, meBiff, XclAddress::mnCol, and XclAddress::mnRow.
Referenced by ProcessCellRef(), and ProcessExternalCellRef().
|
private |
Definition at line 2462 of file xeformula.cxx.
References AppendOperatorTokenId(), EXC_PARAMCONV_RPO, and PopOperandPos().
Referenced by AddSubTerm(), CompareTerm(), ConcatTerm(), FinishFunction(), FinishParam(), IntersectTerm(), ListTerm(), MulDivTerm(), PowTerm(), and RangeTerm().
|
private |
Definition at line 2373 of file xeformula.cxx.
References Append(), AppendOperandTokenId(), EXC_TOK_BOOL_FALSE, EXC_TOK_BOOL_TRUE, and EXC_TOKID_BOOL.
Referenced by AppendTrailingParam(), and ProcessBoolean().
|
private |
Definition at line 1674 of file xeformula.cxx.
References AppendAddInCallToken(), AppendEuroToolCallToken(), AppendMacroCallToken(), AppendMissingToken(), AppendNameToken(), EXC_OUTPUT_XML_2007, FinishParam(), XclRoot::GetOutput(), ocEuroConvert, ocExternal, ocMacro, PrepareParam(), and SAL_WARN.
Referenced by AppendTrailingParam(), and ProcessParam().
Definition at line 2379 of file xeformula.cxx.
References Append(), AppendOperandTokenId(), and EXC_TOKID_ERR.
Referenced by AppendNameToken(), CreateErrorFormula(), CreateFormula(), FinalizeFormula(), ProcessBad(), ProcessCellRef(), ProcessDdeLink(), ProcessDefinedName(), ProcessExternalCellRef(), ProcessExternalName(), ProcessExternalRangeRef(), ProcessMatrix(), and ProcessRangeRef().
|
private |
Definition at line 2439 of file xeformula.cxx.
References AppendMacroCallToken(), AppendNameXToken(), and mxData.
Referenced by AppendDefaultParam().
|
private |
Definition at line 2600 of file xeformula.cxx.
References EightBitLength, EXC_BIFF8, XclExpRoot::GetRoot(), meBiff, mxData, and NONE.
|
private |
Definition at line 2595 of file xeformula.cxx.
References mxData.
|
private |
Definition at line 2590 of file xeformula.cxx.
References mxData.
|
private |
|
private |
Definition at line 2585 of file xeformula.cxx.
|
private |
Definition at line 2480 of file xeformula.cxx.
References Append(), AppendOperatorTokenId(), EXC_FUNCID_SUM, EXC_TOK_ATTR_SUM, EXC_TOKID_ATTR, EXC_TOKID_FUNC, EXC_TOKID_FUNCVAR, and XclTokenArrayHelper::GetTokenId().
Referenced by FinishFunction().
|
private |
Definition at line 2361 of file xeformula.cxx.
References Append(), AppendOperandTokenId(), EXC_TOKID_INT, and nValue.
Referenced by AppendTrailingParam(), PrepareFunction(), PrepareParam(), and ProcessDouble().
|
private |
Definition at line 2515 of file xeformula.cxx.
References Append(), EXC_TOKID_ATTR, and GetSize().
Referenced by FinishFunction(), and PrepareParam().
|
private |
Definition at line 2470 of file xeformula.cxx.
References Append(), AppendOperatorTokenId(), EXC_PARAMCONV_RPX, EXC_TOKCLASS_VAL, EXC_TOKID_FUNCVAR, XclTokenArrayHelper::GetTokenId(), and PopOperandPos().
|
private |
Definition at line 2418 of file xeformula.cxx.
References AppendNameToken(), XclExpRoot::GetNameManager(), and XclExpNameManager::InsertMacroCall().
Referenced by AppendAddInCallToken(), AppendDefaultParam(), and AppendEuroToolCallToken().
|
private |
Definition at line 2402 of file xeformula.cxx.
References AppendNameToken(), XclExpRoot::GetNameManager(), and XclExpNameManager::InsertRawName().
Referenced by ProcessExternal().
|
private |
Definition at line 2385 of file xeformula.cxx.
References AppendOperandTokenId(), and EXC_TOKID_MISSARG.
Referenced by AppendDefaultParam(), AppendTrailingParam(), ProcessMissing(), and ProcessParam().
|
private |
Definition at line 2390 of file xeformula.cxx.
References Append(), AppendErrorToken(), AppendOperandTokenId(), EXC_BIFF5, EXC_ERR_NAME, EXC_TOKCLASS_REF, EXC_TOKID_NAME, XclTokenArrayHelper::GetTokenId(), and meBiff.
Referenced by AppendDefaultParam(), AppendMacroCallToken(), AppendMissingNameToken(), and ProcessDefinedName().
|
private |
Definition at line 2408 of file xeformula.cxx.
References Append(), AppendOperandTokenId(), EXC_BIFF5, EXC_TOKCLASS_REF, EXC_TOKID_NAMEX, XclTokenArrayHelper::GetTokenId(), and meBiff.
Referenced by AppendAddInCallToken(), AppendEuroToolCallToken(), CreateNameXFormula(), ProcessDdeLink(), ProcessDefinedName(), and ProcessExternalName().
|
private |
Definition at line 2367 of file xeformula.cxx.
References Append(), AppendOperandTokenId(), and EXC_TOKID_NUM.
Referenced by PrepareFunction(), and ProcessDouble().
Definition at line 2354 of file xeformula.cxx.
References Append(), AppendSpaceToken(), EXC_TOK_ATTR_SPACE_SP, GetSize(), and PushOperandPos().
Referenced by AppendBoolToken(), AppendErrorToken(), AppendIntToken(), AppendMissingToken(), AppendNameToken(), AppendNameXToken(), AppendNumToken(), CreateSpecialRefFormula(), ProcessCellRef(), ProcessExternalCellRef(), ProcessExternalRangeRef(), ProcessMatrix(), ProcessRangeRef(), and ProcessString().
|
private |
Definition at line 2448 of file xeformula.cxx.
References Append(), AppendSpaceToken(), EXC_TOK_ATTR_SPACE_SP, GetSize(), and PushOperatorPos().
Referenced by AppendBinaryOperatorToken(), AppendFuncToken(), AppendLogicalOperatorToken(), and AppendUnaryOperatorToken().
|
private |
Definition at line 2508 of file xeformula.cxx.
References Append(), AppendSpaceToken(), EXC_TOK_ATTR_SPACE_SP_CLOSE, EXC_TOK_ATTR_SPACE_SP_OPEN, and EXC_TOKID_PAREN.
Referenced by FinishFunction(), FinishParam(), ListTerm(), and ProcessParentheses().
|
private |
Definition at line 2327 of file xeformula.cxx.
References Append(), EXC_BIFF5, XclRange::maFirst, XclRange::maLast, meBiff, XclAddress::mnCol, and XclAddress::mnRow.
Referenced by ProcessExternalRangeRef(), and ProcessRangeRef().
Definition at line 2343 of file xeformula.cxx.
References Append(), EXC_TOK_ATTR_SPACE, EXC_TOKID_ATTR, nCount, and nType.
Referenced by AppendOperandTokenId(), AppendOperatorTokenId(), AppendParenToken(), and FinishFunction().
|
private |
Definition at line 1721 of file xeformula.cxx.
References AppendBoolToken(), AppendDefaultParam(), AppendIntToken(), AppendMissingToken(), FinishParam(), ocExternal, ocGammaDist, ocIf, ocIndex, ocLogInv, ocLogNormDist, ocMacro, ocNormDist, ocPoissonDist, ocRound, ocRoundDown, ocRoundUp, and PrepareParam().
Referenced by FinishFunction().
|
private |
Definition at line 2455 of file xeformula.cxx.
References AppendOperatorTokenId(), EXC_PARAMCONV_RPO, and PopOperandPos().
Referenced by UnaryPostTerm(), and UnaryPreTerm().
|
private |
Definition at line 1017 of file xeformula.cxx.
References AppendBinaryOperatorToken(), ConcatTerm(), EXC_TOKID_NONE, GetNextToken(), and mxData.
Referenced by AndTerm().
|
private |
Definition at line 1032 of file xeformula.cxx.
References AddSubTerm(), AppendBinaryOperatorToken(), EXC_TOKID_NONE, GetNextToken(), and mxData.
Referenced by CompareTerm().
|
private |
Definition at line 1946 of file xeformula.cxx.
References ConvertRefData(), ScSingleRefData::IsColDeleted(), ScSingleRefData::IsRowDeleted(), XclRange::maFirst, XclRange::maLast, XclAddress::mnCol, XclAddress::mnRow, ScComplexRefData::Ref1, and ScComplexRefData::Ref2.
|
private |
Definition at line 1891 of file xeformula.cxx.
References ScAddress::Col(), ScSingleRefData::Col(), EXC_BIFF5, EXC_BIFF8, EXC_TOK_NLR_REL, EXC_TOK_REF_COLREL, EXC_TOK_REF_ROWREL, XclRoot::GetDoc(), XclExpRoot::GetRoot(), ScDocument::GetSheetLimits(), ScSingleRefData::IsColRel(), ScSingleRefData::IsRowRel(), meBiff, XclAddress::mnCol, mnMaxAbsCol, mnMaxAbsRow, mnMaxColMask, mnMaxRowMask, mnMaxScCol, mnMaxScRow, XclAddress::mnRow, mxData, ScAddress::Row(), ScSingleRefData::Row(), set_flag(), ScSingleRefData::SetAddress(), ScAddress::SetCol(), ScSingleRefData::SetColDeleted(), ScAddress::SetRow(), ScSingleRefData::SetRowDeleted(), and ScSingleRefData::toAbs().
Referenced by ConvertRefData(), ProcessCellRef(), ProcessExternalCellRef(), ProcessExternalRangeRef(), and ProcessRangeRef().
XclTokenArrayRef XclExpFmlaCompImpl::CreateErrorFormula | ( | sal_uInt8 | nErrCode | ) |
Creates a single error token containing the passed error code.
Definition at line 531 of file xeformula.cxx.
References AppendErrorToken(), CreateTokenArray(), EXC_FMLATYPE_NAME, and Init().
XclTokenArrayRef XclExpFmlaCompImpl::CreateFormula | ( | XclFormulaType | eType, |
const ScTokenArray & | rScTokArr, | ||
const ScAddress * | pScBasePos = nullptr , |
||
XclExpRefLog * | pRefLog = nullptr |
||
) |
Creates an Excel token array from the passed Calc token array.
Definition at line 489 of file xeformula.cxx.
References AppendErrorToken(), CreateTokenArray(), eType, Expression(), FinalizeFormula(), formula::FormulaTokenArray::GetCodeError(), GetNextToken(), XclTools::GetXclErrorCode(), Init(), mxData, ocStop, and RecalcTokenClasses().
XclTokenArrayRef XclExpFmlaCompImpl::CreateNameXFormula | ( | sal_uInt16 | nExtSheet, |
sal_uInt16 | nExtName | ||
) |
Creates a single tNameXR token for a reference to an external name.
Definition at line 547 of file xeformula.cxx.
References AppendNameXToken(), CreateTokenArray(), EXC_FMLATYPE_NAME, and Init().
XclTokenArrayRef XclExpFmlaCompImpl::CreateSpecialRefFormula | ( | sal_uInt8 | nTokenId, |
const XclAddress & | rXclPos | ||
) |
Creates a single token for a special cell reference.
Definition at line 538 of file xeformula.cxx.
References Append(), AppendOperandTokenId(), CreateTokenArray(), EXC_FMLATYPE_NAME, Init(), XclAddress::mnCol, and XclAddress::mnRow.
|
private |
Definition at line 800 of file xeformula.cxx.
References maDataStack, and mxData.
Referenced by CreateErrorFormula(), CreateFormula(), CreateNameXFormula(), and CreateSpecialRefFormula().
|
private |
Definition at line 954 of file xeformula.cxx.
References mxData, and OrTerm().
Referenced by CreateFormula(), ProcessParam(), and ProcessParentheses().
|
private |
Definition at line 1190 of file xeformula.cxx.
References GetNextToken(), mxData, ocBad, ocDde, ocFalse, ocMissing, ocName, ocNone, ocOpen, ocTrue, ProcessBad(), ProcessBoolean(), ProcessCellRef(), ProcessDdeLink(), ProcessDefinedName(), ProcessDouble(), ProcessExternal(), ProcessExternalCellRef(), ProcessExternalName(), ProcessExternalRangeRef(), ProcessFunction(), ProcessMatrix(), ProcessMissing(), ProcessParentheses(), ProcessRangeRef(), ProcessString(), svDouble, svDoubleRef, svExternal, svExternalDoubleRef, svExternalName, svExternalSingleRef, svMatrix, svSingleRef, svString, and svUnknown.
Referenced by RangeTerm().
|
private |
Definition at line 770 of file xeformula.cxx.
References AppendErrorToken(), EXC_ERR_NA, EXC_TOK_ATTR_VOLATILE, EXC_TOKARR_MAXLEN, EXC_TOKID_ATTR, InsertZeros(), IsSpaceToken(), and mxData.
Referenced by CreateFormula().
|
private |
Definition at line 1558 of file xeformula.cxx.
References InsertZeros(), Overwrite(), and UpdateAttrGoto().
Referenced by FinishFunction().
|
private |
Definition at line 1476 of file xeformula.cxx.
References AppendBinaryOperatorToken(), AppendFuncToken(), AppendJumpToken(), AppendParenToken(), AppendSpaceToken(), AppendTrailingParam(), EXC_OUTPUT_XML_2007, EXC_TOK_ATTR_GOTO, EXC_TOK_ATTR_SPACE_SP, EXC_TOK_ATTR_SPACE_SP_CLOSE, EXC_TOKID_DIV, EXC_TOKID_SUB, FinishChooseFunction(), FinishIfFunction(), XclRoot::GetOutput(), mxData, ocArcCot, ocChoose, ocCosecant, ocCosecantHyp, ocCot, ocCotHyp, ocIf, ocSecant, and ocSecantHyp.
Referenced by ProcessFunction().
|
private |
Definition at line 1544 of file xeformula.cxx.
References Overwrite(), and UpdateAttrGoto().
Referenced by FinishFunction().
|
private |
Definition at line 1654 of file xeformula.cxx.
References AppendBinaryOperatorToken(), AppendParenToken(), EXC_TOKID_DIV, ocArcCotHyp, and PopOperandPos().
Referenced by AppendDefaultParam(), AppendTrailingParam(), and ProcessParam().
|
private |
Definition at line 562 of file xeformula.cxx.
References eType, and maCfgMap.
Referenced by Init(), and Is3DRefOnly().
|
private |
Definition at line 1956 of file xeformula.cxx.
References mxData.
Referenced by ProcessCellRef(), ProcessExternalCellRef(), ProcessExternalRangeRef(), and ProcessRangeRef().
|
private |
|
private |
Definition at line 854 of file xeformula.cxx.
References GetNextToken().
Referenced by AddSubTerm(), AndTerm(), CompareTerm(), ConcatTerm(), CreateFormula(), Factor(), GetNextToken(), IntersectTerm(), ListTerm(), MulDivTerm(), OrTerm(), PowTerm(), ProcessBoolean(), ProcessDdeLink(), ProcessFunction(), ProcessParentheses(), RangeTerm(), SkipExpression(), UnaryPostTerm(), and UnaryPreTerm().
|
private |
Definition at line 841 of file xeformula.cxx.
References GetNextRawToken(), ocSpaces, and ocWhitespace.
|
private |
Definition at line 1849 of file xeformula.cxx.
References XclRoot::GetDoc(), XclExpRoot::GetRoot(), ScSingleRefData::IsTabDeleted(), ScSingleRefData::IsTabRel(), mxData, SCTAB_INVALID, ScAddress::Tab(), ScSingleRefData::Tab(), and ScSingleRefData::toAbs().
Referenced by ProcessCellRef(), and ProcessRangeRef().
|
inlineprivate |
Definition at line 321 of file xeformula.cxx.
References mxData.
Referenced by AppendJumpToken(), AppendOperandTokenId(), AppendOperatorTokenId(), ListTerm(), RecalcTokenClass(), RemoveTrailingParen(), and UpdateAttrGoto().
|
private |
Definition at line 569 of file xeformula.cxx.
References eType, GetConfigForType(), maDataStack, and mxData.
Referenced by CreateErrorFormula(), CreateFormula(), CreateNameXFormula(), CreateSpecialRefFormula(), and Init().
|
private |
Definition at line 578 of file xeformula.cxx.
References ScTokenArray::Clone(), eType, EXC_FMLATYPE_CELL, EXC_FMLATYPE_CHART, EXC_FMLATYPE_MATRIX, EXC_FMLATYPE_SHARED, EXC_OUTPUT_XML_2007, XclRoot::GetDoc(), XclExpRoot::GetGlobalLinkManager(), XclExpRoot::GetLocalLinkManager(), XclRoot::GetOutput(), Init(), ScCompiler::MoveRelWrap(), and mxData.
|
private |
Definition at line 2525 of file xeformula.cxx.
References mxData.
Referenced by FinalizeFormula(), FinishChooseFunction(), and ListTerm().
|
private |
Definition at line 1158 of file xeformula.cxx.
References AppendBinaryOperatorToken(), EXC_TOKID_NONE, GetNextToken(), mxData, and RangeTerm().
Referenced by ListTerm().
bool XclExpFmlaCompImpl::Is3DRefOnly | ( | XclFormulaType | eType | ) | const |
Returns true, if the passed formula type allows 3D references only.
Definition at line 554 of file xeformula.cxx.
References eType, and GetConfigForType().
bool XclExpFmlaCompImpl::IsRef2D | ( | const ScComplexRefData & | rRefData, |
bool | bCheck3DFlag | ||
) | const |
Definition at line 1886 of file xeformula.cxx.
References IsRef2D(), ScComplexRefData::Ref1, and ScComplexRefData::Ref2.
bool XclExpFmlaCompImpl::IsRef2D | ( | const ScSingleRefData & | rRefData, |
bool | bCheck3DFlag | ||
) | const |
Definition at line 1864 of file xeformula.cxx.
References EXC_FMLATYPE_CONDFMT, XclRoot::GetCurrScTab(), ScSingleRefData::IsFlag3D(), ScSingleRefData::IsTabDeleted(), ScSingleRefData::IsTabRel(), mxData, and ScSingleRefData::Tab().
Referenced by IsRef2D(), ProcessCellRef(), and ProcessRangeRef().
|
private |
Definition at line 2562 of file xeformula.cxx.
References EXC_TOK_ATTR_SPACE, EXC_TOKID_ATTR, o3tl::make_unsigned(), mxData, and nPos.
Referenced by FinalizeFormula(), and RemoveTrailingParen().
|
private |
Definition at line 1124 of file xeformula.cxx.
References AppendBinaryOperatorToken(), AppendParenToken(), EXC_PARAMCONV_VAL, EXC_TOKCLASS_REF, EXC_TOKID_MEMFUNC, EXC_TOKID_NONE, GetNextToken(), GetSize(), XclTokenArrayHelper::GetTokenId(), InsertZeros(), IntersectTerm(), mxData, Overwrite(), PopOperandPos(), and PushOperatorPos().
Referenced by UnaryPreTerm().
|
private |
Definition at line 1062 of file xeformula.cxx.
References AppendBinaryOperatorToken(), EXC_TOKID_NONE, GetNextToken(), mxData, and PowTerm().
Referenced by AddSubTerm().
|
private |
Definition at line 983 of file xeformula.cxx.
References AndTerm(), AppendLogicalOperatorToken(), EXC_FUNC_MAXPARAM, EXC_FUNCID_OR, GetNextToken(), mxData, ocOr, and RemoveTrailingParen().
Referenced by Expression().
|
private |
Definition at line 2546 of file xeformula.cxx.
References o3tl::make_unsigned(), and mxData.
Referenced by FinishChooseFunction(), FinishIfFunction(), ListTerm(), and UpdateAttrGoto().
|
private |
Definition at line 828 of file xeformula.cxx.
References XclTokenArrayIterator::Get(), and mxData.
Referenced by ProcessExternal().
|
private |
Definition at line 2245 of file xeformula.cxx.
References mxData.
Referenced by AppendBinaryOperatorToken(), AppendLogicalOperatorToken(), AppendUnaryOperatorToken(), FinishParam(), ListTerm(), and RecalcTokenClasses().
|
private |
Definition at line 1077 of file xeformula.cxx.
References AppendBinaryOperatorToken(), EXC_TOKID_NONE, GetNextToken(), mxData, and UnaryPostTerm().
Referenced by MulDivTerm().
|
private |
Definition at line 1453 of file xeformula.cxx.
References AppendIntToken(), AppendNumToken(), EXC_OUTPUT_XML_2007, XclRoot::GetOutput(), ocArcCot, ocCosecant, ocCosecantHyp, ocCot, ocCotHyp, ocSecant, and ocSecantHyp.
Referenced by ProcessFunction().
|
private |
Definition at line 1617 of file xeformula.cxx.
References AppendIntToken(), AppendJumpToken(), EXC_TOK_ATTR_CHOOSE, EXC_TOK_ATTR_GOTO, EXC_TOK_ATTR_IF, ocArcCotHyp, ocChoose, and ocIf.
Referenced by AppendDefaultParam(), AppendTrailingParam(), and ProcessParam().
|
private |
Definition at line 1248 of file xeformula.cxx.
References AppendErrorToken(), and EXC_ERR_NA.
Referenced by Factor().
|
private |
Definition at line 1260 of file xeformula.cxx.
References AppendBoolToken(), GetNextToken(), mxData, ocClose, ocOpen, and ocTrue.
Referenced by Factor().
|
private |
Definition at line 1966 of file xeformula.cxx.
References Append(), AppendAddress(), AppendErrorToken(), AppendOperandTokenId(), ConvertRefData(), EXC_BIFF5, EXC_BIFF8, EXC_ERR_REF, EXC_TOK_NLR_COLV, EXC_TOK_NLR_ROWV, EXC_TOKCLASS_REF, EXC_TOKID_NLR, EXC_TOKID_REF, EXC_TOKID_REF3D, EXC_TOKID_REFERR, EXC_TOKID_REFERR3D, EXC_TOKID_REFN, GetNewRefLogEntry(), GetScTab(), XclTokenArrayHelper::GetTokenId(), ScSingleRefData::IsColRel(), IsRef2D(), ScSingleRefData::IsRowRel(), meBiff, mxData, ocColRowName, and ScAddress::UNINITIALIZED.
Referenced by Factor().
|
private |
Definition at line 1280 of file xeformula.cxx.
References AppendErrorToken(), AppendNameXToken(), EXC_ERR_NA, GetNextToken(), mxData, ocClose, ocOpen, and ocSep.
Referenced by Factor().
|
private |
Definition at line 2143 of file xeformula.cxx.
References AppendErrorToken(), AppendNameToken(), AppendNameXToken(), EXC_ERR_NAME, EXC_EXTSH_OWNDOC, XclRoot::GetCurrScTab(), XclExpRoot::GetNameManager(), XclExpNameManager::GetScTab(), XclExpNameManager::InsertName(), XclExpNameManager::IsVolatile(), mxData, and SCTAB_GLOBAL.
Referenced by Factor().
|
private |
Definition at line 1226 of file xeformula.cxx.
References AppendIntToken(), and AppendNumToken().
Referenced by Factor().
|
private |
Definition at line 1302 of file xeformula.cxx.
References AppendMissingNameToken(), ocOpen, PeekNextRawToken(), and ProcessFunction().
Referenced by Factor().
|
private |
Definition at line 2069 of file xeformula.cxx.
References Append(), AppendAddress(), AppendErrorToken(), AppendOperandTokenId(), ConvertRefData(), EXC_BIFF5, EXC_ERR_REF, EXC_TOKCLASS_REF, EXC_TOKID_REF3D, EXC_TOKID_REFERR3D, XclRoot::GetDoc(), GetNewRefLogEntry(), XclExpRoot::GetRoot(), XclTokenArrayHelper::GetTokenId(), meBiff, mxData, ScSingleRefData::toAbs(), and ScAddress::UNINITIALIZED.
Referenced by Factor().
|
private |
Definition at line 2173 of file xeformula.cxx.
References aName, AppendErrorToken(), AppendNameXToken(), EXC_ERR_NAME, XclRoot::GetDoc(), ScExternalRefManager::getExternalFileName(), ScDocument::GetExternalRefManager(), ScExternalRefManager::getRangeNameTokens(), XclExpRoot::GetRoot(), mxData, svExternalDoubleRef, svExternalSingleRef, ScSingleRefData::toAbs(), and ScComplexRefData::toAbs().
Referenced by Factor().
|
private |
Definition at line 2105 of file xeformula.cxx.
References Append(), AppendErrorToken(), AppendOperandTokenId(), AppendRange(), ConvertRefData(), EXC_BIFF5, EXC_ERR_REF, EXC_TOKCLASS_REF, EXC_TOKID_AREA3D, EXC_TOKID_AREAERR3D, XclRoot::GetDoc(), GetNewRefLogEntry(), XclExpRoot::GetRoot(), XclTokenArrayHelper::GetTokenId(), meBiff, mxData, ScComplexRefData::Ref1, ScComplexRefData::Ref2, ScSingleRefData::Tab(), ScComplexRefData::toAbs(), and ScAddress::UNINITIALIZED.
Referenced by Factor().
|
private |
Definition at line 1385 of file xeformula.cxx.
References EXC_FUNC_MAXPARAM, FinishFunction(), XclFunctionInfo::GetAddInEquivalentFuncName(), XclFunctionProvider::GetFuncInfoFromOpCode(), XclFunctionInfo::GetMacroFuncName(), formula::FormulaCompiler::GetNativeSymbol(), GetNextToken(), XclFunctionInfo::IsAddInEquivalent(), XclFunctionInfo::IsMacroFunc(), maFuncProv, mxData, ocClose, ocMacro, ocOpen, ocSep, PrepareFunction(), ProcessParam(), and SC_OPCODE_START_NO_PAR.
Referenced by Factor(), and ProcessExternal().
|
private |
Definition at line 1315 of file xeformula.cxx.
References Append(), AppendErrorToken(), AppendExt(), AppendOperandTokenId(), aStr, EXC_BIFF8, EXC_CACHEDVAL_BOOL, EXC_CACHEDVAL_DOUBLE, EXC_CACHEDVAL_EMPTY, EXC_CACHEDVAL_ERROR, EXC_CACHEDVAL_STRING, EXC_ERR_NA, EXC_TOKCLASS_ARR, EXC_TOKID_ARRAY, ScMatrixValue::fVal, ScMatrix::Get(), ScMatrixValue::GetBoolean(), ScMatrix::GetDimensions(), ScMatrixValue::GetError(), svl::SharedString::getString(), ScMatrixValue::GetString(), XclTokenArrayHelper::GetTokenId(), XclTools::GetXclErrorCode(), ScMatrix::IsBooleanType(), ScMatrix::IsValueType(), meBiff, mxData, and ScMatrixValue::nType.
Referenced by Factor().
|
private |
Definition at line 1243 of file xeformula.cxx.
References AppendMissingToken().
Referenced by Factor().
|
private |
Definition at line 1586 of file xeformula.cxx.
References AppendDefaultParam(), AppendMissingToken(), Expression(), FinishParam(), mxData, ocClose, ocSep, PrepareParam(), and SkipExpression().
Referenced by ProcessFunction().
|
private |
Definition at line 1253 of file xeformula.cxx.
References AppendParenToken(), Expression(), GetNextToken(), mxData, and ocClose.
Referenced by Factor().
|
private |
Definition at line 2024 of file xeformula.cxx.
References Append(), AppendErrorToken(), AppendOperandTokenId(), AppendRange(), ConvertRefData(), EXC_BIFF5, EXC_ERR_REF, EXC_TOKCLASS_REF, EXC_TOKID_AREA, EXC_TOKID_AREA3D, EXC_TOKID_AREAERR, EXC_TOKID_AREAERR3D, EXC_TOKID_AREAN, GetNewRefLogEntry(), GetScTab(), XclTokenArrayHelper::GetTokenId(), IsRef2D(), meBiff, mxData, ScComplexRefData::Ref1, ScComplexRefData::Ref2, and ScAddress::UNINITIALIZED.
Referenced by Factor().
|
private |
Definition at line 1237 of file xeformula.cxx.
References Append(), AppendOperandTokenId(), and EXC_TOKID_STR.
Referenced by Factor().
|
private |
Definition at line 2231 of file xeformula.cxx.
References mxData.
Referenced by AppendOperandTokenId(), and PushOperatorPos().
|
private |
Definition at line 2236 of file xeformula.cxx.
References mxData, and PushOperandPos().
Referenced by AppendOperatorTokenId(), and ListTerm().
|
private |
Definition at line 1174 of file xeformula.cxx.
References AppendBinaryOperatorToken(), EXC_TOKID_NONE, Factor(), GetNextToken(), and mxData.
Referenced by IntersectTerm().
|
private |
Definition at line 647 of file xeformula.cxx.
References XclTokenArrayHelper::ChangeTokenClass(), EXC_PARAMCONV_ARR, EXC_PARAMCONV_ORG, EXC_PARAMCONV_RPO, EXC_PARAMCONV_RPT, EXC_PARAMCONV_RPX, EXC_PARAMCONV_VAL, EXC_TOKCLASS_ARR, EXC_TOKCLASS_REF, EXC_TOKCLASS_VAL, GetSize(), XclTokenArrayHelper::GetTokenClass(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), mxData, RecalcTokenClass(), and SAL_WARN.
Referenced by RecalcTokenClass(), and RecalcTokenClasses().
|
private |
Definition at line 622 of file xeformula.cxx.
References EXC_PARAMCONV_ARR, EXC_PARAMCONV_VAL, mxData, PopOperandPos(), and RecalcTokenClass().
Referenced by CreateFormula().
|
private |
Definition at line 2570 of file xeformula.cxx.
References EXC_TOKID_PAREN, GetSize(), IsSpaceToken(), and mxData.
|
private |
Definition at line 969 of file xeformula.cxx.
References GetNextToken(), mxData, ocClose, ocOpen, ocSep, and SkipExpression().
Referenced by ProcessParam(), and SkipExpression().
|
private |
Definition at line 1093 of file xeformula.cxx.
References AppendUnaryOperatorToken(), EXC_TOKID_NONE, GetNextToken(), mxData, and UnaryPreTerm().
Referenced by PowTerm().
|
private |
Definition at line 1108 of file xeformula.cxx.
References AppendUnaryOperatorToken(), EXC_TOKID_NONE, GetNextToken(), ListTerm(), mxData, and UnaryPreTerm().
Referenced by UnaryPostTerm(), and UnaryPreTerm().
|
private |
Definition at line 2552 of file xeformula.cxx.
References GetSize(), and Overwrite().
Referenced by FinishChooseFunction(), and FinishIfFunction().
|
private |
Definition at line 459 of file xeformula.cxx.
Referenced by GetConfigForType(), and XclExpFmlaCompImpl().
|
private |
Working data for current formula.
Definition at line 463 of file xeformula.cxx.
Referenced by CreateTokenArray(), and Init().
|
private |
Compiler configuration map for all formula types.
Definition at line 460 of file xeformula.cxx.
Referenced by ProcessFunction().
|
private |
Stack for working data, when compiler is called recursively.
Definition at line 464 of file xeformula.cxx.
Referenced by AppendAddress(), AppendExt(), AppendNameToken(), AppendNameXToken(), AppendRange(), ConvertRefData(), ProcessCellRef(), ProcessExternalCellRef(), ProcessExternalRangeRef(), ProcessMatrix(), and ProcessRangeRef().
|
private |
Cached BIFF version to save GetBiff() calls.
Definition at line 465 of file xeformula.cxx.
Referenced by ConvertRefData().
|
private |
|
private |
Maximum row index in Calc itself.
Definition at line 469 of file xeformula.cxx.
Referenced by ConvertRefData().
|
private |
Mask to delete invalid bits in column fields.
Definition at line 470 of file xeformula.cxx.
Referenced by ConvertRefData().
|
private |
|
private |
Maximum column index in Calc itself.
Definition at line 468 of file xeformula.cxx.
Referenced by ConvertRefData().
|
private |
Excel function data provider.
Definition at line 461 of file xeformula.cxx.
Referenced by AddSubTerm(), AndTerm(), Append(), AppendAddInCallToken(), AppendEuroToolCallToken(), AppendExt(), CompareTerm(), ConcatTerm(), ConvertRefData(), CreateFormula(), CreateTokenArray(), Expression(), Factor(), FinalizeFormula(), FinishFunction(), GetNewRefLogEntry(), GetNextRawToken(), GetScTab(), GetSize(), Init(), InsertZeros(), IntersectTerm(), IsRef2D(), IsSpaceToken(), ListTerm(), MulDivTerm(), OrTerm(), Overwrite(), PeekNextRawToken(), PopOperandPos(), PowTerm(), ProcessBoolean(), ProcessCellRef(), ProcessDdeLink(), ProcessDefinedName(), ProcessExternalCellRef(), ProcessExternalName(), ProcessExternalRangeRef(), ProcessFunction(), ProcessMatrix(), ProcessParam(), ProcessParentheses(), ProcessRangeRef(), PushOperandPos(), PushOperatorPos(), RangeTerm(), RecalcTokenClass(), RecalcTokenClasses(), RemoveTrailingParen(), SkipExpression(), UnaryPostTerm(), and UnaryPreTerm().