diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2017-05-22 21:08:56 -0400 |
---|---|---|
committer | Kohei Yoshida <libreoffice@kohei.us> | 2017-05-24 05:19:40 +0200 |
commit | d4cd8677889ec3807c194ef5b462f8e031807e5b (patch) | |
tree | 4b53429527d6358d145feef9912d0460924cbde0 /sc/inc/cellvalue.hxx | |
parent | 7948e84091f37fbda75f524f20138d1171918e64 (diff) |
tdf#107945: properly iterate over mtv during pivot cache loading.
This reduces the total time required for populating the pivot cache
by ~60%.
Change-Id: I6a8511959c20231a8a5dbd0b0a9a3d0930a1fa0c
Reviewed-on: https://gerrit.libreoffice.org/37971
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'sc/inc/cellvalue.hxx')
-rw-r--r-- | sc/inc/cellvalue.hxx | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/sc/inc/cellvalue.hxx b/sc/inc/cellvalue.hxx index 4ebd29889fee..430212245870 100644 --- a/sc/inc/cellvalue.hxx +++ b/sc/inc/cellvalue.hxx @@ -132,19 +132,38 @@ struct SC_DLLPUBLIC ScRefCellValue bool hasNumeric() const; + bool hasError() const; + double getValue(); - /** Retrieve string value. + /** + * Retrieve a numeric value without modifying the states of any objects in + * the referenced document store. + */ + double getRawValue() const; - @param pDoc - Needed to resolve EditCells' field contents, obtain a - ScFieldEditEngine from that document. May be NULL if there is - no ScDocument in the calling context but then the document - specific fields can not be resolved. See - ScEditUtil::GetString(). + /** + * Retrieve string value. + * + * Note that this method is NOT thread-safe. + * + * @param pDoc + * Needed to resolve EditCells' field contents, obtain a + * ScFieldEditEngine from that document. May be NULL if there is + * no ScDocument in the calling context but then the document + * specific fields can not be resolved. See + * ScEditUtil::GetString(). */ OUString getString( const ScDocument* pDoc ); + /** + * Retrieve a string value without modifying the states of any objects in + * the referenced document store. + * + * This method is thread-safe. + */ + OUString getRawString( const ScDocument* pDoc ) const; + bool isEmpty() const; bool hasEmptyValue(); |