diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-03-30 15:15:41 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-03-30 15:15:41 +0000 |
commit | 0cc9eca94af938db37a2eeaae35165ebf467f56b (patch) | |
tree | 5f27dc9de006827755a4b54248b10b7eae5c4dfd /xmloff/source/draw/ximpbody.cxx | |
parent | b0aa1f3cf3e9bad5546f21792a27c3d6e4817fe0 (diff) |
INTEGRATION: CWS interop12 (1.18.172); FILE MERGED
2004/03/05 14:21:50 cl 1.18.172.1: #i26079# save header&footer also for handout and notes
Diffstat (limited to 'xmloff/source/draw/ximpbody.cxx')
-rw-r--r-- | xmloff/source/draw/ximpbody.cxx | 71 |
1 files changed, 4 insertions, 67 deletions
diff --git a/xmloff/source/draw/ximpbody.cxx b/xmloff/source/draw/ximpbody.cxx index 3aa8af9c5e4e..313cb278e16d 100644 --- a/xmloff/source/draw/ximpbody.cxx +++ b/xmloff/source/draw/ximpbody.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ximpbody.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: cl $ $Date: 2001-12-17 15:51:30 $ + * last change: $Author: rt $ $Date: 2004-03-30 16:15:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -200,6 +200,8 @@ SdXMLDrawPageContext::SdXMLDrawPageContext( SdXMLImport& rImport, } } + SetStyle( maStyleName ); + // set MasterPage? if(maMasterPageName.getLength()) { @@ -239,71 +241,6 @@ SdXMLDrawPageContext::SdXMLDrawPageContext( SdXMLImport& rImport, } } - // set PageProperties? - if(maStyleName.getLength()) - { - const SvXMLImportContext* pContext = GetSdImport().GetShapeImport()->GetAutoStylesContext(); - - if( pContext && pContext->ISA( SvXMLStyleContext ) ) - { - const SdXMLStylesContext* pStyles = (SdXMLStylesContext*)pContext; - if(pStyles) - { - const SvXMLStyleContext* pStyle = pStyles->FindStyleChildContext( - XML_STYLE_FAMILY_SD_DRAWINGPAGE_ID, maStyleName); - - if(pStyle && pStyle->ISA(XMLPropStyleContext)) - { - XMLPropStyleContext* pPropStyle = (XMLPropStyleContext*)pStyle; - - - uno::Reference <beans::XPropertySet> xPropSet1(rShapes, uno::UNO_QUERY); - if(xPropSet1.is()) - { - // since the background items are in a different propertyset - // which itself is a property of the pages property set - // we now merge these two propertysets if possible to simulate - // a single propertyset with all draw page properties - const OUString aBackground(RTL_CONSTASCII_USTRINGPARAM("Background")); - uno::Reference< beans::XPropertySet > xPropSet2; - uno::Reference< beans::XPropertySetInfo > xInfo( xPropSet1->getPropertySetInfo() ); - if( xInfo.is() && xInfo->hasPropertyByName( aBackground ) ) - { - uno::Reference< lang::XMultiServiceFactory > xServiceFact(GetSdImport().GetModel(), uno::UNO_QUERY); - if(xServiceFact.is()) - { - uno::Reference< beans::XPropertySet > xTempSet( - xServiceFact->createInstance( - OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.Background"))), - uno::UNO_QUERY); - - xPropSet2 = xTempSet; - } - } - - uno::Reference< beans::XPropertySet > xPropSet; - if( xPropSet2.is() ) - xPropSet = PropertySetMerger_CreateInstance( xPropSet1, xPropSet2 ); - else - xPropSet = xPropSet1; - - if(xPropSet.is()) - { - pPropStyle->FillPropertySet(xPropSet); - } - - if( xPropSet2.is() ) - { - uno::Any aAny; - aAny <<= xPropSet2; - xPropSet1->setPropertyValue( aBackground, aAny ); - } - } - } - } - } - } - if( maHREF.getLength() ) { uno::Reference< beans::XPropertySet > xProps( xDrawPage, uno::UNO_QUERY ); |