1*08421ca6SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*08421ca6SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*08421ca6SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*08421ca6SAndrew Rist  * distributed with this work for additional information
6*08421ca6SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*08421ca6SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*08421ca6SAndrew Rist  * "License"); you may not use this file except in compliance
9*08421ca6SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*08421ca6SAndrew Rist  *
11*08421ca6SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*08421ca6SAndrew Rist  *
13*08421ca6SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*08421ca6SAndrew Rist  * software distributed under the License is distributed on an
15*08421ca6SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*08421ca6SAndrew Rist  * KIND, either express or implied.  See the License for the
17*08421ca6SAndrew Rist  * specific language governing permissions and limitations
18*08421ca6SAndrew Rist  * under the License.
19*08421ca6SAndrew Rist  *
20*08421ca6SAndrew Rist  *************************************************************/
21*08421ca6SAndrew Rist 
22*08421ca6SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _INC_SPECIALOBJECT_HXX_
25cdf0e10cSrcweir #define _INC_SPECIALOBJECT_HXX_
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <com/sun/star/awt/Size.hpp>
28cdf0e10cSrcweir 
29cdf0e10cSrcweir #include "commonembobj.hxx"
30cdf0e10cSrcweir 
31cdf0e10cSrcweir class OSpecialEmbeddedObject : public OCommonEmbeddedObject
32cdf0e10cSrcweir {
33cdf0e10cSrcweir private:
34cdf0e10cSrcweir     com::sun::star::awt::Size         maSize;
35cdf0e10cSrcweir public:
36cdf0e10cSrcweir     OSpecialEmbeddedObject(
37cdf0e10cSrcweir 		const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xFactory,
38cdf0e10cSrcweir         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aObjectProps );
39cdf0e10cSrcweir 
40cdf0e10cSrcweir     // XInterface
41cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& rType )
42cdf0e10cSrcweir 		throw( ::com::sun::star::uno::RuntimeException ) ;
43cdf0e10cSrcweir 
44cdf0e10cSrcweir     // XTypeProvider
45cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
46cdf0e10cSrcweir 		throw( ::com::sun::star::uno::RuntimeException ) ;
47cdf0e10cSrcweir 
48cdf0e10cSrcweir     // XVisualObject
49cdf0e10cSrcweir     virtual ::com::sun::star::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect )
50cdf0e10cSrcweir 		throw ( ::com::sun::star::lang::IllegalArgumentException,
51cdf0e10cSrcweir 				::com::sun::star::embed::WrongStateException,
52cdf0e10cSrcweir 				::com::sun::star::uno::Exception,
53cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
54cdf0e10cSrcweir 
55cdf0e10cSrcweir     virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const ::com::sun::star::awt::Size& aSize )
56cdf0e10cSrcweir 		throw ( ::com::sun::star::lang::IllegalArgumentException,
57cdf0e10cSrcweir 				::com::sun::star::embed::WrongStateException,
58cdf0e10cSrcweir 				::com::sun::star::uno::Exception,
59cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
60cdf0e10cSrcweir 
61cdf0e10cSrcweir     virtual ::com::sun::star::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect )
62cdf0e10cSrcweir 		throw ( ::com::sun::star::lang::IllegalArgumentException,
63cdf0e10cSrcweir 				::com::sun::star::embed::WrongStateException,
64cdf0e10cSrcweir 				::com::sun::star::uno::Exception,
65cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
66cdf0e10cSrcweir 
67cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect )
68cdf0e10cSrcweir 		throw ( ::com::sun::star::uno::Exception,
69cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException);
70cdf0e10cSrcweir 
71cdf0e10cSrcweir     virtual void SAL_CALL changeState( sal_Int32 nNewState )
72cdf0e10cSrcweir 		throw ( ::com::sun::star::embed::UnreachableStateException,
73cdf0e10cSrcweir 				::com::sun::star::embed::WrongStateException,
74cdf0e10cSrcweir 				::com::sun::star::uno::Exception,
75cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
76cdf0e10cSrcweir 
77cdf0e10cSrcweir     virtual void SAL_CALL doVerb( sal_Int32 nVerbID )
78cdf0e10cSrcweir 		throw ( ::com::sun::star::lang::IllegalArgumentException,
79cdf0e10cSrcweir 				::com::sun::star::embed::WrongStateException,
80cdf0e10cSrcweir 				::com::sun::star::embed::UnreachableStateException,
81cdf0e10cSrcweir 				::com::sun::star::uno::Exception,
82cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
83cdf0e10cSrcweir };
84cdf0e10cSrcweir 
85cdf0e10cSrcweir #endif
86cdf0e10cSrcweir 
87