diff options
Diffstat (limited to 'reportdesign/inc/RptDef.hxx')
-rw-r--r-- | reportdesign/inc/RptDef.hxx | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/reportdesign/inc/RptDef.hxx b/reportdesign/inc/RptDef.hxx index 9b30bef5ade3..31aaa2062305 100644 --- a/reportdesign/inc/RptDef.hxx +++ b/reportdesign/inc/RptDef.hxx @@ -37,6 +37,7 @@ #include <comphelper/stl_types.hxx> #include <comphelper/uno3.hxx> #include <svx/fmglob.hxx> +#include <boost/shared_ptr.hpp> FORWARD_DECLARE_INTERFACE(report,XReportComponent) @@ -81,13 +82,22 @@ namespace ControlModification static const ::sal_Int32 HEIGHT_GREATEST = (sal_Int32)10; } +class AnyConverter : public ::std::binary_function< ::rtl::OUString,::com::sun::star::uno::Any,::com::sun::star::uno::Any > +{ +public: + virtual ~AnyConverter(){} + virtual ::com::sun::star::uno::Any operator() (const ::rtl::OUString& /*_sPropertyName*/,const ::com::sun::star::uno::Any& lhs) const + { + return lhs; + } +}; /** returns teh object type depending on the service name @param _xComponent the report component */ REPORTDESIGN_DLLPUBLIC sal_uInt16 getObjectType(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent>& _xComponent); - -DECLARE_STL_USTRINGACCESS_MAP(::rtl::OUString , TPropertyNamePair); -/** returns teh property name map for the givern property id +typedef ::std::pair< ::rtl::OUString, ::boost::shared_ptr<AnyConverter> > TPropertyConverter; +DECLARE_STL_USTRINGACCESS_MAP(TPropertyConverter , TPropertyNamePair); +/** returns the property name map for the givern property id @param _nObjectId the object id */ REPORTDESIGN_DLLPUBLIC const TPropertyNamePair& getPropertyNameMap(sal_uInt16 _nObjectId); |