mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
83 lines
3.5 KiB
C++
83 lines
3.5 KiB
C++
/*
|
|
* (c) Copyright Ascensio System SIA 2010-2019
|
|
*
|
|
* This program is a free software product. You can redistribute it and/or
|
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
|
* version 3 as published by the Free Software Foundation. In accordance with
|
|
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
|
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
|
* of any third-party rights.
|
|
*
|
|
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
|
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
|
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
|
*
|
|
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
|
|
* street, Riga, Latvia, EU, LV-1050.
|
|
*
|
|
* The interactive user interfaces in modified source and object code versions
|
|
* of the Program must display Appropriate Legal Notices, as required under
|
|
* Section 5 of the GNU AGPL version 3.
|
|
*
|
|
* Pursuant to Section 7(b) of the License you must retain the original Product
|
|
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
|
* grant you any rights under trademark law for use of our trademarks.
|
|
*
|
|
* All the Product's GUI elements, including illustrations and icon sets, as
|
|
* well as technical writing content are licensed under the terms of the
|
|
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
|
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
|
*
|
|
*/
|
|
|
|
#include "chelp.h"
|
|
#include <stdio.h>
|
|
#ifdef _WIN32
|
|
# include <Windows.h>
|
|
#endif
|
|
|
|
|
|
CHelp::CHelp()
|
|
{
|
|
|
|
}
|
|
|
|
void CHelp::out()
|
|
{
|
|
const char help[] =
|
|
"\n\n"
|
|
"Desktop editors for cloud portal.\n"
|
|
"\n"
|
|
"keys:\n"
|
|
" --custom-title-bar turns off system title bar\n"
|
|
" --system-title-bar turns on system title bar\n"
|
|
" --keeplang=en keeps the language\n"
|
|
" --lang=en applies the language for the current session\n"
|
|
" --new=[doc|cell|slide] creates new document/spreadsheet/presentation\n"
|
|
" --review=path/to/file to open document in review mode in separate window\n"
|
|
" --view=path/to/file to open document in view mode in separate window\n"
|
|
" --single-window-app document will be opened in independent process\n"
|
|
" --force-use-tab document will be opend in new tab instead of new separate window\n"
|
|
" --geometry=default reset window geometry\n"
|
|
" --xdg-desktop-portal use portals instead of gtk file chooser (the flag is saved for subsequent sessions)\n"
|
|
" --xdg-desktop-portal=default use portals instead of gtk file chooser for current session\n"
|
|
" --native-file-dialog use non Qt dialog\n"
|
|
" --lock-portals force hide the Connect to the cloud button on the start page"
|
|
" --unlock-portals disable forced hiding of the Connect to the cloud button on the start page"
|
|
" --updates-appcast-channel=dev set development URL for updates\n"
|
|
" --updates-interval=<time> set update check interval in seconds (minimum 30 sec)\n"
|
|
" --updates-reset reset all update options\n";
|
|
|
|
#ifdef _WIN32
|
|
FILE *pFile = NULL;
|
|
if (AttachConsole(ATTACH_PARENT_PROCESS))
|
|
freopen_s(&pFile, "CONOUT$", "w", stdout);
|
|
#endif
|
|
fprintf(stdout, help);
|
|
fflush(stdout);
|
|
#ifdef _WIN32
|
|
if (pFile)
|
|
fclose(pFile);
|
|
#endif
|
|
}
|