LibreOffice Module extensions (master) 1
bibcont.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
20#pragma once
21
22#include <vcl/timer.hxx>
23#include <vcl/idle.hxx>
25
26#include "bibmod.hxx"
27
28#define TOP_WINDOW 1
29#define BOTTOM_WINDOW 2
30
31class BibWindowContainer : public BibWindow //Window
32{
33 private:
34 // !BibShortCutHandler is also always a Window!
36
37 protected:
38 virtual void Resize() override;
39
40 public:
42 virtual ~BibWindowContainer() override;
43 virtual void dispose() override;
44
45 inline vcl::Window* GetChild();
46
47 virtual void GetFocus() override;
48
49 virtual bool HandleShortCutKey( const KeyEvent& rKeyEvent ) override; // returns true, if key was handled
50
51 using Window::GetChild;
52};
53
55{
56 return pChild ? pChild->GetWindow() : nullptr;
57}
58
59
61{
62 private:
63
68
69 DECL_LINK( SplitHdl, Timer*, void );
70
71 protected:
72
73 virtual void Split() override;
74
75 virtual bool PreNotify( NotifyEvent& rNEvt ) override;
76
77 public:
78
79 explicit BibBookContainer(vcl::Window* pParent );
80 virtual ~BibBookContainer() override;
81 virtual void dispose() override;
82
83 // !BibShortCutHandler is also always a Window!
85
87
88 virtual void GetFocus() override;
89
90 virtual bool HandleShortCutKey( const KeyEvent& rKeyEvent ) override; // returns true, if key was handled
91};
92
93/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void GetFocus() override
Definition: bibcont.cxx:187
VclPtr< BibWindowContainer > pTopWin
Definition: bibcont.hxx:64
virtual bool HandleShortCutKey(const KeyEvent &rKeyEvent) override
Definition: bibcont.cxx:228
void createTopFrame(BibShortCutHandler *pWin)
Definition: bibcont.cxx:156
BibBookContainer(vcl::Window *pParent)
Definition: bibcont.cxx:105
virtual void Split() override
Definition: bibcont.cxx:143
virtual void dispose() override
Definition: bibcont.cxx:121
VclPtr< BibWindowContainer > pBottomWin
Definition: bibcont.hxx:65
DECL_LINK(SplitHdl, Timer *, void)
HdlBibModul pBibMod
Definition: bibcont.hxx:66
virtual ~BibBookContainer() override
Definition: bibcont.cxx:116
void createBottomFrame(BibShortCutHandler *pWin)
Definition: bibcont.cxx:171
virtual bool PreNotify(NotifyEvent &rNEvt) override
Definition: bibcont.cxx:193
vcl::Window * GetWindow()
vcl::Window * GetChild()
Definition: bibcont.hxx:54
virtual void Resize() override
Definition: bibcont.cxx:87
virtual void GetFocus() override
Definition: bibcont.cxx:93
virtual ~BibWindowContainer() override
Definition: bibcont.cxx:71
virtual void dispose() override
Definition: bibcont.cxx:76
BibWindowContainer(vcl::Window *pParent, BibShortCutHandler *pChild)
Definition: bibcont.cxx:58
BibShortCutHandler * pChild
Definition: bibcont.hxx:35
virtual bool HandleShortCutKey(const KeyEvent &rKeyEvent) override
Definition: bibcont.cxx:99