diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-15 20:42:00 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-18 23:22:40 -0400 |
commit | a6f8102ba55d06ead9bf6e72be0985dcc1086ef5 (patch) | |
tree | 39c025c82c03c3c22f8bea37d7e46ae7f8244faf /sc/inc/formularesult.hxx | |
parent | 3629a512b5afb09f48f47f1994d4708c748c45e6 (diff) |
Re-do fetching of vector ref array to support number / string mixture.
For now it only works when the range starts with string cell. With this,
the test now passes.
Change-Id: I6f79415ce11233648cdb20c8075f500b8c3d2f76
Diffstat (limited to 'sc/inc/formularesult.hxx')
-rw-r--r-- | sc/inc/formularesult.hxx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sc/inc/formularesult.hxx b/sc/inc/formularesult.hxx index 8a7b36543284..3708c8a7efe2 100644 --- a/sc/inc/formularesult.hxx +++ b/sc/inc/formularesult.hxx @@ -23,6 +23,26 @@ #include "token.hxx" #include "scdllapi.h" +namespace sc { + +struct FormulaResultValue +{ + enum Type { Invalid, Value, String, Error }; + + Type meType; + + double mfValue; + svl::SharedString maString; + sal_uInt16 mnError; + + FormulaResultValue(); + FormulaResultValue( double fValue ); + FormulaResultValue(const svl::SharedString& rStr ); + FormulaResultValue( sal_uInt16 nErr ); +}; + +} + /** Store a variable formula cell result, balancing between runtime performance and memory consumption. */ class ScFormulaResult @@ -136,6 +156,7 @@ public: bool GetErrorOrDouble( sal_uInt16& rErr, double& rVal ) const; bool GetErrorOrString( sal_uInt16& rErr, svl::SharedString& rStr ) const; + sc::FormulaResultValue GetResult() const; /** Get error code if set or GetCellResultType() is formula::svError or svUnknown, else 0. */ |