From 1fefd633220e5d9a7b1d511e3ebac7c008d97a97 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Thu, 29 Nov 2012 15:53:28 +0100 Subject: 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 --- offapi/com/sun/star/inspection/XPropertyHandler.idl | 4 +++- offapi/com/sun/star/report/XReportComponent.idl | 10 ++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'offapi/com') 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 #include #include +#include #include #include @@ -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. -- cgit