Update ooo320-m1
[ooovba.git] / toolkit / source / awt / vclxplugin.hxx
blobb6a7f04b56f6cff570ad3fd226b577a24edcc5de
1 /*************************************************************************
3 * OpenOffice.org - a multi-platform office productivity suite
5 * $RCSfile$
7 * $Revision$
9 * last change: $Author$ $Date$
11 * The Contents of this file are made available subject to
12 * the terms of GNU Lesser General Public License Version 2.1.
15 * GNU Lesser General Public License Version 2.1
16 * =============================================
17 * Copyright 2005 by Sun Microsystems, Inc.
18 * 901 San Antonio Road, Palo Alto, CA 94303, USA
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License version 2.1, as published by the Free Software Foundation.
24 * This library is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27 * Lesser General Public License for more details.
29 * You should have received a copy of the GNU Lesser General Public
30 * License along with this library; if not, write to the Free Software
31 * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston,
32 * MA 02110-1301 USA
34 ************************************************************************/
36 #ifndef LAYOUT_AWT_VCLXPLUGIN_HXX
37 #define LAYOUT_AWT_VCLXPLUGIN_HXX
39 #include <toolkit/awt/vclxwindow.hxx>
40 #include <vcl/wintypes.hxx>
42 class Control;
43 namespace layoutimpl
46 namespace css = ::com::sun::star;
48 class VCLXPlugin : public VCLXWindow
50 public:
51 Window *mpWindow;
52 ::Control *mpPlugin;
53 WinBits mStyle;
55 VCLXPlugin( Window *p, WinBits b );
57 void SetPlugin( ::Control *p );
59 protected:
60 ~VCLXPlugin();
62 // XComponent
63 void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException);
65 virtual ::com::sun::star::awt::Size SAL_CALL getMinimumSize()
66 throw(::com::sun::star::uno::RuntimeException);
68 private:
69 VCLXPlugin( VCLXPlugin const & );
70 VCLXPlugin& operator=( VCLXPlugin const & );
73 } // namespace layoutimpl
75 #endif /* LAYOUT_AWT_VCLXPLUGIN_HXX */