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 ************************************************************************/
30 #include <com/sun/star/beans/XPropertySet.hpp>
31 #include <com/sun/star/awt/XControlContainer.hpp>
32 #include "formcontrolcontainer.hxx"
33 #include "bibshortcuthandler.hxx"
38 namespace com
{ namespace sun
{ namespace star
{ namespace awt
{ class XFocusListener
;}}}}
40 //.........................................................................
43 //.........................................................................
45 // -----------------------------------------------------------------------
46 class BibView
: public BibWindow
, public FormControlContainer
49 BibDataManager
* m_pDatMan
;
50 ::com::sun::star::uno::Reference
< ::com::sun::star::form::XLoadable
> m_xDatMan
;
51 ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XFocusListener
> m_xGeneralPage
;
52 BibGeneralPage
* m_pGeneralPage
;
55 DECL_STATIC_LINK(BibView
, CallMappingHdl
, BibView
*);
58 // Window overridables
59 virtual void Resize();
61 // FormControlContainer
62 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XControlContainer
>
63 getControlContainer();
65 // XLoadListener equivalents
66 virtual void _loaded( const ::com::sun::star::lang::EventObject
& _rEvent
);
67 virtual void _reloaded( const ::com::sun::star::lang::EventObject
& _rEvent
);
70 BibView( Window
* _pParent
, BibDataManager
* _pDatMan
, WinBits nStyle
= WB_3DLOOK
);
75 virtual void GetFocus();
77 virtual BOOL
HandleShortCutKey( const KeyEvent
& rKeyEvent
); // returns true, if key was handled
80 //.........................................................................
82 //.........................................................................