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 #ifndef _BIB_VIEW_HXX 28 #define _BIB_VIEW_HXX 29 30 #include <com/sun/star/beans/XPropertySet.hpp> 31 #include <com/sun/star/awt/XControlContainer.hpp> 32 #include "formcontrolcontainer.hxx" 33 #include "bibshortcuthandler.hxx" 34 35 class BibGeneralPage; 36 class BibDataManager; 37 38 namespace com{ namespace sun{ namespace star{ namespace awt{ class XFocusListener;}}}} 39 40 //......................................................................... 41 namespace bib 42 { 43 //......................................................................... 44 45 // ----------------------------------------------------------------------- 46 class BibView : public BibWindow, public FormControlContainer 47 { 48 private: 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; 53 54 private: 55 DECL_STATIC_LINK(BibView, CallMappingHdl, BibView*); 56 57 protected: 58 // Window overridables 59 virtual void Resize(); 60 61 // FormControlContainer 62 virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer > 63 getControlContainer(); 64 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 ); 68 69 public: 70 BibView( Window* _pParent, BibDataManager* _pDatMan, WinBits nStyle = WB_3DLOOK ); 71 ~BibView(); 72 73 void UpdatePages(); 74 75 virtual void GetFocus(); 76 77 virtual sal_Bool HandleShortCutKey( const KeyEvent& rKeyEvent ); // returns true, if key was handled 78 }; 79 80 //......................................................................... 81 } // namespace bib 82 //......................................................................... 83 84 #endif 85 86 87