diff options
Diffstat (limited to 'chart2/source/view/inc/PropertyMapper.hxx')
-rw-r--r-- | chart2/source/view/inc/PropertyMapper.hxx | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/chart2/source/view/inc/PropertyMapper.hxx b/chart2/source/view/inc/PropertyMapper.hxx index 5da914074e1c..c4d9a1fa2577 100644 --- a/chart2/source/view/inc/PropertyMapper.hxx +++ b/chart2/source/view/inc/PropertyMapper.hxx @@ -16,23 +16,23 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_CHART2_SOURCE_VIEW_INC_PROPERTYMAPPER_HXX -#define INCLUDED_CHART2_SOURCE_VIEW_INC_PROPERTYMAPPER_HXX +#pragma once #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; @@ -48,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 @@ -67,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 @@ -83,7 +80,7 @@ public: static css::uno::Any* getValuePointer( tAnySequence& rPropValues , const tNameSequence& rPropNames - , const OUString& rPropName ); + , std::u16string_view rPropName ); static css::uno::Any* getValuePointerForLimitedSpace( tAnySequence& rPropValues @@ -93,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(); @@ -124,6 +121,5 @@ public: }; } //namespace chart -#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |