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: specialobject.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 ************************************************************************/
31 #ifndef _INC_SPECIALOBJECT_HXX_
32 #define _INC_SPECIALOBJECT_HXX_
34 #include <com/sun/star/awt/Size.hpp>
36 #include "commonembobj.hxx"
38 class OSpecialEmbeddedObject
: public OCommonEmbeddedObject
41 com::sun::star::awt::Size maSize
;
43 OSpecialEmbeddedObject(
44 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& xFactory
,
45 const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::NamedValue
>& aObjectProps
);
48 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type
& rType
)
49 throw( ::com::sun::star::uno::RuntimeException
) ;
52 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes()
53 throw( ::com::sun::star::uno::RuntimeException
) ;
56 virtual ::com::sun::star::embed::VisualRepresentation SAL_CALL
getPreferredVisualRepresentation( ::sal_Int64 nAspect
)
57 throw ( ::com::sun::star::lang::IllegalArgumentException
,
58 ::com::sun::star::embed::WrongStateException
,
59 ::com::sun::star::uno::Exception
,
60 ::com::sun::star::uno::RuntimeException
);
62 virtual void SAL_CALL
setVisualAreaSize( sal_Int64 nAspect
, const ::com::sun::star::awt::Size
& aSize
)
63 throw ( ::com::sun::star::lang::IllegalArgumentException
,
64 ::com::sun::star::embed::WrongStateException
,
65 ::com::sun::star::uno::Exception
,
66 ::com::sun::star::uno::RuntimeException
);
68 virtual ::com::sun::star::awt::Size SAL_CALL
getVisualAreaSize( sal_Int64 nAspect
)
69 throw ( ::com::sun::star::lang::IllegalArgumentException
,
70 ::com::sun::star::embed::WrongStateException
,
71 ::com::sun::star::uno::Exception
,
72 ::com::sun::star::uno::RuntimeException
);
74 virtual sal_Int32 SAL_CALL
getMapUnit( sal_Int64 nAspect
)
75 throw ( ::com::sun::star::uno::Exception
,
76 ::com::sun::star::uno::RuntimeException
);
78 virtual void SAL_CALL
changeState( sal_Int32 nNewState
)
79 throw ( ::com::sun::star::embed::UnreachableStateException
,
80 ::com::sun::star::embed::WrongStateException
,
81 ::com::sun::star::uno::Exception
,
82 ::com::sun::star::uno::RuntimeException
);
84 virtual void SAL_CALL
doVerb( sal_Int32 nVerbID
)
85 throw ( ::com::sun::star::lang::IllegalArgumentException
,
86 ::com::sun::star::embed::WrongStateException
,
87 ::com::sun::star::embed::UnreachableStateException
,
88 ::com::sun::star::uno::Exception
,
89 ::com::sun::star::uno::RuntimeException
);