1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef _INC_SPECIALOBJECT_HXX_
30 #define _INC_SPECIALOBJECT_HXX_
32 #include <com/sun/star/awt/Size.hpp>
34 #include "commonembobj.hxx"
36 class OSpecialEmbeddedObject
: public OCommonEmbeddedObject
39 com::sun::star::awt::Size maSize
;
41 OSpecialEmbeddedObject(
42 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& xFactory
,
43 const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::NamedValue
>& aObjectProps
);
46 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type
& rType
)
47 throw( ::com::sun::star::uno::RuntimeException
) ;
50 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes()
51 throw( ::com::sun::star::uno::RuntimeException
) ;
54 virtual ::com::sun::star::embed::VisualRepresentation SAL_CALL
getPreferredVisualRepresentation( ::sal_Int64 nAspect
)
55 throw ( ::com::sun::star::lang::IllegalArgumentException
,
56 ::com::sun::star::embed::WrongStateException
,
57 ::com::sun::star::uno::Exception
,
58 ::com::sun::star::uno::RuntimeException
);
60 virtual void SAL_CALL
setVisualAreaSize( sal_Int64 nAspect
, const ::com::sun::star::awt::Size
& aSize
)
61 throw ( ::com::sun::star::lang::IllegalArgumentException
,
62 ::com::sun::star::embed::WrongStateException
,
63 ::com::sun::star::uno::Exception
,
64 ::com::sun::star::uno::RuntimeException
);
66 virtual ::com::sun::star::awt::Size SAL_CALL
getVisualAreaSize( sal_Int64 nAspect
)
67 throw ( ::com::sun::star::lang::IllegalArgumentException
,
68 ::com::sun::star::embed::WrongStateException
,
69 ::com::sun::star::uno::Exception
,
70 ::com::sun::star::uno::RuntimeException
);
72 virtual sal_Int32 SAL_CALL
getMapUnit( sal_Int64 nAspect
)
73 throw ( ::com::sun::star::uno::Exception
,
74 ::com::sun::star::uno::RuntimeException
);
76 virtual void SAL_CALL
changeState( sal_Int32 nNewState
)
77 throw ( ::com::sun::star::embed::UnreachableStateException
,
78 ::com::sun::star::embed::WrongStateException
,
79 ::com::sun::star::uno::Exception
,
80 ::com::sun::star::uno::RuntimeException
);
82 virtual void SAL_CALL
doVerb( sal_Int32 nVerbID
)
83 throw ( ::com::sun::star::lang::IllegalArgumentException
,
84 ::com::sun::star::embed::WrongStateException
,
85 ::com::sun::star::embed::UnreachableStateException
,
86 ::com::sun::star::uno::Exception
,
87 ::com::sun::star::uno::RuntimeException
);
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */