/Users/ericb/Desktop/SRC680_m247/starmath/inc/unomodel.hxx

Go to the documentation of this file.
00001 /*************************************************************************
00002  *
00003  *  OpenOffice.org - a multi-platform office productivity suite
00004  *
00005  *  $RCSfile: unomodel.hxx,v $
00006  *
00007  *  $Revision: 1.12 $
00008  *
00009  *  last change: $Author: rt $ $Date: 2005/09/07 15:01:21 $
00010  *
00011  *  The Contents of this file are made available subject to
00012  *  the terms of GNU Lesser General Public License Version 2.1.
00013  *
00014  *
00015  *    GNU Lesser General Public License Version 2.1
00016  *    =============================================
00017  *    Copyright 2005 by Sun Microsystems, Inc.
00018  *    901 San Antonio Road, Palo Alto, CA 94303, USA
00019  *
00020  *    This library is free software; you can redistribute it and/or
00021  *    modify it under the terms of the GNU Lesser General Public
00022  *    License version 2.1, as published by the Free Software Foundation.
00023  *
00024  *    This library is distributed in the hope that it will be useful,
00025  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00026  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00027  *    Lesser General Public License for more details.
00028  *
00029  *    You should have received a copy of the GNU Lesser General Public
00030  *    License along with this library; if not, write to the Free Software
00031  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00032  *    MA  02111-1307  USA
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         //XInterface
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         //XTypeProvider
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         //XUnoTunnel
00088         virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
00089 
00090     //XRenderable
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     //XServiceInfo
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

Generated on Wed Feb 20 17:21:56 2008 for maths by  doxygen 1.5.1