1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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/.
12 #include <sal/config.h>
14 #include <string_view>
16 #include <vcl/weld.hxx>
18 class ToolbarmodeDialog
: public weld::GenericDialogController
21 ToolbarmodeDialog(weld::Window
* pWindow
);
22 virtual ~ToolbarmodeDialog() override
;
25 std::unique_ptr
<weld::Image
> m_pImage
;
26 std::unique_ptr
<weld::Button
> m_pApply
;
27 std::unique_ptr
<weld::Button
> m_pApplyAll
;
28 std::unique_ptr
<weld::RadioButton
> m_pRadioButtons
[9];
29 std::unique_ptr
<weld::Label
> m_pInfoLabel
;
31 void UpdateImage(std::u16string_view sFileName
);
32 int GetActiveRadioButton();
33 DECL_LINK(SelectToolbarmode
, weld::Toggleable
&, void);
34 DECL_LINK(OnApplyClick
, weld::Button
&, void);
37 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */