/src/libreoffice/sfx2/source/dialog/AdditionsDialogHelper.cxx
Line | Count | Source |
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. |
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 <sfx2/AdditionsDialogHelper.hxx> |
11 | | #include <vcl/abstdlg.hxx> |
12 | | |
13 | | void AdditionsDialogHelper::RunAdditionsDialog(weld::Window* pParent, const OUString& rAdditionsTag) |
14 | 0 | { |
15 | 0 | VclAbstractDialogFactory* pFact = VclAbstractDialogFactory::Create(); |
16 | 0 | VclPtr<AbstractAdditionsDialog> pDialog = pFact->CreateAdditionsDialog(pParent, rAdditionsTag); |
17 | 0 | pDialog->StartExecuteAsync( |
18 | 0 | [pDialog](sal_Int32 /*nResult*/) -> void { pDialog->disposeOnce(); }); |
19 | 0 | } |
20 | | |
21 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |