diff options
author | Kurt Zenker <kz@openoffice.org> | 2007-05-10 09:07:07 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2007-05-10 09:07:07 +0000 |
commit | 3aeaeebf9b8b841d9066d5e5225bcebc0581b082 (patch) | |
tree | 77a67eedd1d7eeae1024548f8de2139f8571bfd7 /svx/source/form/fmvwimp.cxx | |
parent | 9685035bc18100d717ca3d3f2ec04819906c29c2 (diff) |
INTEGRATION: CWS dba23a (1.60.40); FILE MERGED
2007/03/12 11:40:24 fs 1.60.40.1: #i71488# +getFormController
Diffstat (limited to 'svx/source/form/fmvwimp.cxx')
-rw-r--r-- | svx/source/form/fmvwimp.cxx | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/svx/source/form/fmvwimp.cxx b/svx/source/form/fmvwimp.cxx index e93f2711fa60..3ff1cdfc1bd1 100644 --- a/svx/source/form/fmvwimp.cxx +++ b/svx/source/form/fmvwimp.cxx @@ -4,9 +4,9 @@ * * $RCSfile: fmvwimp.cxx,v $ * - * $Revision: 1.60 $ + * $Revision: 1.61 $ * - * last change: $Author: vg $ $Date: 2007-01-15 14:27:08 $ + * last change: $Author: kz $ $Date: 2007-05-10 10:07:07 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -915,6 +915,26 @@ namespace } // ----------------------------------------------------------------------------- +Reference< XFormController > FmXFormView::getFormController( const Reference< XForm >& _rxForm, const OutputDevice& _rDevice ) const +{ + Reference< XFormController > xController; + + for ( FmWinRecList::const_iterator rec = m_aWinList.begin(); rec != m_aWinList.end(); ++rec ) + { + const FmXPageViewWinRec* pViewWinRec( *rec ); + OSL_ENSURE( pViewWinRec, "FmXFormView::getFormController: invalid PageViewWinRec!" ); + if ( !pViewWinRec || ( pViewWinRec->getWindow() != &_rDevice ) ) + // wrong device + continue; + + xController = pViewWinRec->getController( _rxForm ); + if ( xController.is() ) + break; + } + return xController; +} + +// ----------------------------------------------------------------------------- IMPL_LINK(FmXFormView, OnAutoFocus, void*, /*EMPTYTAG*/) { m_nAutoFocusEvent = 0; |