xref: /AOO42X/main/extensions/source/bibliography/bibbeam.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
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.
14  *
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).
20  *
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.
25  *
26  ************************************************************************/
27 
28 #ifndef ADRBEAM_HXX
29 #define ADRBEAM_HXX
30 
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"
42 
43 class BibDataManager;
44 
45 //.........................................................................
46 namespace bib
47 {
48 //.........................................................................
49 
50     class BibGridwin;
51     class BibBeamer
52             :public BibSplitWindow
53             ,public FormControlContainer
54     {
55         private:
56 
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;
61 
62             BibDataManager*         pDatMan;
63             BibToolBar*             pToolBar;
64             BibGridwin*             pGridWin;
65 
66             DECL_LINK( RecalcLayout_Impl, void* );
67 
68         protected:
69 
70             void                    createToolBar();
71             void                    createGridWin();
72 
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();
80 
81             BibBeamer(Window* pParent,BibDataManager* pDatMan, WinBits nStyle = WB_3DLOOK );
82             ~BibBeamer();
83 
84             void    SetXController(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController > &);
85 
86             virtual void            GetFocus();
87     };
88 
89 //.........................................................................
90 }   // namespace bib
91 //.........................................................................
92 
93 #endif
94