tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / inc / sortkeydlg.hxx
blob2c702e6100cb6224c710c09a14993e5c8b762d8c
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/.
8 */
10 #pragma once
12 #include <vector>
13 #include <memory>
15 #include <vcl/weld.hxx>
17 struct ScSortKeyItem
19 std::unique_ptr<weld::Builder> m_xBuilder;
21 std::unique_ptr<weld::Frame> m_xFrame;
22 std::unique_ptr<weld::ComboBox> m_xLbSort;
23 std::unique_ptr<weld::RadioButton> m_xBtnUp;
24 std::unique_ptr<weld::RadioButton> m_xBtnDown;
25 std::unique_ptr<weld::Label> m_xLabel;
26 weld::Container* m_pParent;
28 ScSortKeyItem(weld::Container* pParent);
29 ~ScSortKeyItem();
31 void DisableField();
32 void EnableField();
35 typedef std::vector<std::unique_ptr<ScSortKeyItem>> ScSortKeyItems;
37 class ScSortKeyWindow
39 public:
40 ScSortKeyItems m_aSortKeyItems;
42 private:
43 weld::Container* m_pBox;
45 public:
46 ScSortKeyWindow(weld::Container* pBox);
47 ~ScSortKeyWindow();
49 void AddSortKey(sal_uInt16 nItem);
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */