LibreOffice Module extensions (master) 1
bibview.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include <com/sun/star/awt/XControlContainer.hpp>
24
25class BibGeneralPage;
26class BibDataManager;
27
28namespace com::sun::star::awt{ class XFocusListener;}
29
30namespace bib
31{
32 class BibView;
34 {
35 private:
37 protected:
38 // FormControlContainer
39 virtual css::uno::Reference< css::awt::XControlContainer >
40 getControlContainer() override;
41 // XLoadListener equivalents
42 virtual void _loaded( const css::lang::EventObject& _rEvent ) override;
43 virtual void _reloaded( const css::lang::EventObject& _rEvent ) override;
44 public:
48 explicit BibViewFormControlContainer(BibView *pBibView);
49 };
50
51 class BibView : public BibWindow
52 {
53 private:
55 css::uno::Reference< css::form::XLoadable> m_xDatMan;
58
59 private:
60 DECL_LINK(CallMappingHdl, void*, void);
61
62 public:
63 // Window overridables
64 virtual void Resize() override;
65
66 public:
67 BibView( vcl::Window* _pParent, BibDataManager* _pDatMan, WinBits nStyle );
68 virtual ~BibView() override;
69 virtual void dispose() override;
70
71 void UpdatePages();
72
73 virtual void GetFocus() override;
74
75 virtual bool HandleShortCutKey( const KeyEvent& rKeyEvent ) override; // returns true, if key was handled
76 };
77
78
79} // namespace bib
80
81
82
83/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
BibViewFormControlContainer(BibView *pBibView)
Definition: bibview.cxx:138
virtual void _loaded(const css::lang::EventObject &_rEvent) override
Definition: bibview.cxx:140
virtual void _reloaded(const css::lang::EventObject &_rEvent) override
Definition: bibview.cxx:147
virtual css::uno::Reference< css::awt::XControlContainer > getControlContainer() override
Definition: bibview.cxx:169
VclPtr< BibView > mpBibView
Definition: bibview.hxx:36
DECL_LINK(CallMappingHdl, void *, void)
virtual bool HandleShortCutKey(const KeyEvent &rKeyEvent) override
Definition: bibview.cxx:180
virtual void Resize() override
Definition: bibview.cxx:159
virtual void GetFocus() override
Definition: bibview.cxx:174
virtual void dispose() override
Definition: bibview.cxx:76
BibView(vcl::Window *_pParent, BibDataManager *_pDatMan, WinBits nStyle)
Definition: bibview.cxx:59
VclPtr< BibGeneralPage > m_pGeneralPage
Definition: bibview.hxx:56
virtual ~BibView() override
Definition: bibview.cxx:71
BibViewFormControlContainer m_aFormControlContainer
Definition: bibview.hxx:57
BibDataManager * m_pDatMan
Definition: bibview.hxx:54
void UpdatePages()
Definition: bibview.cxx:88
css::uno::Reference< css::form::XLoadable > m_xDatMan
Definition: bibview.hxx:55
void connectForm(const css::uno::Reference< css::form::XLoadable > &_rxForm)
Definition: bibbeam.cxx:40
sal_Int64 WinBits