1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: unomodel.hxx,v $
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 ************************************************************************/
33 #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
34 #include <com/sun/star/beans/XPropertySet.hpp>
36 #ifndef _COM_SUN_STAR_BEANS_XMULTIPROPERTYSET_HPP_
37 #include <com/sun/star/beans/XMultiPropertySet.hpp>
39 #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSTATE_HPP_
40 #include <com/sun/star/beans/XPropertyState.hpp>
42 #ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_
43 #include <com/sun/star/lang/XServiceInfo.hpp>
45 #ifndef _COM_SUN_STAR_LANG_XUNOTUNNEL_HPP_
46 #include <com/sun/star/lang/XUnoTunnel.hpp>
48 #ifndef _COM_SUN_STAR_VIEW_XRENDERABLE_HPP_
49 #include <com/sun/star/view/XRenderable.hpp>
51 #ifndef _SFX_SFXBASEMODEL_HXX_
52 #include <bf_sfx2/sfxbasemodel.hxx>
54 #ifndef _COMPHELPER_PROPERTYSETHELPER_HXX_
55 #include <comphelper/propertysethelper.hxx>
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
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
);
74 SmModel( SfxObjectShell
*pObjSh
= 0 );
75 virtual ~SmModel() throw ();
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();
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();
88 virtual sal_Int64 SAL_CALL
getSomething( const ::com::sun::star::uno::Sequence
< sal_Int8
>& aIdentifier
) throw(::com::sun::star::uno::RuntimeException
);
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
);
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