merged tag ooo/OOO330_m14
[LibreOffice.git] / extensions / source / bibliography / bibbeam.hxx
blob9e5ff677ee6f98ee7550f561a4080d266d1bf4bb
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef ADRBEAM_HXX
29 #define ADRBEAM_HXX
31 #include <com/sun/star/awt/XControlContainer.hpp>
32 #include <com/sun/star/awt/XControl.hpp>
33 #include <com/sun/star/awt/XControlModel.hpp>
34 #include <com/sun/star/form/XForm.hpp>
35 // #100312# -----------------
36 #include <com/sun/star/frame/XDispatchProviderInterception.hpp>
37 #include <cppuhelper/implbase1.hxx> // helper for implementations
38 #include <vcl/splitwin.hxx>
39 #include "toolbar.hxx"
40 #include "formcontrolcontainer.hxx"
41 #include "bibshortcuthandler.hxx"
43 class BibDataManager;
45 //.........................................................................
46 namespace bib
48 //.........................................................................
50 class BibGridwin;
51 class BibBeamer
52 :public BibSplitWindow
53 ,public FormControlContainer
55 private:
57 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController > m_xController;
58 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xToolBarRef;
59 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xGridRef;
60 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > m_xGridWin;
62 BibDataManager* pDatMan;
63 BibToolBar* pToolBar;
64 BibGridwin* pGridWin;
66 DECL_LINK( RecalcLayout_Impl, void* );
68 protected:
70 void createToolBar();
71 void createGridWin();
73 // FormControlContainer ----------
74 virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer >
75 getControlContainer();
76 public:
77 // #100312# -------------------
78 virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProviderInterception >
79 getDispatchProviderInterception();
81 BibBeamer(Window* pParent,BibDataManager* pDatMan, WinBits nStyle = WB_3DLOOK );
82 ~BibBeamer();
84 void SetXController(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController > &);
86 virtual void GetFocus();
89 //.........................................................................
90 } // namespace bib
91 //.........................................................................
93 #endif