1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: bibview.hxx,v $
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 ************************************************************************/
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"
43 namespace com
{ namespace sun
{ namespace star
{ namespace awt
{ class XFocusListener
;}}}}
45 //.........................................................................
48 //.........................................................................
50 // -----------------------------------------------------------------------
51 class BibView
: public BibWindow
, public FormControlContainer
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
;
60 DECL_STATIC_LINK(BibView
, CallMappingHdl
, BibView
*);
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
);
75 BibView( Window
* _pParent
, BibDataManager
* _pDatMan
, WinBits nStyle
= WB_3DLOOK
);
80 virtual void GetFocus();
82 virtual BOOL
HandleShortCutKey( const KeyEvent
& rKeyEvent
); // returns true, if key was handled
85 //.........................................................................
87 //.........................................................................