summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-11-29 15:53:28 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2012-11-29 21:44:28 +0100
commit1fefd633220e5d9a7b1d511e3ebac7c008d97a97 (patch)
tree570644d308962ab75fd32b860c79731eeb3aa57c /offapi
parentefd2438e824edd616075e62e948d4ed771f1251f (diff)
fdo#57611 don't crash when setting too small size
setHeight/Width needs to be authorized to throw com::sun::star::beans::PropertyVetoException, which is already handled adequately Change-Id: I077fbf7e3b871a59446fb3e23cc9fa1e2e9272a2
Diffstat (limited to 'offapi')
-rw-r--r--offapi/com/sun/star/inspection/XPropertyHandler.idl4
-rw-r--r--offapi/com/sun/star/report/XReportComponent.idl10
2 files changed, 11 insertions, 3 deletions
diff --git a/offapi/com/sun/star/inspection/XPropertyHandler.idl b/offapi/com/sun/star/inspection/XPropertyHandler.idl
index 0c24dbe02dae..40f721068641 100644
--- a/offapi/com/sun/star/inspection/XPropertyHandler.idl
+++ b/offapi/com/sun/star/inspection/XPropertyHandler.idl
@@ -25,6 +25,7 @@
#include <com/sun/star/inspection/LineDescriptor.idl>
#include <com/sun/star/lang/NullPointerException.idl>
#include <com/sun/star/beans/UnknownPropertyException.idl>
+#include <com/sun/star/beans/PropertyVetoException.idl>
#include <com/sun/star/lang/XComponent.idl>
#include <com/sun/star/inspection/InteractiveSelectionResult.idl>
@@ -86,7 +87,8 @@ interface XPropertyHandler
*/
void
setPropertyValue( [in] string PropertyName, [in] any Value )
- raises (::com::sun::star::beans::UnknownPropertyException);
+ raises (::com::sun::star::beans::UnknownPropertyException,
+ ::com::sun::star::beans::PropertyVetoException);
/** returns the state of a property
diff --git a/offapi/com/sun/star/report/XReportComponent.idl b/offapi/com/sun/star/report/XReportComponent.idl
index f6e9d8c5494d..148b75f0cf96 100644
--- a/offapi/com/sun/star/report/XReportComponent.idl
+++ b/offapi/com/sun/star/report/XReportComponent.idl
@@ -64,7 +64,10 @@ interface XReportComponent
/** specifies the height of the control.
*/
- [attribute,bound] long Height;
+ [attribute,bound] long Height
+ {
+ set raises ( com::sun::star::beans::PropertyVetoException );
+ };
/** specifies the horizontal position of the control.
*/
@@ -76,7 +79,10 @@ interface XReportComponent
/** specifies the width of the control.
*/
- [attribute,bound] long Width;
+ [attribute,bound] long Width
+ {
+ set raises ( com::sun::star::beans::PropertyVetoException );
+ };
/** specifies the border style of the control.