Kaydet (Commit) af71dc69 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS mav16 (1.95.34); FILE MERGED

2005/02/15 14:08:13 mav 1.95.34.3: RESYNC: (1.99-1.100); FILE MERGED
2005/02/07 14:54:49 mav 1.95.34.2: RESYNC: (1.95-1.99); FILE MERGED
2005/02/03 13:02:07 mav 1.95.34.1: #119210# allow to provide the size for applets, plugins and floating frames
üst 6162de8b
......@@ -2,9 +2,9 @@
*
* $RCSfile: ximpshap.cxx,v $
*
* $Revision: 1.101 $
* $Revision: 1.102 $
*
* last change: $Author: vg $ $Date: 2005-02-21 16:36:04 $
* last change: $Author: vg $ $Date: 2005-02-25 09:23:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -91,6 +91,10 @@
#include <com/sun/star/media/ZoomLevel.hpp>
#endif
#ifndef _COM_SUN_STAR_AWT_RECTANGLE_HPP_
#include <com/sun/star/awt/Rectangle.hpp>
#endif
#ifndef _COMPHELPER_EXTRACT_HXX_
#include <comphelper/extract.hxx>
#endif
......@@ -2764,6 +2768,14 @@ void SdXMLAppletShapeContext::EndElement()
{
uno::Any aAny;
if ( maSize.Width && maSize.Height )
{
// the visual area for applet must be set on loading
awt::Rectangle aRect( 0, 0, maSize.Width, maSize.Height );
aAny <<= aRect;
xProps->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "VisibleArea" ) ), aAny );
}
if( maParams.getLength() )
{
aAny <<= maParams;
......@@ -2936,6 +2948,14 @@ void SdXMLPluginShapeContext::EndElement()
{
uno::Any aAny;
if ( maSize.Width && maSize.Height )
{
// the visual area for a plugin must be set on loading
awt::Rectangle aRect( 0, 0, maSize.Width, maSize.Height );
aAny <<= aRect;
xProps->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "VisibleArea" ) ), aAny );
}
if( !mbMedia )
{
// in case we have a plugin object
......@@ -3148,6 +3168,20 @@ void SdXMLFloatingFrameShapeContext::processAttribute( sal_uInt16 nPrefix, const
void SdXMLFloatingFrameShapeContext::EndElement()
{
uno::Reference< beans::XPropertySet > xProps( mxShape, uno::UNO_QUERY );
if( xProps.is() )
{
if ( maSize.Width && maSize.Height )
{
// the visual area for a floating frame must be set on loading
awt::Rectangle aRect( 0, 0, maSize.Width, maSize.Height );
uno::Any aAny;
aAny <<= aRect;
xProps->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "VisibleArea" ) ), aAny );
}
}
SetThumbnail();
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