incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1167635 - /incubator/ooo/trunk/main/filter/source/pdf/pdfexport.cxx
Date Sat, 10 Sep 2011 22:48:07 GMT
Author: erack
Date: Sat Sep 10 22:48:07 2011
New Revision: 1167635

URL: http://svn.apache.org/viewvc?rev=1167635&view=rev
Log:
impress212: #i114615# fixed hyperlinks if exporting impress notes pages to pdf

# User sj <sj@openoffice.org>

Modified:
    incubator/ooo/trunk/main/filter/source/pdf/pdfexport.cxx

Modified: incubator/ooo/trunk/main/filter/source/pdf/pdfexport.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/filter/source/pdf/pdfexport.cxx?rev=1167635&r1=1167634&r2=1167635&view=diff
==============================================================================
--- incubator/ooo/trunk/main/filter/source/pdf/pdfexport.cxx (original)
+++ incubator/ooo/trunk/main/filter/source/pdf/pdfexport.cxx Sat Sep 10 22:48:07 2011
@@ -177,12 +177,16 @@ sal_Bool PDFExport::ExportSelection( vcl
 		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();
@@ -192,6 +196,8 @@ sal_Bool PDFExport::ExportSelection( vcl
 			vcl::PDFExtOutDevData* pPDFExtOutDevData = PTR_CAST( vcl::PDFExtOutDevData, pOut->GetExtOutDevData()
);
 			if ( nPageCount )
 			{
+				pPDFExtOutDevData->SetIsExportNotes( bExportNotesPages );
+
                 sal_Int32 nSel = aMultiSelection.FirstSelected();
                 while ( nSel != sal_Int32(SFX_ENDOFSELECTION) )
                 {



Mime
View raw message