<table><tr><td style="">dileepsankhla created this revision.<br />dileepsankhla added a reviewer: aacid.<br />dileepsankhla added a project: Okular.<br />dileepsankhla requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D10313" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When running okular with the parameter --print to directly open the print mode, it doesn't exit after acknowledging the print dialog. Hence adding --print_and_exit option exits okular<br />
after ackowledging the print dialog and thus useful for command line batch processing or a Dolphin service as the issue suggests.</p>

<p>BUG: 318998</p>

<h2 class="remarkup-header">Enter a commit message. # # Changes: # #     part.cpp #     part.h Option to exit after printing</h2>

<p>Option to exit after printing</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">open a file in Okular using the parameter --print. It will open Okular in print mode with the print dialog</li>
<li class="remarkup-list-item">Either print the file or cancel the print dialog</li>
<li class="remarkup-list-item">You will find that Okular stays open</li>
<li class="remarkup-list-item">Now using this patch, see for available options with the --help parameter. You will find --print_and_exit option</li>
<li class="remarkup-list-item">Now open a file in Okular using the parameter --print_and_exit. It will open Okular in print mode with the print dialog</li>
<li class="remarkup-list-item">Either print the file or cancel the print dialog</li>
<li class="remarkup-list-item">You will find that Okular closes after acknowledging the dialog</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10313" rel="noreferrer">https://phabricator.kde.org/D10313</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/mainshelltest.cpp<br />
part.cpp<br />
part.h<br />
shell/main.cpp<br />
shell/shell.cpp<br />
shell/shellutils.cpp<br />
shell/shellutils.h</div></div></div><br /><div><strong>To: </strong>dileepsankhla, aacid<br /><strong>Cc: </strong>aacid, ngraham, Okular, michaelweghorn<br /></div>