/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #pragma once #include "QtBuilder.hxx" #include #include #include #include class QtInstanceBuilder : public weld::Builder { private: std::unique_ptr m_xBuilder; public: QtInstanceBuilder(QWidget* pParent, std::u16string_view sUIRoot, const OUString& rUIFile); ~QtInstanceBuilder(); static bool IsUIFileSupported(const OUString& rUIFile); virtual std::unique_ptr weld_message_dialog(const OUString& id) override; virtual std::unique_ptr weld_dialog(const OUString& rId) override; virtual std::unique_ptr weld_assistant(const OUString&) override; virtual std::unique_ptr create_screenshot_window() override; virtual std::unique_ptr weld_widget(const OUString& rId) override; virtual std::unique_ptr weld_container(const OUString& rId) override; virtual std::unique_ptr weld_box(const OUString&) override; virtual std::unique_ptr weld_grid(const OUString& rId) override; virtual std::unique_ptr weld_paned(const OUString&) override; virtual std::unique_ptr weld_frame(const OUString& rId) override; virtual std::unique_ptr weld_scrolled_window(const OUString& rId, bool bUserManagedScrolling = false) override; virtual std::unique_ptr weld_notebook(const OUString& rId) override; virtual std::unique_ptr weld_button(const OUString& rId) override; virtual std::unique_ptr weld_menu_button(const OUString&) override; virtual std::unique_ptr weld_menu_toggle_button(const OUString&) override; virtual std::unique_ptr weld_link_button(const OUString& rId) override; virtual std::unique_ptr weld_toggle_button(const OUString& rId) override; virtual std::unique_ptr weld_radio_button(const OUString& rId) override; virtual std::unique_ptr weld_check_button(const OUString& rId) override; virtual std::unique_ptr weld_scale(const OUString& rId) override; virtual std::unique_ptr weld_progress_bar(const OUString& rId) override; virtual std::unique_ptr weld_level_bar(const OUString& rId) override; virtual std::unique_ptr weld_spinner(const OUString&) override; virtual std::unique_ptr weld_image(const OUString& rId) override; virtual std::unique_ptr weld_calendar(const OUString&) override; virtual std::unique_ptr weld_entry(const OUString& rId) override; virtual std::unique_ptr weld_spin_button(const OUString& rId) override; virtual std::unique_ptr weld_metric_spin_button(const OUString&, FieldUnit) override; virtual std::unique_ptr weld_formatted_spin_button(const OUString&) override; virtual std::unique_ptr weld_combo_box(const OUString& rId) override; virtual std::unique_ptr weld_entry_tree_view(const OUString&, const OUString&, const OUString&) override; virtual std::unique_ptr weld_tree_view(const OUString& rId) override; virtual std::unique_ptr weld_icon_view(const OUString& rId) override; virtual std::unique_ptr weld_label(const OUString& rId) override; virtual std::unique_ptr weld_text_view(const OUString& rId) override; virtual std::unique_ptr weld_expander(const OUString& rId) override; virtual std::unique_ptr weld_drawing_area(const OUString&, const a11yref& rA11yImpl = nullptr, FactoryFunction pUITestFactoryFunction = nullptr, void* pUserData = nullptr) override; virtual std::unique_ptr weld_menu(const OUString&) override; virtual std::unique_ptr weld_popover(const OUString&) override; virtual std::unique_ptr weld_toolbar(const OUString&) override; virtual std::unique_ptr weld_scrollbar(const OUString&) override; virtual std::unique_ptr create_size_group() override; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */