| 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 |
* This file incorporates work covered by the following license notice: |
| 10 |
* |
| 11 |
* Licensed to the Apache Software Foundation (ASF) under one or more |
| 12 |
* contributor license agreements. See the NOTICE file distributed |
| 13 |
* with this work for additional information regarding copyright |
| 14 |
* ownership. The ASF licenses this file to you under the Apache |
| 15 |
* License, Version 2.0 (the "License"); you may not use this file |
| 16 |
* except in compliance with the License. You may obtain a copy of |
| 17 |
* the License at http://www.apache.org/licenses/LICENSE-2.0 . |
| 18 |
*/ |
| 19 |
|
| 20 |
#include "kde5_filepicker.hxx" |
| 21 |
#include "kde5_filepicker_ipc.hxx" |
| 22 |
|
| 23 |
#include <QApplication> |
| 24 |
#include <QCommandLineParser> |
| 25 |
|
| 26 |
#include <config_version.h> |
| 27 |
|
| 28 |
int main(int argc, char** argv) |
| 29 |
{ |
| 30 |
QApplication::setOrganizationName("LibreOffice"); |
| 31 |
QApplication::setOrganizationDomain("libreoffice.org"); |
| 32 |
QApplication::setApplicationName(QStringLiteral("lo_kde5filepicker")); |
| 33 |
QApplication::setQuitOnLastWindowClosed(false); |
| 34 |
QApplication::setApplicationVersion(LIBO_VERSION_DOTTED); |
| 35 |
|
| 36 |
QApplication app(argc, argv); |
| 37 |
|
| 38 |
QCommandLineParser parser; |
| 39 |
parser.setApplicationDescription( |
| 40 |
QObject::tr("Helper executable for LibreOffice KDE/Plasma integration.\n" |
| 41 |
"Do not run this executable directly. Rather, use it indirectly via " |
| 42 |
"the gtk3_kde5 VCL plugin (SAL_USE_VCLPLUGIN=gtk3_kde5).")); |
| 43 |
parser.addVersionOption(); |
| 44 |
parser.addHelpOption(); |
| 45 |
parser.process(app); |
| 46 |
|
| 47 |
KDE5FilePicker filePicker; |
| 48 |
FilePickerIpc ipc(&filePicker); |
| 49 |
|
| 50 |
return QApplication::exec(); |
| 51 |
} |
| 52 |
|
| 53 |
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |