summaryrefslogtreecommitdiff
path: root/filter/source/pdf/pdfexport.cxx
diff options
context:
space:
mode:
authoranuragkanungo <anuragkanungo@gmail.com>2013-05-18 02:33:13 +0530
committerFridrich Strba <fridrich@documentfoundation.org>2013-05-17 15:46:16 +0000
commiteea4a30a4332b92b5534d3d3dc0e6152108ed670 (patch)
treeaca95b62f56412a652ed8c8937933d8e48524de7 /filter/source/pdf/pdfexport.cxx
parentd68243cd663e55418831a157615ea588848804bb (diff)
fdo#37222 and possibly fdo#37219
Added an checkbox option "View PDF after Export" in Export as Pdf Dialog Box . If a user ticks the checkbox , pdf file will be opened after export else only export will be done . Goto File > Export as PDF >> Tick the checkbox "View PDF after Export " to observe changes . There is a lot of space in between last checkbox and this ViewPDF checkbox , because if we open impress and check export as pdf , there are more options in the dialog. If user export PDF and check view PDF after export, the PDF file is added to recent documents of the OS . ( tested on opensuse) It will require make dev-install to work properly . Change-Id: I76611c0e3382e27289d648942a98b092edc430ae Reviewed-on: https://gerrit.libreoffice.org/3948 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'filter/source/pdf/pdfexport.cxx')
-rw-r--r--filter/source/pdf/pdfexport.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx
index 23eea9744b24..e771a0d249b0 100644
--- a/filter/source/pdf/pdfexport.cxx
+++ b/filter/source/pdf/pdfexport.cxx
@@ -98,6 +98,7 @@ PDFExport::PDFExport( const Reference< XComponent >& rxSrcDoc,
mbUseTaggedPDF ( sal_False ),
mnPDFTypeSelection ( 0 ),
mbExportNotes ( sal_True ),
+ mbViewPDF ( sal_True ),
mbExportNotesPages ( sal_False ),
mbEmbedStandardFonts ( sal_False ),//in preparation for i54636 and i76458.
//already used for i59651 (PDF/A-1)
@@ -457,6 +458,8 @@ sal_Bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue
rFilterData[ nData ].Value >>= mnPDFTypeSelection;
else if ( rFilterData[ nData ].Name == "ExportNotes" )
rFilterData[ nData ].Value >>= mbExportNotes;
+ else if ( rFilterData[ nData ].Name == "ViewPDFAfterExport" )
+ rFilterData[ nData ].Value >>= mbViewPDF;
else if ( rFilterData[ nData ].Name == "ExportNotesPages" )
rFilterData[ nData ].Value >>= mbExportNotesPages;
else if ( rFilterData[ nData ].Name == "EmbedStandardFonts" )