Impress Remote 1.0.5, tag sdremote-1.0.5
[LibreOffice.git] / extensions / source / bibliography / bibview.hxx
blobcc3d0332e9e48d737c357aa28d5a77db46a997d6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _BIB_VIEW_HXX
20 #define _BIB_VIEW_HXX
22 #include <com/sun/star/beans/XPropertySet.hpp>
23 #include <com/sun/star/awt/XControlContainer.hpp>
24 #include "formcontrolcontainer.hxx"
25 #include "bibshortcuthandler.hxx"
27 class BibGeneralPage;
28 class BibDataManager;
30 namespace com{ namespace sun{ namespace star{ namespace awt{ class XFocusListener;}}}}
32 //.........................................................................
33 namespace bib
35 //.........................................................................
37 // -----------------------------------------------------------------------
38 class BibView : public BibWindow, public FormControlContainer
40 private:
41 BibDataManager* m_pDatMan;
42 ::com::sun::star::uno::Reference< ::com::sun::star::form::XLoadable> m_xDatMan;
43 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFocusListener> m_xGeneralPage;
44 BibGeneralPage* m_pGeneralPage;
46 private:
47 DECL_STATIC_LINK(BibView, CallMappingHdl, BibView*);
49 protected:
50 // Window overridables
51 virtual void Resize();
53 // FormControlContainer
54 virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer >
55 getControlContainer();
57 // XLoadListener equivalents
58 virtual void _loaded( const ::com::sun::star::lang::EventObject& _rEvent );
59 virtual void _reloaded( const ::com::sun::star::lang::EventObject& _rEvent );
61 public:
62 BibView( Window* _pParent, BibDataManager* _pDatMan, WinBits nStyle = WB_3DLOOK );
63 ~BibView();
65 void UpdatePages();
67 virtual void GetFocus();
69 virtual sal_Bool HandleShortCutKey( const KeyEvent& rKeyEvent ); // returns true, if key was handled
72 //.........................................................................
73 } // namespace bib
74 //.........................................................................
76 #endif
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */