From d9e20cf97456b499661663fe899632b38f2ca73b Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Thu, 14 Aug 2008 11:09:06 +0000 Subject: INTEGRATION: CWS dba30h_DEV300 (1.6.40); FILE MERGED 2008/07/28 07:33:12 fs 1.6.40.1: copying the fix for #i90914# herein, to try to get it for 3.0 --- forms/source/runtime/formoperations.cxx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'forms/source') diff --git a/forms/source/runtime/formoperations.cxx b/forms/source/runtime/formoperations.cxx index 8e5b4f7d3cb0..123efe23b9bc 100644 --- a/forms/source/runtime/formoperations.cxx +++ b/forms/source/runtime/formoperations.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: formoperations.cxx,v $ - * $Revision: 1.6 $ + * $Revision: 1.7 $ * * This file is part of OpenOffice.org. * @@ -54,6 +54,7 @@ #include #include #include +#include /** === end UNO includes === **/ #include @@ -63,6 +64,7 @@ #include #include #include +#include #include #include #include @@ -120,6 +122,7 @@ namespace frm using ::com::sun::star::beans::PropertyValue; using ::com::sun::star::ui::dialogs::XExecutableDialog; using ::com::sun::star::beans::NamedValue; + using ::com::sun::star::util::XRefreshable; /** === end UNO using === **/ namespace FormFeature = ::com::sun::star::form::runtime::FormFeature; namespace RowChangeAction = ::com::sun::star::sdb::RowChangeAction; @@ -532,6 +535,18 @@ namespace frm { WaitObject aWO( NULL ); m_xLoadableForm->reload(); + + // refresh all controls in the form (and sub forms) which can be refreshed + // #i90914# / 2008-07-02 / frank.schoenheit@sun.com + ::comphelper::IndexAccessIterator aIter( m_xLoadableForm ); + Reference< XInterface > xElement( aIter.Next() ); + while ( xElement.is() ) + { + Reference< XRefreshable > xRefresh( xElement, UNO_QUERY ); + if ( xRefresh.is() ) + xRefresh->refresh(); + xElement = aIter.Next(); + } } break; -- cgit