/src/libreoffice/sc/source/ui/inc/SheetViewBox.hxx
Line | Count | Source |
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 | | |
10 | | #pragma once |
11 | | |
12 | | #include <vcl/InterimItemWindow.hxx> |
13 | | #include <vcl/weld/ComboBox.hxx> |
14 | | #include <SheetViewTypes.hxx> |
15 | | |
16 | | /** Box / container for the combobox for showing / selecting the sheet view */ |
17 | | class SheetViewBox final : public InterimItemWindow |
18 | | { |
19 | | public: |
20 | | explicit SheetViewBox(vcl::Window* pParent); |
21 | | virtual void dispose() override; |
22 | | virtual ~SheetViewBox() override; |
23 | | |
24 | | virtual void GetFocus() override; |
25 | | |
26 | | void Update(sc::SheetViewID nID); |
27 | | |
28 | 0 | weld::ComboBox* getWidget() { return m_xWidget.get(); } |
29 | | |
30 | | private: |
31 | | std::unique_ptr<weld::ComboBox> m_xWidget; |
32 | | |
33 | | DECL_STATIC_LINK(SheetViewBox, SelectHdl, weld::ComboBox&, void); |
34 | | DECL_LINK(KeyInputHdl, const KeyEvent&, bool); |
35 | | }; |
36 | | |
37 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |