diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-15 23:20:35 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-15 23:20:35 +0200 |
commit | a2c557d80ac68c06ea59586245a7431e061938f0 (patch) | |
tree | 996c9fb0b6dac9b098aa5a396e584c04b5ed9e94 /desktop/source | |
parent | Related tdf#37531: --convert-to output relative to caller's CWD (diff) | |
download | core-a2c557d80ac68c06ea59586245a7431e061938f0.tar.gz core-a2c557d80ac68c06ea59586245a7431e061938f0.zip |
Related tdf#37531: Make --cat headless/hidden like --convert-to
...which automatically takes care of the open problem from
08960441558743f222280637985690bb8b41b861 "Related tdf#37531: Handle conversion args
sent over pipe" that --cat terminates the called soffice.
Change-Id: Ief8cdf8c1335749dad1504966d635e0519fe92f7
Diffstat (limited to 'desktop/source')
-rw-r--r-- | desktop/source/app/cmdlineargs.cxx | 1 | ||||
-rw-r--r-- | desktop/source/app/dispatchwatcher.cxx | 9 |
2 files changed, 7 insertions, 3 deletions
diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx index 8fe553206895..344dd4a69ea3 100644 --- a/desktop/source/app/cmdlineargs.cxx +++ b/desktop/source/app/cmdlineargs.cxx @@ -198,6 +198,7 @@ void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier ) m_conversionparams = "txt:Text"; bOpenEvent = false; bConversionEvent = true; + setHeadless(); } else if ( oArg == "quickstart" ) { diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx index bf7ef5931ee7..3bbb191da359 100644 --- a/desktop/source/app/dispatchwatcher.cxx +++ b/desktop/source/app/dispatchwatcher.cxx @@ -209,7 +209,8 @@ bool DispatchWatcher::executeDispatchRequests( const std::vector<DispatchRequest if ( aDispatchRequest.aRequestType == REQUEST_PRINT || aDispatchRequest.aRequestType == REQUEST_PRINTTO || aDispatchRequest.aRequestType == REQUEST_BATCHPRINT || - aDispatchRequest.aRequestType == REQUEST_CONVERSION) + aDispatchRequest.aRequestType == REQUEST_CONVERSION || + aDispatchRequest.aRequestType == REQUEST_CAT) nCount++; Sequence < PropertyValue > aArgs( nCount ); @@ -221,7 +222,8 @@ bool DispatchWatcher::executeDispatchRequests( const std::vector<DispatchRequest if ( aDispatchRequest.aRequestType == REQUEST_PRINT || aDispatchRequest.aRequestType == REQUEST_PRINTTO || aDispatchRequest.aRequestType == REQUEST_BATCHPRINT || - aDispatchRequest.aRequestType == REQUEST_CONVERSION) + aDispatchRequest.aRequestType == REQUEST_CONVERSION || + aDispatchRequest.aRequestType == REQUEST_CAT) { aArgs[1].Name = "ReadOnly"; aArgs[2].Name = "OpenNewView"; @@ -257,7 +259,8 @@ bool DispatchWatcher::executeDispatchRequests( const std::vector<DispatchRequest if ( aDispatchRequest.aRequestType == REQUEST_PRINT || aDispatchRequest.aRequestType == REQUEST_PRINTTO || aDispatchRequest.aRequestType == REQUEST_BATCHPRINT || - aDispatchRequest.aRequestType == REQUEST_CONVERSION) + aDispatchRequest.aRequestType == REQUEST_CONVERSION || + aDispatchRequest.aRequestType == REQUEST_CAT) { // documents opened for printing are opened readonly because they must be opened as a new document and this // document could be open already |