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 #include <QtInstanceDialog.hxx> 11 12 QtInstanceDialog::QtInstanceDialog(QDialog* pDialog) 13 : m_pDialog(pDialog) 14 { 15 } 16 17 bool QtInstanceDialog::runAsync(std::shared_ptr<Dialog> const&, 18 const std::function<void(sal_Int32)>&) 19 { 20 return true; 21 } 22 23 bool QtInstanceDialog::runAsync(const std::shared_ptr<weld::DialogController>&, 24 const std::function<void(sal_Int32)>&) 25 { 26 return true; 27 } 28 29 void QtInstanceDialog::collapse(weld::Widget*, weld::Widget*) {} 30 31 void QtInstanceDialog::undo_collapse() {} 32 33 void QtInstanceDialog::SetInstallLOKNotifierHdl(const Link<void*, vcl::ILibreOfficeKitNotifier*>&) 34 { 35 } 36 37 int QtInstanceDialog::run() { return qtResponseTypeToVclResponseType(m_pDialog->exec()); } 38 39 void QtInstanceDialog::response(int) {} 40 41 void QtInstanceDialog::add_button(const OUString&, int, const OUString&) {} 42 43 void QtInstanceDialog::set_modal(bool) {} 44 45 bool QtInstanceDialog::get_modal() const { return true; } 46 47 weld::Button* QtInstanceDialog::weld_widget_for_response(int) { return nullptr; } 48 49 void QtInstanceDialog::set_default_response(int) {} 50 51 weld::Container* QtInstanceDialog::weld_content_area() { return nullptr; } 52 53 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 54
