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