diff options
Diffstat (limited to 'writerfilter/source/dmapper/PropertyIds.hxx')
-rw-r--r-- | writerfilter/source/dmapper/PropertyIds.hxx | 50 |
1 files changed, 1 insertions, 49 deletions
diff --git a/writerfilter/source/dmapper/PropertyIds.hxx b/writerfilter/source/dmapper/PropertyIds.hxx index 7c4f6af2d88f..6ddd1d86a16b 100644 --- a/writerfilter/source/dmapper/PropertyIds.hxx +++ b/writerfilter/source/dmapper/PropertyIds.hxx @@ -28,18 +28,10 @@ #ifndef INCLUDED_DMAPPER_PROPERTYIDS_HXX #define INCLUDED_DMAPPER_PROPERTYIDS_HXX -#include <hash_map> -#include <boost/shared_ptr.hpp> -#include <com/sun/star/uno/Sequence.hxx> -#include <com/sun/star/beans/PropertyValue.hpp> - namespace rtl{ class OUString;} namespace writerfilter { namespace dmapper{ - -using namespace ::com::sun::star; - enum PropertyIds { PROP_ID_START = 1 @@ -298,56 +290,16 @@ enum PropertyIds /*253*/ ,PROP_FRM_DIRECTION }; struct PropertyNameSupplier_Impl; - -struct PropertyIdsHash -{ - size_t operator()(const PropertyIds a) const { return a; } -}; - class PropertyNameSupplier { PropertyNameSupplier_Impl* m_pImpl; - PropertyNameSupplier(); - public: + PropertyNameSupplier(); ~PropertyNameSupplier(); const rtl::OUString& GetName( PropertyIds eId ) const; - PropertyIds GetId(const ::rtl::OUString & rString) const; static PropertyNameSupplier& GetPropertyNameSupplier(); }; - -class PropertySequence -{ - typedef ::std::hash_map<PropertyIds, sal_Int32, PropertyIdsHash> Map_t; - Map_t m_indexMap; - uno::Sequence<beans::PropertyValue>m_sequence; - PropertyNameSupplier & m_rPropNameSupplier; - - int getOrCreateIndex(PropertyIds aId); - -public: - typedef boost::shared_ptr<PropertySequence> Pointer_t; - - PropertySequence(); - PropertySequence(const uno::Sequence<beans::PropertyValue> & rSeq); - virtual ~PropertySequence(); - - uno::Any get(PropertyIds aId); - - void set(PropertyIds aId, const uno::Any & rValue); - void set(PropertyIds aId, sal_uInt32 nValue); - void set(PropertyIds aId, sal_Int32 nValue); - void set(PropertyIds aId, sal_uInt16 nValue); - void set(PropertyIds aId, sal_Int16 nValue); - - uno::Sequence<beans::PropertyValue> & getSequence(); - -#ifdef DEBUG - ::std::string toString() const; -#endif -}; - } //namespace dmapper } // namespace writerfilter #endif |