Kaydet (Commit) 3246b7c1 authored tarafından Kurt Zenker's avatar Kurt Zenker

INTEGRATION: CWS impress91 (1.102.100); FILE MERGED

2006/04/04 10:50:48 cl 1.102.100.1: do not export notes and handout stuff in draw
üst 6208afb9
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: sdxmlexp.cxx,v $ * $RCSfile: sdxmlexp.cxx,v $
* *
* $Revision: 1.103 $ * $Revision: 1.104 $
* *
* last change: $Author: vg $ $Date: 2006-04-07 14:54:10 $ * last change: $Author: kz $ $Date: 2006-04-26 20:43:30 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -657,17 +657,20 @@ void SAL_CALL SdXMLExport::setSourceDocument( const Reference< lang::XComponent ...@@ -657,17 +657,20 @@ void SAL_CALL SdXMLExport::setSourceDocument( const Reference< lang::XComponent
// is initialized to 0. // is initialized to 0.
if(!mnObjectCount) if(!mnObjectCount)
{ {
// #91587# add handout master count if( IsImpress() )
Reference<presentation::XHandoutMasterSupplier> xHandoutSupp(GetModel(), UNO_QUERY);
if(xHandoutSupp.is())
{ {
Reference<XDrawPage> xHandoutPage(xHandoutSupp->getHandoutMasterPage()); // #91587# add handout master count
if(xHandoutPage.is()) Reference<presentation::XHandoutMasterSupplier> xHandoutSupp(GetModel(), UNO_QUERY);
if(xHandoutSupp.is())
{ {
Reference<drawing::XShapes> xShapes(xHandoutPage, UNO_QUERY); Reference<XDrawPage> xHandoutPage(xHandoutSupp->getHandoutMasterPage());
if(xShapes.is() && xShapes->getCount()) if(xHandoutPage.is())
{ {
mnObjectCount += ImpRecursiveObjectCount(xShapes); Reference<drawing::XShapes> xShapes(xHandoutPage, UNO_QUERY);
if(xShapes.is() && xShapes->getCount())
{
mnObjectCount += ImpRecursiveObjectCount(xShapes);
}
} }
} }
} }
...@@ -684,17 +687,20 @@ void SAL_CALL SdXMLExport::setSourceDocument( const Reference< lang::XComponent ...@@ -684,17 +687,20 @@ void SAL_CALL SdXMLExport::setSourceDocument( const Reference< lang::XComponent
mnObjectCount += ImpRecursiveObjectCount(xMasterPage); mnObjectCount += ImpRecursiveObjectCount(xMasterPage);
} }
// #91587# take notes pages from master pages into account if( IsImpress() )
Reference<presentation::XPresentationPage> xPresPage;
if((aAny >>= xPresPage) && xPresPage.is())
{ {
Reference<XDrawPage> xNotesPage(xPresPage->getNotesPage()); // #91587# take notes pages from master pages into account
if(xNotesPage.is()) Reference<presentation::XPresentationPage> xPresPage;
if((aAny >>= xPresPage) && xPresPage.is())
{ {
Reference<drawing::XShapes> xShapes(xNotesPage, UNO_QUERY); Reference<XDrawPage> xNotesPage(xPresPage->getNotesPage());
if(xShapes.is() && xShapes->getCount()) if(xNotesPage.is())
{ {
mnObjectCount += ImpRecursiveObjectCount(xShapes); Reference<drawing::XShapes> xShapes(xNotesPage, UNO_QUERY);
if(xShapes.is() && xShapes->getCount())
{
mnObjectCount += ImpRecursiveObjectCount(xShapes);
}
} }
} }
} }
...@@ -713,17 +719,20 @@ void SAL_CALL SdXMLExport::setSourceDocument( const Reference< lang::XComponent ...@@ -713,17 +719,20 @@ void SAL_CALL SdXMLExport::setSourceDocument( const Reference< lang::XComponent
mnObjectCount += ImpRecursiveObjectCount(xPage); mnObjectCount += ImpRecursiveObjectCount(xPage);
} }
// #91587# take notes pages from draw pages into account if( IsImpress() )
Reference<presentation::XPresentationPage> xPresPage;
if((aAny >>= xPresPage) && xPresPage.is())
{ {
Reference<XDrawPage> xNotesPage(xPresPage->getNotesPage()); // #91587# take notes pages from draw pages into account
if(xNotesPage.is()) Reference<presentation::XPresentationPage> xPresPage;
if((aAny >>= xPresPage) && xPresPage.is())
{ {
Reference<drawing::XShapes> xShapes(xNotesPage, UNO_QUERY); Reference<XDrawPage> xNotesPage(xPresPage->getNotesPage());
if(xShapes.is() && xShapes->getCount()) if(xNotesPage.is())
{ {
mnObjectCount += ImpRecursiveObjectCount(xShapes); Reference<drawing::XShapes> xShapes(xNotesPage, UNO_QUERY);
if(xShapes.is() && xShapes->getCount())
{
mnObjectCount += ImpRecursiveObjectCount(xShapes);
}
} }
} }
} }
...@@ -1441,15 +1450,18 @@ ImpXMLEXPPageMasterInfo* SdXMLExport::ImpGetOrCreatePageMasterInfo( Reference< X ...@@ -1441,15 +1450,18 @@ ImpXMLEXPPageMasterInfo* SdXMLExport::ImpGetOrCreatePageMasterInfo( Reference< X
void SdXMLExport::ImpPrepPageMasterInfos() void SdXMLExport::ImpPrepPageMasterInfos()
{ {
// create page master info for handout master page if( IsImpress() )
Reference< XDrawPage > xMasterPage; {
// create page master info for handout master page
Reference< XHandoutMasterSupplier > xHMS( GetModel(), UNO_QUERY );
if( xHMS.is() )
xMasterPage = xHMS->getHandoutMasterPage();
if( xMasterPage.is() ) Reference< XHandoutMasterSupplier > xHMS( GetModel(), UNO_QUERY );
mpHandoutPageMaster = ImpGetOrCreatePageMasterInfo(xMasterPage); if( xHMS.is() )
{
Reference< XDrawPage > xMasterPage( xHMS->getHandoutMasterPage() );
if( xMasterPage.is() )
mpHandoutPageMaster = ImpGetOrCreatePageMasterInfo(xMasterPage);
}
}
// create page master infos for master pages // create page master infos for master pages
if(mnDocMasterPageCount) if(mnDocMasterPageCount)
...@@ -1457,7 +1469,7 @@ void SdXMLExport::ImpPrepPageMasterInfos() ...@@ -1457,7 +1469,7 @@ void SdXMLExport::ImpPrepPageMasterInfos()
// look for needed page-masters, create these // look for needed page-masters, create these
for(sal_Int32 nMPageId = 0L; nMPageId < mnDocMasterPageCount; nMPageId++) for(sal_Int32 nMPageId = 0L; nMPageId < mnDocMasterPageCount; nMPageId++)
{ {
mxDocMasterPages->getByIndex(nMPageId) >>= xMasterPage; Reference< XDrawPage > xMasterPage( mxDocMasterPages->getByIndex(nMPageId), UNO_QUERY );
ImpXMLEXPPageMasterInfo* pNewInfo = 0L; ImpXMLEXPPageMasterInfo* pNewInfo = 0L;
if(xMasterPage.is()) if(xMasterPage.is())
...@@ -1860,15 +1872,17 @@ void SdXMLExport::ImpPrepMasterPageInfos() ...@@ -1860,15 +1872,17 @@ void SdXMLExport::ImpPrepMasterPageInfos()
maMasterPagesStyleNames[nCnt] = ImpCreatePresPageStyleName( xDrawPage ); maMasterPagesStyleNames[nCnt] = ImpCreatePresPageStyleName( xDrawPage );
} }
if( IsImpress() )
Reference< presentation::XHandoutMasterSupplier > xHandoutSupp( GetModel(), UNO_QUERY );
if( xHandoutSupp.is() )
{ {
Reference< XDrawPage > xHandoutPage( xHandoutSupp->getHandoutMasterPage() ); Reference< presentation::XHandoutMasterSupplier > xHandoutSupp( GetModel(), UNO_QUERY );
if( xHandoutPage.is() ) if( xHandoutSupp.is() )
{ {
maHandoutPageHeaderFooterSettings = ImpPrepDrawPageHeaderFooterDecls( xHandoutPage ); Reference< XDrawPage > xHandoutPage( xHandoutSupp->getHandoutMasterPage() );
maHandoutMasterStyleName = ImpCreatePresPageStyleName( xHandoutPage, false ); if( xHandoutPage.is() )
{
maHandoutPageHeaderFooterSettings = ImpPrepDrawPageHeaderFooterDecls( xHandoutPage );
maHandoutMasterStyleName = ImpCreatePresPageStyleName( xHandoutPage, false );
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment