diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-14 18:32:57 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-14 18:34:20 -0400 |
commit | 625c595fc30d2e6153735dc2ed2359ff4f8a1e3a (patch) | |
tree | b24941adb87381dcb5ef651b593fa4aadd2e3c2f /include/formula | |
parent | b09426b83c12b0cd27cd909602251cb076ffa4ba (diff) |
fdo#76294: Intern strings in AddFormulaToken() as well.
And a whole bunch of changes needed to make that happen.
Change-Id: Idd98fbc99322c0d72fb0a7848d89cb1a6abc88b6
Diffstat (limited to 'include/formula')
-rw-r--r-- | include/formula/tokenarray.hxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/formula/tokenarray.hxx b/include/formula/tokenarray.hxx index fba33e86b3d8..5654a3150f82 100644 --- a/include/formula/tokenarray.hxx +++ b/include/formula/tokenarray.hxx @@ -30,6 +30,7 @@ namespace svl { class SharedString; +class SharedStringPool; } @@ -202,14 +203,18 @@ public: Derived classes must overload it when they want to support derived classes from FormulaToken. @return true when an error occurs */ - virtual bool AddFormulaToken(const com::sun::star::sheet::FormulaToken& _aToken, ExternalReferenceHelper* _pRef = NULL); + virtual bool AddFormulaToken( + const css::sheet::FormulaToken& rToken, svl::SharedStringPool& rSPool, + ExternalReferenceHelper* pExtRef ); /** fill the array with the tokens from the sequence. It calls AddFormulaToken for each token in the list. @param _aSequence the token to add @return true when an error occurs */ - bool Fill(const com::sun::star::uno::Sequence< com::sun::star::sheet::FormulaToken >& _aSequence, ExternalReferenceHelper* _pRef = NULL); + bool Fill( + const css::uno::Sequence<css::sheet::FormulaToken>& rSequence, + svl::SharedStringPool& rSPool, ExternalReferenceHelper* pExtRef ); /** * Do some checking based on the individual tokens. For now, we use this |