merge the formfield patch from ooo-build
[ooovba.git] / extensions / source / bibliography / bibbeam.hxx
blobb609493db6507ceea47f36ea9fcf483ea9ea70a6
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: bibbeam.hxx,v $
10 * $Revision: 1.9 $
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 ADRBEAM_HXX
32 #define ADRBEAM_HXX
34 #include <com/sun/star/awt/XControlContainer.hpp>
35 #include <com/sun/star/awt/XControl.hpp>
36 #include <com/sun/star/awt/XControlModel.hpp>
37 #include <com/sun/star/form/XForm.hpp>
38 // #100312# -----------------
39 #include <com/sun/star/frame/XDispatchProviderInterception.hpp>
40 #include <cppuhelper/implbase1.hxx> // helper for implementations
41 #include <vcl/splitwin.hxx>
42 #include "toolbar.hxx"
43 #include "formcontrolcontainer.hxx"
44 #include "bibshortcuthandler.hxx"
46 class BibDataManager;
48 //.........................................................................
49 namespace bib
51 //.........................................................................
53 class BibGridwin;
54 class BibBeamer
55 :public BibSplitWindow
56 ,public FormControlContainer
58 private:
60 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController > m_xController;
61 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xToolBarRef;
62 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xGridRef;
63 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > m_xGridWin;
65 BibDataManager* pDatMan;
66 BibToolBar* pToolBar;
67 BibGridwin* pGridWin;
69 DECL_LINK( RecalcLayout_Impl, void* );
71 protected:
73 void createToolBar();
74 void createGridWin();
76 // FormControlContainer ----------
77 virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer >
78 getControlContainer();
79 public:
80 // #100312# -------------------
81 virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProviderInterception >
82 getDispatchProviderInterception();
84 BibBeamer(Window* pParent,BibDataManager* pDatMan, WinBits nStyle = WB_3DLOOK );
85 ~BibBeamer();
87 void SetXController(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController > &);
89 virtual void GetFocus();
92 //.........................................................................
93 } // namespace bib
94 //.........................................................................
96 #endif