unomodel.cxx (cdf0e10c) | unomodel.cxx (54744b05) |
---|---|
1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * --- 1966 unchanged lines hidden (view full) --- 1975 uno::Reference< beans::XPropertySet > xPagePropSet( xPage, uno::UNO_QUERY ); 1976 if( xPagePropSet.is() ) 1977 { 1978 // exporting object interactions to pdf 1979 1980 // if necessary, the master page interactions will be exported first 1981 sal_Bool bIsBackgroundObjectsVisible = sal_False; // SJ: #i39428# IsBackgroundObjectsVisible not available for Draw 1982 const rtl::OUString sIsBackgroundObjectsVisible( RTL_CONSTASCII_USTRINGPARAM( "IsBackgroundObjectsVisible" ) ); | 1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * --- 1966 unchanged lines hidden (view full) --- 1975 uno::Reference< beans::XPropertySet > xPagePropSet( xPage, uno::UNO_QUERY ); 1976 if( xPagePropSet.is() ) 1977 { 1978 // exporting object interactions to pdf 1979 1980 // if necessary, the master page interactions will be exported first 1981 sal_Bool bIsBackgroundObjectsVisible = sal_False; // SJ: #i39428# IsBackgroundObjectsVisible not available for Draw 1982 const rtl::OUString sIsBackgroundObjectsVisible( RTL_CONSTASCII_USTRINGPARAM( "IsBackgroundObjectsVisible" ) ); |
1983 if ( mbImpressDoc && ( xPagePropSet->getPropertyValue( sIsBackgroundObjectsVisible ) >>= bIsBackgroundObjectsVisible ) && bIsBackgroundObjectsVisible ) | 1983 if ( mbImpressDoc && !pPDFExtOutDevData->GetIsExportNotesPages() && ( xPagePropSet->getPropertyValue( sIsBackgroundObjectsVisible ) >>= bIsBackgroundObjectsVisible ) && bIsBackgroundObjectsVisible ) |
1984 { 1985 uno::Reference< drawing::XMasterPageTarget > xMasterPageTarget( xPage, uno::UNO_QUERY ); 1986 if ( xMasterPageTarget.is() ) 1987 { 1988 uno::Reference< drawing::XDrawPage > xMasterPage = xMasterPageTarget->getMasterPage(); 1989 if ( xMasterPage.is() ) 1990 { 1991 uno::Reference< drawing::XShapes> xShapes( xMasterPage, uno::UNO_QUERY ); --- 16 unchanged lines hidden (view full) --- 2008 { 2009 aAny = xShapes->getByIndex( i ); 2010 uno::Reference< drawing::XShape > xShape; 2011 if ( aAny >>= xShape ) 2012 ImplPDFExportShapeInteraction( xShape, *mpDoc, *pPDFExtOutDevData ); 2013 } 2014 2015 // exporting transition effects to pdf | 1984 { 1985 uno::Reference< drawing::XMasterPageTarget > xMasterPageTarget( xPage, uno::UNO_QUERY ); 1986 if ( xMasterPageTarget.is() ) 1987 { 1988 uno::Reference< drawing::XDrawPage > xMasterPage = xMasterPageTarget->getMasterPage(); 1989 if ( xMasterPage.is() ) 1990 { 1991 uno::Reference< drawing::XShapes> xShapes( xMasterPage, uno::UNO_QUERY ); --- 16 unchanged lines hidden (view full) --- 2008 { 2009 aAny = xShapes->getByIndex( i ); 2010 uno::Reference< drawing::XShape > xShape; 2011 if ( aAny >>= xShape ) 2012 ImplPDFExportShapeInteraction( xShape, *mpDoc, *pPDFExtOutDevData ); 2013 } 2014 2015 // exporting transition effects to pdf |
2016 if ( mbImpressDoc && pPDFExtOutDevData->GetIsExportTransitionEffects() ) // SJ: #i39428# TransitionEffects not available for Draw | 2016 if ( mbImpressDoc && !pPDFExtOutDevData->GetIsExportNotesPages() && pPDFExtOutDevData->GetIsExportTransitionEffects() ) |
2017 { 2018 const rtl::OUString sEffect( RTL_CONSTASCII_USTRINGPARAM( "Effect" ) ); 2019 const rtl::OUString sSpeed ( RTL_CONSTASCII_USTRINGPARAM( "Speed" ) ); 2020 sal_Int32 nTime = 800; 2021 presentation::AnimationSpeed aAs; 2022 aAny = xPagePropSet->getPropertyValue( sSpeed ); 2023 if ( aAny >>= aAs ) 2024 { --- 68 unchanged lines hidden (view full) --- 2093 case presentation::FadeEffect_DISSOLVE : 2094 default: eType = vcl::PDFWriter::Dissolve; break; 2095 } 2096 } 2097 pPDFExtOutDevData->SetPageTransition( eType, nTime, -1 ); 2098 } 2099 } 2100 } | 2017 { 2018 const rtl::OUString sEffect( RTL_CONSTASCII_USTRINGPARAM( "Effect" ) ); 2019 const rtl::OUString sSpeed ( RTL_CONSTASCII_USTRINGPARAM( "Speed" ) ); 2020 sal_Int32 nTime = 800; 2021 presentation::AnimationSpeed aAs; 2022 aAny = xPagePropSet->getPropertyValue( sSpeed ); 2023 if ( aAny >>= aAs ) 2024 { --- 68 unchanged lines hidden (view full) --- 2093 case presentation::FadeEffect_DISSOLVE : 2094 default: eType = vcl::PDFWriter::Dissolve; break; 2095 } 2096 } 2097 pPDFExtOutDevData->SetPageTransition( eType, nTime, -1 ); 2098 } 2099 } 2100 } |
2101 | |
2102 Size aPageSize( mpDoc->GetSdPage( 0, PK_STANDARD )->GetSize() ); 2103 Point aPoint( 0, 0 ); 2104 Rectangle aPageRect( aPoint, aPageSize ); 2105 2106 // resolving links found in this page by the method ImpEditEngine::Paint 2107 std::vector< vcl::PDFExtOutDevBookmarkEntry >& rBookmarks = pPDFExtOutDevData->GetBookmarks(); 2108 std::vector< vcl::PDFExtOutDevBookmarkEntry >::iterator aIBeg = rBookmarks.begin(); 2109 std::vector< vcl::PDFExtOutDevBookmarkEntry >::iterator aIEnd = rBookmarks.end(); 2110 while ( aIBeg != aIEnd ) 2111 { 2112 sal_Int32 nPage = ImplPDFGetBookmarkPage( aIBeg->aBookmark, *mpDoc ); 2113 if ( nPage != -1 ) | 2101 Size aPageSize( mpDoc->GetSdPage( 0, PK_STANDARD )->GetSize() ); 2102 Point aPoint( 0, 0 ); 2103 Rectangle aPageRect( aPoint, aPageSize ); 2104 2105 // resolving links found in this page by the method ImpEditEngine::Paint 2106 std::vector< vcl::PDFExtOutDevBookmarkEntry >& rBookmarks = pPDFExtOutDevData->GetBookmarks(); 2107 std::vector< vcl::PDFExtOutDevBookmarkEntry >::iterator aIBeg = rBookmarks.begin(); 2108 std::vector< vcl::PDFExtOutDevBookmarkEntry >::iterator aIEnd = rBookmarks.end(); 2109 while ( aIBeg != aIEnd ) 2110 { 2111 sal_Int32 nPage = ImplPDFGetBookmarkPage( aIBeg->aBookmark, *mpDoc ); 2112 if ( nPage != -1 ) |
2114 { 2115 if ( aIBeg->nLinkId != -1 ) 2116 pPDFExtOutDevData->SetLinkDest( aIBeg->nLinkId, pPDFExtOutDevData->CreateDest( aPageRect, nPage, vcl::PDFWriter::FitRectangle ) ); 2117 else 2118 pPDFExtOutDevData->DescribeRegisteredDest( aIBeg->nDestId, aPageRect, nPage, vcl::PDFWriter::FitRectangle ); 2119 } | 2113 { 2114 if ( aIBeg->nLinkId != -1 ) 2115 pPDFExtOutDevData->SetLinkDest( aIBeg->nLinkId, pPDFExtOutDevData->CreateDest( aPageRect, nPage, vcl::PDFWriter::FitRectangle ) ); 2116 else 2117 pPDFExtOutDevData->DescribeRegisteredDest( aIBeg->nDestId, aPageRect, nPage, vcl::PDFWriter::FitRectangle ); 2118 } |
2120 else 2121 pPDFExtOutDevData->SetLinkURL( aIBeg->nLinkId, aIBeg->aBookmark ); 2122 aIBeg++; 2123 } 2124 rBookmarks.clear(); | 2119 else 2120 pPDFExtOutDevData->SetLinkURL( aIBeg->nLinkId, aIBeg->aBookmark ); 2121 aIBeg++; 2122 } 2123 rBookmarks.clear(); |
2125 //---> i56629, i40318 2126 //get the page name, will be used as outline element in PDF bookmark pane 2127 String aPageName = mpDoc->GetSdPage( (sal_uInt16)nPageNumber - 1 , PK_STANDARD )->GetName(); 2128 if( aPageName.Len() > 0 ) 2129 { 2130 // insert the bookmark to this page into the NamedDestinations 2131 if( pPDFExtOutDevData->GetIsExportNamedDestinations() ) 2132 pPDFExtOutDevData->CreateNamedDest( aPageName, aPageRect, nPageNumber - 1 ); 2133 // 2134 // add the name to the outline, (almost) same code as in sc/source/ui/unoobj/docuno.cxx 2135 // issue i40318. 2136 // 2137 if( pPDFExtOutDevData->GetIsExportBookmarks() ) 2138 { 2139 // Destination Export 2140 const sal_Int32 nDestId = 2141 pPDFExtOutDevData->CreateDest( aPageRect , nPageNumber - 1 ); | 2124 //---> i56629, i40318 2125 //get the page name, will be used as outline element in PDF bookmark pane 2126 String aPageName = mpDoc->GetSdPage( (sal_uInt16)nPageNumber - 1 , PK_STANDARD )->GetName(); 2127 if( aPageName.Len() > 0 ) 2128 { 2129 // insert the bookmark to this page into the NamedDestinations 2130 if( pPDFExtOutDevData->GetIsExportNamedDestinations() ) 2131 pPDFExtOutDevData->CreateNamedDest( aPageName, aPageRect, nPageNumber - 1 ); 2132 // 2133 // add the name to the outline, (almost) same code as in sc/source/ui/unoobj/docuno.cxx 2134 // issue i40318. 2135 // 2136 if( pPDFExtOutDevData->GetIsExportBookmarks() ) 2137 { 2138 // Destination Export 2139 const sal_Int32 nDestId = 2140 pPDFExtOutDevData->CreateDest( aPageRect , nPageNumber - 1 ); |
2142 | 2141 |
2143 // Create a new outline item: 2144 pPDFExtOutDevData->CreateOutlineItem( -1 , aPageName, nDestId ); 2145 } 2146 } 2147 //<--- i56629, i40318 | 2142 // Create a new outline item: 2143 pPDFExtOutDevData->CreateOutlineItem( -1 , aPageName, nDestId ); 2144 } 2145 } 2146 //<--- i56629, i40318 |
2148 } 2149 catch( uno::Exception& ) 2150 { 2151 } 2152 2153 } 2154 } 2155 else --- 919 unchanged lines hidden --- | 2147 } 2148 catch( uno::Exception& ) 2149 { 2150 } 2151 2152 } 2153 } 2154 else --- 919 unchanged lines hidden --- |