00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef UNOMODEL_HXX
00036 #define UNOMODEL_HXX
00037
00038 #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
00039 #include <com/sun/star/beans/XPropertySet.hpp>
00040 #endif
00041 #ifndef _COM_SUN_STAR_BEANS_XMULTIPROPERTYSET_HPP_
00042 #include <com/sun/star/beans/XMultiPropertySet.hpp>
00043 #endif
00044 #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSTATE_HPP_
00045 #include <com/sun/star/beans/XPropertyState.hpp>
00046 #endif
00047 #ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_
00048 #include <com/sun/star/lang/XServiceInfo.hpp>
00049 #endif
00050 #ifndef _COM_SUN_STAR_VIEW_XRENDERABLE_HPP_
00051 #include <com/sun/star/view/XRenderable.hpp>
00052 #endif
00053 #ifndef _SFX_SFXBASEMODEL_HXX_
00054 #include <sfx2/sfxbasemodel.hxx>
00055 #endif
00056 #ifndef _COMPHELPER_PROPERTYSETHELPER_HXX_
00057 #include <comphelper/propertysethelper.hxx>
00058 #endif
00059
00060 class SmFormat;
00061
00062
00063 class SmModel : public SfxBaseModel,
00064 public comphelper::PropertySetHelper,
00065 public com::sun::star::lang::XServiceInfo,
00066 public com::sun::star::view::XRenderable
00067 {
00068 protected:
00069 virtual void _setPropertyValues( const comphelper::PropertyMapEntry** ppEntries, const ::com::sun::star::uno::Any* pValues )
00070 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException );
00071 virtual void _getPropertyValues( const comphelper::PropertyMapEntry** ppEntries, ::com::sun::star::uno::Any* pValue )
00072 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException );
00073 public:
00074 SmModel( SfxObjectShell *pObjSh = 0 );
00075 virtual ~SmModel() throw ();
00076
00077
00078 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException);
00079 virtual void SAL_CALL acquire( ) throw();
00080 virtual void SAL_CALL release( ) throw();
00081
00082
00083 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException);
00084
00085 static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId();
00086
00087
00088 virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
00089
00090
00091 virtual sal_Int32 SAL_CALL getRendererCount( const ::com::sun::star::uno::Any& rSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rxOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
00092 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getRenderer( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& rSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rxOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
00093 virtual void SAL_CALL render( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& rSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rxOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
00094
00095
00096 virtual rtl::OUString SAL_CALL getImplementationName(void)
00097 throw( ::com::sun::star::uno::RuntimeException );
00098 virtual BOOL SAL_CALL supportsService(const rtl::OUString& ServiceName)
00099 throw( ::com::sun::star::uno::RuntimeException );
00100 virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void)
00101 throw( ::com::sun::star::uno::RuntimeException );
00102
00103 virtual void SAL_CALL setParent( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xParent )
00104 throw( ::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException );
00105
00106 static ::com::sun::star::uno::Sequence< rtl::OUString > getSupportedServiceNames_Static();
00107 static ::rtl::OUString getImplementationName_Static();
00108 };
00109
00110 #endif