summaryrefslogtreecommitdiffstats
path: root/sc/inc/miscuno.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-12-12 19:05:31 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-12-14 01:12:41 -0500
commit1360b28b477f980a2c58659ffc298d0dd2cda20b (patch)
tree446e6c4aba4f8414687ebd884ea98ab983e475f4 /sc/inc/miscuno.hxx
parentadded some FIXME-BCP47 markers (diff)
downloadcore-1360b28b477f980a2c58659ffc298d0dd2cda20b.tar.gz
core-1360b28b477f980a2c58659ffc298d0dd2cda20b.zip
bnc#791706: Support multiple selection in page fields.
This change allows selecting multiple items in page field popups in pivot table. Change-Id: I692e13c0815211bac6da47fefd83bba18c901c5c
Diffstat (limited to 'sc/inc/miscuno.hxx')
-rw-r--r--sc/inc/miscuno.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/inc/miscuno.hxx b/sc/inc/miscuno.hxx
index de953af08cc7..646d2613d294 100644
--- a/sc/inc/miscuno.hxx
+++ b/sc/inc/miscuno.hxx
@@ -188,6 +188,15 @@ public:
any <<= rVal;
SetOptionalPropertyValue(rPropSet, pPropName, any);
}
+
+ template<typename ValueType>
+ static com::sun::star::uno::Sequence<ValueType> VectorToSequence( const std::vector<ValueType>& rVector )
+ {
+ if (rVector.empty())
+ return com::sun::star::uno::Sequence<ValueType>();
+
+ return com::sun::star::uno::Sequence<ValueType>(&rVector[0], static_cast<sal_Int32>(rVector.size()));
+ }
};