diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-07-12 01:31:18 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-07-12 01:32:21 +0200 |
commit | 8e9d43546c8e46ea635472ddf07f5c183dc13360 (patch) | |
tree | ac4b2f98cff6731f96d35f61d21c6777b71eec8c /sc/source | |
parent | 5ed11c2ba2b1897955e80d240815f79239b324c2 (diff) |
fix the build
Change-Id: I661666166594ce3012767fac6edc64aa424442e5
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/filter/xml/xmlexprt.cxx | 9 | ||||
-rw-r--r-- | sc/source/ui/dataprovider/datatransformation.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/inc/datatransformation.hxx | 2 |
3 files changed, 11 insertions, 4 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index 63ec4abc9302..4f8b61980106 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -4269,9 +4269,16 @@ void ScXMLExport::WriteExternalDataTransformations(const std::vector<std::shared break; } - AddAttribute(XML_NAMESPACE_CALC_EXT, XML_COLUMN, OUString::number(aNumberTransformation->getColumn())); AddAttribute(XML_NAMESPACE_CALC_EXT, XML_PRECISION, OUString::number(aNumberTransformation->getPrecision())); SvXMLElementExport aTransformation(*this, XML_NAMESPACE_CALC_EXT, XML_COLUMN_NUMBER_TRANSFORMATION, true, true); + + std::set<SCCOL> aColumns = aNumberTransformation->getColumn(); + for(auto& col : aColumns) + { + // Columns + AddAttribute(XML_NAMESPACE_CALC_EXT, XML_COLUMN, OUString::number(col)); + SvXMLElementExport aCol(*this, XML_NAMESPACE_CALC_EXT, XML_COLUMN, true, true); + } } break; default: diff --git a/sc/source/ui/dataprovider/datatransformation.cxx b/sc/source/ui/dataprovider/datatransformation.cxx index 0e2048d3dd43..95846470a847 100644 --- a/sc/source/ui/dataprovider/datatransformation.cxx +++ b/sc/source/ui/dataprovider/datatransformation.cxx @@ -645,10 +645,10 @@ int NumberTransformation::getPrecision() const return maPrecision; } -SCCOL NumberTransformation::getColumn() const +std::set<SCCOL> NumberTransformation::getColumn() const { return mnCol; } } -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/ui/inc/datatransformation.hxx b/sc/source/ui/inc/datatransformation.hxx index 71eb7406e5a4..0096e0c5a623 100644 --- a/sc/source/ui/inc/datatransformation.hxx +++ b/sc/source/ui/inc/datatransformation.hxx @@ -145,7 +145,7 @@ class SC_DLLPUBLIC NumberTransformation : public DataTransformation virtual TransformationType getTransformationType() const override; NUMBER_TRANSFORM_TYPE getNumberTransfromationType() const; int getPrecision() const; - SCCOL getColumn() const; + std::set<SCCOL> getColumn() const; }; } |