From 4bad1a8e314269f2538133eb241135a225ac3f4f Mon Sep 17 00:00:00 2001 From: Noel Power Date: Tue, 23 Apr 2013 18:13:37 +0100 Subject: support api initiated change_event for combox & textbox Change-Id: Iff51a184792e9d12accb902df1772fc07589443b --- vbahelper/source/msforms/vbatextbox.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vbahelper/source/msforms/vbatextbox.cxx') diff --git a/vbahelper/source/msforms/vbatextbox.cxx b/vbahelper/source/msforms/vbatextbox.cxx index d4d10c147204..f61087ed7d1b 100644 --- a/vbahelper/source/msforms/vbatextbox.cxx +++ b/vbahelper/source/msforms/vbatextbox.cxx @@ -59,6 +59,7 @@ ScVbaTextBox::getText() throw (css::uno::RuntimeException) void SAL_CALL ScVbaTextBox::setText( const OUString& _text ) throw (css::uno::RuntimeException) { + OUString oldText( getText() ); if ( !mbDialog ) { uno::Reference< text::XTextRange > xTextRange( m_xProps, uno::UNO_QUERY_THROW ); @@ -66,6 +67,8 @@ ScVbaTextBox::setText( const OUString& _text ) throw (css::uno::RuntimeException } else m_xProps->setPropertyValue( "Text" , uno::makeAny( _text ) ); + if ( oldText != _text ) + fireChangeEvent(); } sal_Int32 SAL_CALL -- cgit