Kaydet (Commit) 2cb2e4f7 authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS impress131_SRC680 (1.121.58); FILE MERGED

2007/09/20 11:34:13 sj 1.121.58.1: #i81609# fixed fontwork display
üst 355c0f5d
......@@ -4,9 +4,9 @@
*
* $RCSfile: ximpshap.cxx,v $
*
* $Revision: 1.121 $
* $Revision: 1.122 $
*
* last change: $Author: hr $ $Date: 2007-06-27 15:33:18 $
* last change: $Author: hr $ $Date: 2007-11-01 15:21:56 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
......@@ -224,6 +224,10 @@
#include <tools/string.hxx>
#endif
#ifndef _COM_SUN_STAR_DRAWING_XENHANCEDCUSTOMSHAPEDEFAULTER_HPP_
#include <com/sun/star/drawing/XEnhancedCustomShapeDefaulter.hpp>
#endif
// --> OD 2006-02-22 #b6382898#
#ifndef _COM_SUN_STAR_TEXT_XTEXTDOCUMENT_HPP_
#include <com/sun/star/text/XTextDocument.hpp>
......@@ -3542,6 +3546,20 @@ void SdXMLCustomShapeContext::EndElement()
{
DBG_ERROR( "could not set enhanced customshape geometry" );
}
sal_Int32 nUPD( 0 );
sal_Int32 nBuild( 0 );
GetImport().getBuildIds( nUPD, nBuild );
if ( nUPD < 680 ||
( nUPD == 680 && nBuild <= 9221 ) )
{
Reference< drawing::XEnhancedCustomShapeDefaulter > xDefaulter( mxShape, UNO_QUERY );
if( xDefaulter.is() )
{
rtl::OUString aEmptyType;
xDefaulter->createCustomShapeDefaults( aEmptyType );
}
}
}
SdXMLShapeContext::EndElement();
......
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