summaryrefslogtreecommitdiff
path: root/vcl/qt5/QtInstanceDialog.cxx
blob: cdd75cd9675fe373727cc51b9eb4f15ce62e82b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * 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/.
 */

#include <QtInstanceDialog.hxx>

QtInstanceDialog::QtInstanceDialog(QDialog* pDialog)
    : QtInstanceWindow(pDialog)
    , m_pDialog(pDialog)
{
}

bool QtInstanceDialog::runAsync(std::shared_ptr<Dialog> const&,
                                const std::function<void(sal_Int32)>&)
{
    return true;
}

bool QtInstanceDialog::runAsync(const std::shared_ptr<weld::DialogController>&,
                                const std::function<void(sal_Int32)>&)
{
    return true;
}

void QtInstanceDialog::collapse(weld::Widget*, weld::Widget*) {}

void QtInstanceDialog::undo_collapse() {}

void QtInstanceDialog::SetInstallLOKNotifierHdl(const Link<void*, vcl::ILibreOfficeKitNotifier*>&)
{
}

int QtInstanceDialog::run() { return qtResponseTypeToVclResponseType(m_pDialog->exec()); }

void QtInstanceDialog::response(int) {}

void QtInstanceDialog::add_button(const OUString&, int, const OUString&) {}

void QtInstanceDialog::set_modal(bool bModal) { m_pDialog->setModal(bModal); }

bool QtInstanceDialog::get_modal() const { return m_pDialog->isModal(); }

weld::Button* QtInstanceDialog::weld_widget_for_response(int) { return nullptr; }

void QtInstanceDialog::set_default_response(int) {}

weld::Container* QtInstanceDialog::weld_content_area() { return nullptr; }

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */