summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/unoshape.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/unodraw/unoshape.cxx')
-rw-r--r--svx/source/unodraw/unoshape.cxx41
1 files changed, 38 insertions, 3 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index b8b163268d3b..0f8c535dd106 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unoshape.cxx,v $
*
- * $Revision: 1.46 $
+ * $Revision: 1.47 $
*
- * last change: $Author: aw $ $Date: 2001-04-19 16:52:22 $
+ * last change: $Author: cl $ $Date: 2001-04-30 10:06:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1400,7 +1400,24 @@ void SAL_CALL SvxShape::setPropertyValue( const OUString& rPropertyName, const u
}
break;
}
-
+ case OWN_ATTR_OLE_VISAREA:
+ {
+#ifndef SVX_LIGHT
+ awt::Rectangle aVisArea;
+ if( (rVal >>= aVisArea) && pObj->ISA(SdrOle2Obj))
+ {
+ SdrOle2Obj& aObj = *(SdrOle2Obj*)pObj;
+ const SvInPlaceObjectRef& xInplace = aObj.GetObjRef();
+ if( xInplace.Is() )
+ {
+ Rectangle aTmpArea( aVisArea.X, aVisArea.Y, aVisArea.X + aVisArea.Width, aVisArea.Y + aVisArea.Height );
+ xInplace->SetVisArea( aTmpArea );
+ return;
+ }
+#endif
+ }
+ break;
+ }
case XATTR_FILLBITMAP:
case XATTR_FILLGRADIENT:
case XATTR_FILLHATCH:
@@ -1670,6 +1687,24 @@ uno::Any SAL_CALL SvxShape::getPropertyValue( const OUString& PropertyName )
aAny <<= xBmp;
break;
}
+ case OWN_ATTR_OLE_VISAREA:
+ {
+ awt::Rectangle aVisArea;
+#ifndef SVX_LIGHT
+ if( pObj->ISA(SdrOle2Obj))
+ {
+ SdrOle2Obj& aObj = *(SdrOle2Obj*)pObj;
+ const SvInPlaceObjectRef& xInplace = aObj.GetObjRef();
+ if( xInplace.Is() )
+ {
+ Rectangle aTmpArea( xInplace->GetVisArea() );
+ aVisArea = awt::Rectangle( aTmpArea.Left(), aTmpArea.Top(), aTmpArea.GetWidth(), aTmpArea.GetHeight() );
+ }
+ }
+#endif
+ aAny <<= aVisArea;
+ break;
+ }
case OWN_ATTR_OLESIZE:
{
awt::Size aSize;