xref: /AOO41X/main/extensions/source/bibliography/bibbeam.hxx (revision 46dbaceef8c12a09e4905feda473ecab36e10d03)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef ADRBEAM_HXX
25 #define ADRBEAM_HXX
26 
27 #include <com/sun/star/awt/XControlContainer.hpp>
28 #include <com/sun/star/awt/XControl.hpp>
29 #include <com/sun/star/awt/XControlModel.hpp>
30 #include <com/sun/star/form/XForm.hpp>
31 // #100312# -----------------
32 #include <com/sun/star/frame/XDispatchProviderInterception.hpp>
33 #include <cppuhelper/implbase1.hxx> // helper for implementations
34 #include <vcl/splitwin.hxx>
35 #include "toolbar.hxx"
36 #include "formcontrolcontainer.hxx"
37 #include "bibshortcuthandler.hxx"
38 
39 class BibDataManager;
40 
41 //.........................................................................
42 namespace bib
43 {
44 //.........................................................................
45 
46     class BibGridwin;
47     class BibBeamer
48             :public BibSplitWindow
49             ,public FormControlContainer
50     {
51         private:
52 
53             ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController >            m_xController;
54             ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >                 m_xToolBarRef;
55             ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >                 m_xGridRef;
56             ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >                  m_xGridWin;
57 
58             BibDataManager*         pDatMan;
59             BibToolBar*             pToolBar;
60             BibGridwin*             pGridWin;
61 
62             DECL_LINK( RecalcLayout_Impl, void* );
63 
64         protected:
65 
66             void                    createToolBar();
67             void                    createGridWin();
68 
69             // FormControlContainer ----------
70             virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer >
71                     getControlContainer();
72         public:
73             // #100312# -------------------
74             virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProviderInterception >
75                     getDispatchProviderInterception();
76 
77             BibBeamer(Window* pParent,BibDataManager* pDatMan, WinBits nStyle = WB_3DLOOK );
78             ~BibBeamer();
79 
80             void    SetXController(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController > &);
81 
82             virtual void            GetFocus();
83     };
84 
85 //.........................................................................
86 }   // namespace bib
87 //.........................................................................
88 
89 #endif
90