Fix GNU C++ version check
[LibreOffice.git] / vcl / inc / qt5 / QtInstanceBuilder.hxx
blob0749eaee1e4c07ef5c1e3ca1d394278bde12beb9
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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 "QtBuilder.hxx"
14 #include <string_view>
16 #include <QtWidgets/QWidget>
18 #include <rtl/ustring.hxx>
19 #include <vcl/weld.hxx>
21 class QtInstanceBuilder : public weld::Builder
23 private:
24 std::unique_ptr<QtBuilder> m_xBuilder;
26 public:
27 QtInstanceBuilder(QWidget* pParent, std::u16string_view sUIRoot, const OUString& rUIFile);
28 ~QtInstanceBuilder();
30 static bool IsUIFileSupported(const OUString& rUIFile);
32 virtual std::unique_ptr<weld::MessageDialog> weld_message_dialog(const OUString& id) override;
33 virtual std::unique_ptr<weld::Dialog> weld_dialog(const OUString& rId) override;
34 virtual std::unique_ptr<weld::Assistant> weld_assistant(const OUString&) override;
35 virtual std::unique_ptr<weld::Window> create_screenshot_window() override;
36 virtual std::unique_ptr<weld::Widget> weld_widget(const OUString& rId) override;
37 virtual std::unique_ptr<weld::Container> weld_container(const OUString& rId) override;
38 virtual std::unique_ptr<weld::Box> weld_box(const OUString&) override;
39 virtual std::unique_ptr<weld::Paned> weld_paned(const OUString&) override;
40 virtual std::unique_ptr<weld::Frame> weld_frame(const OUString& rId) override;
41 virtual std::unique_ptr<weld::ScrolledWindow>
42 weld_scrolled_window(const OUString&, bool bUserManagedScrolling = false) override;
43 virtual std::unique_ptr<weld::Notebook> weld_notebook(const OUString& rId) override;
44 virtual std::unique_ptr<weld::Button> weld_button(const OUString& rId) override;
45 virtual std::unique_ptr<weld::MenuButton> weld_menu_button(const OUString&) override;
46 virtual std::unique_ptr<weld::MenuToggleButton>
47 weld_menu_toggle_button(const OUString&) override;
48 virtual std::unique_ptr<weld::LinkButton> weld_link_button(const OUString& rId) override;
49 virtual std::unique_ptr<weld::ToggleButton> weld_toggle_button(const OUString&) override;
50 virtual std::unique_ptr<weld::RadioButton> weld_radio_button(const OUString& rId) override;
51 virtual std::unique_ptr<weld::CheckButton> weld_check_button(const OUString& rId) override;
52 virtual std::unique_ptr<weld::Scale> weld_scale(const OUString&) override;
53 virtual std::unique_ptr<weld::ProgressBar> weld_progress_bar(const OUString& rId) override;
54 virtual std::unique_ptr<weld::LevelBar> weld_level_bar(const OUString& rId) override;
55 virtual std::unique_ptr<weld::Spinner> weld_spinner(const OUString&) override;
56 virtual std::unique_ptr<weld::Image> weld_image(const OUString& rId) override;
57 virtual std::unique_ptr<weld::Calendar> weld_calendar(const OUString&) override;
58 virtual std::unique_ptr<weld::Entry> weld_entry(const OUString& rId) override;
59 virtual std::unique_ptr<weld::SpinButton> weld_spin_button(const OUString& rId) override;
60 virtual std::unique_ptr<weld::MetricSpinButton> weld_metric_spin_button(const OUString&,
61 FieldUnit) override;
62 virtual std::unique_ptr<weld::FormattedSpinButton>
63 weld_formatted_spin_button(const OUString&) override;
64 virtual std::unique_ptr<weld::ComboBox> weld_combo_box(const OUString& rId) override;
65 virtual std::unique_ptr<weld::EntryTreeView>
66 weld_entry_tree_view(const OUString&, const OUString&, const OUString&) override;
67 virtual std::unique_ptr<weld::TreeView> weld_tree_view(const OUString& rId) override;
68 virtual std::unique_ptr<weld::IconView> weld_icon_view(const OUString& rId) override;
69 virtual std::unique_ptr<weld::Label> weld_label(const OUString& rId) override;
70 virtual std::unique_ptr<weld::TextView> weld_text_view(const OUString& rId) override;
71 virtual std::unique_ptr<weld::Expander> weld_expander(const OUString& rId) override;
72 virtual std::unique_ptr<weld::DrawingArea>
73 weld_drawing_area(const OUString&, const a11yref& rA11yImpl = nullptr,
74 FactoryFunction pUITestFactoryFunction = nullptr,
75 void* pUserData = nullptr) override;
76 virtual std::unique_ptr<weld::Menu> weld_menu(const OUString&) override;
77 virtual std::unique_ptr<weld::Popover> weld_popover(const OUString&) override;
78 virtual std::unique_ptr<weld::Toolbar> weld_toolbar(const OUString&) override;
79 virtual std::unique_ptr<weld::Scrollbar> weld_scrollbar(const OUString&) override;
80 virtual std::unique_ptr<weld::SizeGroup> create_size_group() override;
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */