diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-12-12 19:05:31 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-12-14 01:12:41 -0500 |
commit | 1360b28b477f980a2c58659ffc298d0dd2cda20b (patch) | |
tree | 446e6c4aba4f8414687ebd884ea98ab983e475f4 /sc/inc/miscuno.hxx | |
parent | 34b7826f9814b09dcd6aba15552bef1c330f3db2 (diff) |
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.hxx | 9 |
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())); + } }; |