diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-11-19 17:32:31 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-11-19 21:03:17 +0100 |
commit | c13529cd2e20a0aca6f1d4cd0c85a36ab2f54afb (patch) | |
tree | ca75fba64a2e6b433a152a8289c19a118282ed8c /include/vcl/svapp.hxx | |
parent | 9cc6b8ebe366a909aa8406f26c6775554c65b439 (diff) |
tdf#121498: also process --help/--version before VCL init on Win
Otherwise they would be passed to the other running instance, and
processed there, without outputting the data to the callng console
Change-Id: I5cd9d11b567dfed06e19e9a2c4c29bc82868c064
Reviewed-on: https://gerrit.libreoffice.org/63577
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/vcl/svapp.hxx')
-rw-r--r-- | include/vcl/svapp.hxx | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/include/vcl/svapp.hxx b/include/vcl/svapp.hxx index 664f8ba8d56a..7e7d4c205299 100644 --- a/include/vcl/svapp.hxx +++ b/include/vcl/svapp.hxx @@ -128,8 +128,6 @@ public: enum class Type { Accept, ///< Listen for connections Appear, ///< Make application appear - Help, ///< Bring up help options (command-line help) - Version, ///< Display product version Open, ///< Open a document OpenHelpUrl, ///< Open a help URL Print, ///< Print document @@ -141,29 +139,27 @@ public: /** Explicit constructor for ApplicationEvent. - @attention Type::Appear, Type::Version, Type::PrivateDoShutdown and + @attention Type::Appear, Type::PrivateDoShutdown and Type::QuickStart are the \em only events that don't need to include a data string with the event. No other events should use this constructor! */ explicit ApplicationEvent(Type type): aEvent(type) { - assert( - type == Type::Appear || type == Type::Version - || type == Type::PrivateDoShutdown || type == Type::QuickStart); + assert(type == Type::Appear || type == Type::PrivateDoShutdown || type == Type::QuickStart); } /** Constructor for ApplicationEvent, accepts a string for the data associated with the event. - @attention Type::Accept, Type::Help, Type::OpenHelpUrl, Type::ShowDialog + @attention Type::Accept, Type::OpenHelpUrl, Type::ShowDialog and Type::Unaccept are the \em only events that accept a single string as event data. No other events should use this constructor! */ ApplicationEvent(Type type, OUString const & data): aEvent(type) { assert( - type == Type::Accept || type == Type::Help || type == Type::OpenHelpUrl + type == Type::Accept || type == Type::OpenHelpUrl || type == Type::ShowDialog || type == Type::Unaccept); aData.push_back(data); } @@ -193,14 +189,14 @@ public: /** Gets the application event's data string. @attention The \em only events that need a single string Type::Accept, - Type::Help, Type::OpenHelpUrl, Type::ShowDialog and Type::Unaccept + Type::OpenHelpUrl, Type::ShowDialog and Type::Unaccept @returns The event's data string. */ OUString const & GetStringData() const { assert( - aEvent == Type::Accept || aEvent == Type::Help + aEvent == Type::Accept || aEvent == Type::OpenHelpUrl || aEvent == Type::ShowDialog || aEvent == Type::Unaccept); assert(aData.size() == 1); |