diff options
author | erack <er@openoffice.org> | 2011-09-10 22:48:07 +0000 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2011-11-23 23:34:57 +0100 |
commit | d0cfb996261be5b604742780a304b2ea31825723 (patch) | |
tree | d948bdfc2de8442eefb109662d9249026327a82c | |
parent | ac0a752acdb8ce769f0830776209342f2ed3a68c (diff) |
impress212: #i114615# fixed hyperlinks if exporting impress notes pages to pdf
* found as LGPLv3-only fix at svn rev 1167635 (http://svn.apache.org/viewvc?view=revision&revision=1167635)
-rw-r--r-- | filter/source/pdf/pdfexport.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx index 466132e2c612..fbbb52bb712b 100644 --- a/filter/source/pdf/pdfexport.cxx +++ b/filter/source/pdf/pdfexport.cxx @@ -181,12 +181,16 @@ sal_Bool PDFExport::ExportSelection( vcl::PDFWriter& rPDFWriter, Any* pFirstPage = NULL; Any* pLastPage = NULL; + sal_Bool bExportNotesPages = sal_False; + for( sal_Int32 nData = 0, nDataCount = rRenderOptions.getLength(); nData < nDataCount; ++nData ) { if( rRenderOptions[ nData ].Name == OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFirstPage" ) ) ) pFirstPage = &rRenderOptions[ nData ].Value; else if( rRenderOptions[ nData ].Name == OUString( RTL_CONSTASCII_USTRINGPARAM( "IsLastPage" ) ) ) pLastPage = &rRenderOptions[ nData ].Value; + else if( rRenderOptions[ nData ].Name == OUString( RTL_CONSTASCII_USTRINGPARAM( "ExportNotesPages" ) ) ) + rRenderOptions[ nData ].Value >>= bExportNotesPages; } OutputDevice* pOut = rPDFWriter.GetReferenceDevice(); @@ -196,6 +200,8 @@ sal_Bool PDFExport::ExportSelection( vcl::PDFWriter& rPDFWriter, vcl::PDFExtOutDevData* pPDFExtOutDevData = PTR_CAST( vcl::PDFExtOutDevData, pOut->GetExtOutDevData() ); if ( nPageCount ) { + pPDFExtOutDevData->SetIsExportNotes( bExportNotesPages ); + sal_Int32 nCurrentPage(0); StringRangeEnumerator::Iterator aIter = rRangeEnum.begin(); StringRangeEnumerator::Iterator aEnd = rRangeEnum.end(); |