merge the formfield patch from ooo-build
[ooovba.git] / extensions / source / bibliography / bibview.hxx
blobb51101ffceef10ee537b676c6a095bed7e2dde9b
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: bibview.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 ************************************************************************/
30 #ifndef _BIB_VIEW_HXX
31 #define _BIB_VIEW_HXX
33 #include <com/sun/star/beans/XPropertySet.hpp>
34 #include <com/sun/star/awt/XControlContainer.hpp>
35 #include <svtools/section.hxx>
36 #include <svtools/sectctr.hxx>
37 #include "formcontrolcontainer.hxx"
38 #include "bibshortcuthandler.hxx"
40 class BibGeneralPage;
41 class BibDataManager;
43 namespace com{ namespace sun{ namespace star{ namespace awt{ class XFocusListener;}}}}
45 //.........................................................................
46 namespace bib
48 //.........................................................................
50 // -----------------------------------------------------------------------
51 class BibView : public BibWindow, public FormControlContainer
53 private:
54 BibDataManager* m_pDatMan;
55 ::com::sun::star::uno::Reference< ::com::sun::star::form::XLoadable> m_xDatMan;
56 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFocusListener> m_xGeneralPage;
57 BibGeneralPage* m_pGeneralPage;
59 private:
60 DECL_STATIC_LINK(BibView, CallMappingHdl, BibView*);
62 protected:
63 // Window overridables
64 virtual void Resize();
66 // FormControlContainer
67 virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer >
68 getControlContainer();
70 // XLoadListener equivalents
71 virtual void _loaded( const ::com::sun::star::lang::EventObject& _rEvent );
72 virtual void _reloaded( const ::com::sun::star::lang::EventObject& _rEvent );
74 public:
75 BibView( Window* _pParent, BibDataManager* _pDatMan, WinBits nStyle = WB_3DLOOK );
76 ~BibView();
78 void UpdatePages();
80 virtual void GetFocus();
82 virtual BOOL HandleShortCutKey( const KeyEvent& rKeyEvent ); // returns true, if key was handled
85 //.........................................................................
86 } // namespace bib
87 //.........................................................................
89 #endif