Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_starmath / unomodel.hxx
blob3b62d88fe2eb4dadffb0f8b137c3309703c06d22
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: unomodel.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef UNOMODEL_HXX
31 #define UNOMODEL_HXX
33 #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
34 #include <com/sun/star/beans/XPropertySet.hpp>
35 #endif
36 #ifndef _COM_SUN_STAR_BEANS_XMULTIPROPERTYSET_HPP_
37 #include <com/sun/star/beans/XMultiPropertySet.hpp>
38 #endif
39 #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSTATE_HPP_
40 #include <com/sun/star/beans/XPropertyState.hpp>
41 #endif
42 #ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_
43 #include <com/sun/star/lang/XServiceInfo.hpp>
44 #endif
45 #ifndef _COM_SUN_STAR_LANG_XUNOTUNNEL_HPP_
46 #include <com/sun/star/lang/XUnoTunnel.hpp>
47 #endif
48 #ifndef _COM_SUN_STAR_VIEW_XRENDERABLE_HPP_
49 #include <com/sun/star/view/XRenderable.hpp>
50 #endif
51 #ifndef _SFX_SFXBASEMODEL_HXX_
52 #include <bf_sfx2/sfxbasemodel.hxx>
53 #endif
54 #ifndef _COMPHELPER_PROPERTYSETHELPER_HXX_
55 #include <comphelper/propertysethelper.hxx>
56 #endif
57 namespace binfilter {
59 class SmFormat;
61 //-----------------------------------------------------------------------------
62 class SmModel : public SfxBaseModel,
63 public comphelper::PropertySetHelper,
64 public ::com::sun::star::lang::XServiceInfo,
65 public ::com::sun::star::lang::XUnoTunnel,
66 public ::com::sun::star::view::XRenderable
68 protected:
69 virtual void _setPropertyValues( const comphelper::PropertyMapEntry** ppEntries, const ::com::sun::star::uno::Any* pValues )
70 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException );
71 virtual void _getPropertyValues( const comphelper::PropertyMapEntry** ppEntries, ::com::sun::star::uno::Any* pValue )
72 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException );
73 public:
74 SmModel( SfxObjectShell *pObjSh = 0 );
75 virtual ~SmModel() throw ();
77 //XInterface
78 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException);
79 virtual void SAL_CALL acquire( ) throw();
80 virtual void SAL_CALL release( ) throw();
82 //XTypeProvider
83 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException);
85 static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId();
87 //XUnoTunnel
88 virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
90 //XRenderable
91 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);
92 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);
93 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);
95 //XServiceInfo
96 virtual ::rtl::OUString SAL_CALL getImplementationName(void)
97 throw( ::com::sun::star::uno::RuntimeException );
98 virtual BOOL SAL_CALL supportsService(const ::rtl::OUString& ServiceName)
99 throw( ::com::sun::star::uno::RuntimeException );
100 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(void)
101 throw( ::com::sun::star::uno::RuntimeException );
103 inline ::rtl::OUString getImplementationName_Static() throw( );
106 inline ::rtl::OUString SmModel::getImplementationName_Static() throw( )
108 return ::rtl::OUString::createFromAscii("math.SmModel");
111 } //namespace binfilter
112 #endif