Update ooo320-m1
[ooovba.git] / svtools / source / hatchwindow / hatchwindow.hxx
blob461c413ea4bb45ebe93c2fe0ed08550bb527abc4
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: hatchwindow.hxx,v $
10 * $Revision: 1.5 $
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 _SVT_HATCHWINDOW_HXX
32 #define _SVT_HATCHWINDOW_HXX
34 #include <com/sun/star/embed/XHatchWindow.hpp>
36 #include <toolkit/awt/vclxwindow.hxx>
37 #include <cppuhelper/typeprovider.hxx>
39 class SvResizeWindow;
40 class VCLXHatchWindow : public ::com::sun::star::embed::XHatchWindow,
41 public VCLXWindow
43 ::com::sun::star::uno::Reference< ::com::sun::star::embed::XHatchWindowController > m_xController;
44 ::com::sun::star::awt::Size aHatchBorderSize;
45 SvResizeWindow* pHatchWindow;
47 public:
48 VCLXHatchWindow();
49 ~VCLXHatchWindow();
51 void initializeWindow( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& xParent,
52 const ::com::sun::star::awt::Rectangle& aBounds,
53 const ::com::sun::star::awt::Size& aSize );
55 void QueryObjAreaPixel( Rectangle & );
56 void RequestObjAreaPixel( const Rectangle & );
57 void InplaceDeactivate();
58 void Activated();
59 void Deactivated();
61 // XInterface
62 ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& rType ) throw(::com::sun::star::uno::RuntimeException);
63 void SAL_CALL acquire() throw();
64 void SAL_CALL release() throw();
66 // XTypeProvider
67 ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
68 ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
70 // XHatchWindow
71 virtual void SAL_CALL setController( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XHatchWindowController >& xController ) throw (::com::sun::star::uno::RuntimeException);
72 virtual ::com::sun::star::awt::Size SAL_CALL getHatchBorderSize() throw (::com::sun::star::uno::RuntimeException);
73 virtual void SAL_CALL setHatchBorderSize( const ::com::sun::star::awt::Size& _hatchbordersize ) throw (::com::sun::star::uno::RuntimeException);
75 // XComponent
76 virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException);
77 virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
78 virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
81 #endif // _SVT_HATCHWINDOW_HXX