diff options
Diffstat (limited to 'chart2/source/view/inc/PropertyMapper.hxx')
-rw-r--r-- | chart2/source/view/inc/PropertyMapper.hxx | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/chart2/source/view/inc/PropertyMapper.hxx b/chart2/source/view/inc/PropertyMapper.hxx index 2039ebdde185..c4d9a1fa2577 100644 --- a/chart2/source/view/inc/PropertyMapper.hxx +++ b/chart2/source/view/inc/PropertyMapper.hxx @@ -20,18 +20,19 @@ #include <sal/config.h> -#include <map> +#include <unordered_map> #include <com/sun/star/uno/Sequence.h> #include <com/sun/star/uno/Reference.h> namespace com::sun::star::beans { class XPropertySet; } +class SvxShape; namespace chart { -typedef std::map< OUString, OUString > tPropertyNameMap; -typedef std::map< OUString, css::uno::Any > tPropertyNameValueMap; +typedef std::unordered_map<OUString, OUString> tPropertyNameMap; +typedef std::unordered_map<OUString, css::uno::Any> tPropertyNameValueMap; typedef css::uno::Sequence< OUString > tNameSequence; typedef css::uno::Sequence< css::uno::Any > tAnySequence; @@ -47,8 +48,12 @@ public: static void setMappedProperties( const css::uno::Reference< css::beans::XPropertySet >& xTarget , const css::uno::Reference< css::beans::XPropertySet >& xSource - , const tPropertyNameMap& rMap - , tPropertyNameValueMap const * pOverwriteMap=nullptr ); + , const tPropertyNameMap& rMap ); + + static void setMappedProperties( + SvxShape& xTarget + , const css::uno::Reference< css::beans::XPropertySet >& xSource + , const tPropertyNameMap& rMap ); /** * Fetch property values from the source object and map it to the @@ -66,13 +71,6 @@ public: , const css::uno::Reference< css::beans::XPropertySet >& xSourceProp ); - static void getMultiPropertyLists( - tNameSequence& rNames - , tAnySequence& rValues - , const css::uno::Reference< css::beans::XPropertySet >& xProp - , const tPropertyNameMap& rMap - ); - static void getMultiPropertyListsFromValueMap( tNameSequence& rNames , tAnySequence& rValues @@ -92,7 +90,7 @@ public: static void setMultiProperties( const tNameSequence& rNames , const tAnySequence& rValues - , const css::uno::Reference< css::beans::XPropertySet >& xTarget ); + , SvxShape& xTarget ); static const tPropertyNameMap& getPropertyNameMapForCharacterProperties(); static const tPropertyNameMap& getPropertyNameMapForParagraphProperties(); |