Kaydet (Commit) e031d0b8 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS draw9 (1.65.8); FILE MERGED

2003/04/10 14:38:06 aw 1.65.8.1: #108584#
for the changed pool defaults from drawing layer pool set those attributes as hard attributes to preserve them for saving
üst 57d50287
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: swdtflvr.cxx,v $ * $RCSfile: swdtflvr.cxx,v $
* *
* $Revision: 1.67 $ * $Revision: 1.68 $
* *
* last change: $Author: vg $ $Date: 2003-04-17 16:10:46 $ * last change: $Author: rt $ $Date: 2003-04-24 14:54:32 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -284,6 +284,26 @@ ...@@ -284,6 +284,26 @@
#endif #endif
#include <sot/stg.hxx> #include <sot/stg.hxx>
// #108584#
#ifndef _SVDITER_HXX
#include <svx/svditer.hxx>
#endif
// #108584#
#ifndef _EEITEM_HXX
#include <svx/eeitem.hxx>
#endif
// #108584#
#ifndef _SVX_FHGTITEM_HXX
#include <svx/fhgtitem.hxx>
#endif
// #108584#
#ifndef _SVDPAGE_HXX
#include <svx/svdpage.hxx>
#endif
extern BOOL bFrmDrag; extern BOOL bFrmDrag;
extern BOOL bDDINetAttr; extern BOOL bDDINetAttr;
extern BOOL bExecuteDrag; extern BOOL bExecuteDrag;
...@@ -738,6 +758,32 @@ sal_Bool SwTransferable::WriteObject( SotStorageStreamRef& xStream, ...@@ -738,6 +758,32 @@ sal_Bool SwTransferable::WriteObject( SotStorageStreamRef& xStream,
pModel->SetStreamingSdrModel( TRUE ); pModel->SetStreamingSdrModel( TRUE );
xStream->SetBufferSize( 16348 ); xStream->SetBufferSize( 16348 );
// #108584#
// for the changed pool defaults from drawing layer pool set those
// attributes as hard attributes to preserve them for saving
const SfxItemPool& rItemPool = pModel->GetItemPool();
const SvxFontHeightItem& rDefaultFontHeight = (const SvxFontHeightItem&)rItemPool.GetDefaultItem(EE_CHAR_FONTHEIGHT);
// SW should have no MasterPages
DBG_ASSERT(0L == pModel->GetMasterPageCount(), "SW with MasterPages (!)");
for(sal_uInt16 a(0); a < pModel->GetPageCount(); a++)
{
const SdrPage* pPage = pModel->GetPage(a);
SdrObjListIter aIter(*pPage, IM_DEEPNOGROUPS);
while(aIter.IsMore())
{
SdrObject* pObj = aIter.Next();
const SvxFontHeightItem& rItem = (const SvxFontHeightItem&)pObj->GetItem(EE_CHAR_FONTHEIGHT);
if(rItem.GetHeight() == rDefaultFontHeight.GetHeight())
{
pObj->SetItem(rDefaultFontHeight);
}
}
}
{ {
com::sun::star::uno::Reference<com::sun::star::io::XOutputStream> xDocOut( new utl::OOutputStreamWrapper( *xStream ) ); com::sun::star::uno::Reference<com::sun::star::io::XOutputStream> xDocOut( new utl::OOutputStreamWrapper( *xStream ) );
if( SvxDrawingLayerExport( pModel, xDocOut ) ) if( SvxDrawingLayerExport( pModel, xDocOut ) )
......
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