diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-10-06 22:24:17 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-10-07 13:09:48 +0200 |
commit | e48853f7dbffd69dc7c55d4cbd200f2b7afaaed8 (patch) | |
tree | 2cbb8aa068b83fc25522f6b96715de8f166d1cc4 /sc/source/filter/inc | |
parent | tdf#112936: Pivot table: LO created XLSX file makes Excel to crash (diff) | |
download | core-e48853f7dbffd69dc7c55d4cbd200f2b7afaaed8.tar.gz core-e48853f7dbffd69dc7c55d4cbd200f2b7afaaed8.zip |
tdf#107711:Pivot table: filtering of non-string fields is not exported to XLSX
Same issue what we have in case of XLS filter. We need to have
the right string representation of pivot field items.
Reviewed-on: https://gerrit.libreoffice.org/42956
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
(cherry picked from commit 625653c8d119e720fb93b0c9f6f50d1eb625b179)
Change-Id: Ifb686ad268c61b03c7dcccc66f65e6f8247eab4f
Reviewed-on: https://gerrit.libreoffice.org/43053
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sc/source/filter/inc')
-rw-r--r-- | sc/source/filter/inc/pivotcachebuffer.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/source/filter/inc/pivotcachebuffer.hxx b/sc/source/filter/inc/pivotcachebuffer.hxx index 2add88cb52da..0d775961abd3 100644 --- a/sc/source/filter/inc/pivotcachebuffer.hxx +++ b/sc/source/filter/inc/pivotcachebuffer.hxx @@ -32,6 +32,10 @@ namespace com { namespace sun { namespace star { namespace oox { namespace core { class Relations; } } +class ScDPSaveDimension; +class ScDPObject; +class DateTime; + namespace oox { namespace xls { @@ -77,6 +81,9 @@ public: inline const css::uno::Any& getValue() const { return maValue; } /** Returns the string representation of the item. */ OUString getName() const; + + /** Returns the string representation of the item, using the actual formating. */ + OUString getFormattedName(const ScDPSaveDimension& rSaveDim, ScDPObject* pObj, const ::DateTime& rNullDate) const; /** Returns true if the item is unused. */ inline bool isUnused() const { return mbUnused; } |