#ifndef __DPDIMENSIONS_HXX__ #define __DPDIMENSIONS_HXX__ #include "global.hxx" #include #include #include namespace com { namespace sun { namespace star { namespace container { class XNamed; } }}} namespace dpsource { class SourceProvider; class DPDimensions : public cppu::WeakImplHelper2< ::com::sun::star::container::XNameAccess, ::com::sun::star::lang::XServiceInfo > { public: DPDimensions(SourceProvider* pSrc); ~DPDimensions(); // XNameAccess virtual ::com::sun::star::uno::Any SAL_CALL getByName(const ::rtl::OUString& aName) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames() throw (::com::sun::star::uno::RuntimeException); virtual sal_Bool SAL_CALL hasByName(const ::rtl::OUString& aName) throw (::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw (::com::sun::star::uno::RuntimeException); virtual sal_Bool SAL_CALL hasElements() throw (::com::sun::star::uno::RuntimeException); // XServiceInfo virtual ::rtl::OUString SAL_CALL getImplementationName() throw (::com::sun::star::uno::RuntimeException); virtual sal_Bool SAL_CALL supportsService(const ::rtl::OUString& ServiceName) throw (::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw (::com::sun::star::uno::RuntimeException); private: void init(); private: NamedObjMapType maDimensions; SourceProvider* mpSource; }; } #endif