diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-05-14 11:02:27 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-05-14 13:15:10 -0400 |
commit | 5db9391c0640450f3e30dfa9d2c9b8ff9c79b958 (patch) | |
tree | d7f9d5979b30b87242cbe1a9653dae0ce69ef75d /include/formula | |
parent | 7249ba6877ef687fd787375e18678c5f1f417a49 (diff) |
Introduce a new boolean flag and use it in lieu of bCompileForFAP.
To make it sound more general than "compile for FAP".
Change-Id: Ia6916b6f3579a290be7d5074f809666be2bd2473
Diffstat (limited to 'include/formula')
-rw-r--r-- | include/formula/FormulaCompiler.hxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/formula/FormulaCompiler.hxx b/include/formula/FormulaCompiler.hxx index 9df22ecf0ca8..8d4627e51fd8 100644 --- a/include/formula/FormulaCompiler.hxx +++ b/include/formula/FormulaCompiler.hxx @@ -227,8 +227,7 @@ public: sal_uInt16 GetErrorConstant( const OUString& rName ) const; - void SetCompileForFAP( bool bVal ) - { bCompileForFAP = bVal; bIgnoreErrors = bVal; } + void SetCompileForFAP( bool bVal ); static bool IsOpCodeVolatile( OpCode eOp ); static bool IsOpCodeJumpCommand( OpCode eOp ); @@ -338,12 +337,12 @@ protected: bool bAutoCorrect; // whether to apply AutoCorrection bool bCorrected; // AutoCorrection was applied - bool bCompileForFAP; //! not real RPN but names, for FunctionAutoPilot - // will not be resolved bool bIgnoreErrors; // on AutoCorrect and CompileForFAP // ignore errors and create RPN nevertheless bool glSubTotal; // if code contains one or more subtotal functions + bool mbJumpCommandReorder; /// Whether or not to reorder RPN for jump commands. + private: void InitSymbolsNative() const; /// only SymbolsNative, on first document creation void InitSymbolsEnglish() const; /// only SymbolsEnglish, maybe later |