LibreOffice Module dbaccess (master) 1
AppSwapWindow.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 <IClipBoardTest.hxx>
22#include "AppIconControl.hxx"
23#include <AppElementType.hxx>
24#include <ChildWindow.hxx>
25
26struct ImplSVEvent;
28
29namespace dbaui
30{
31 class OAppBorderWindow;
33 , public IClipboardTest
34 {
35 std::unique_ptr<OApplicationIconControl> m_xIconControl;
36 std::unique_ptr<weld::CustomWeld> m_xIconControlWin;
40
41 DECL_LINK( OnContainerSelectHdl, const ThumbnailViewItem*, void );
42 DECL_LINK( ChangeToLastSelected, void*, void );
43
44 public:
46 virtual ~OApplicationSwapWindow() override;
47
48 virtual void GrabFocus() override;
49 virtual bool HasChildPathFocus() const override;
50
51 bool isCutAllowed() override { return false; }
52 bool isCopyAllowed() override { return false; }
53 bool isPasteAllowed() override { return false; }
54 void copy() override { }
55 void cut() override { }
56 void paste() override { }
57
60 void createIconAutoMnemonics( MnemonicGenerator& _rMnemonics );
61
68 bool interceptKeyInput( const KeyEvent& _rEvent );
69
72
75 void clearSelection();
76
81 void selectContainer(ElementType _eType);
82
83 private:
84 bool onContainerSelected( ElementType _eType );
85 };
86} // namespace dbaui
87
88/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool interceptKeyInput(const KeyEvent &_rEvent)
called to give the window the chance to intercept key events, while it has not the focus
ElementType getElementType() const
return the element of currently select entry
DECL_LINK(OnContainerSelectHdl, const ThumbnailViewItem *, void)
std::unique_ptr< weld::CustomWeld > m_xIconControlWin
bool onContainerSelected(ElementType _eType)
void selectContainer(ElementType _eType)
changes the container which should be displayed.
DECL_LINK(ChangeToLastSelected, void *, void)
OApplicationSwapWindow(weld::Container *pParent, OAppBorderWindow &rBorderWindow)
std::unique_ptr< OApplicationIconControl > m_xIconControl
virtual ~OApplicationSwapWindow() override
void createIconAutoMnemonics(MnemonicGenerator &_rMnemonics)
automatically creates mnemonics for the icon/texts in our left hand side panel
virtual void GrabFocus() override
OAppBorderWindow & m_rBorderWin
virtual bool HasChildPathFocus() const override
void clearSelection()
clears the selection in the icon choice control and calls the handler