diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2006-11-14 12:25:13 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2006-11-14 12:25:13 +0000 |
commit | 0e059d43441f55f4813f0570bb23ce4308f55f25 (patch) | |
tree | 615b62ef251bac1418151e694e3de46d041fd07f /svx/source/form/fmshimp.cxx | |
parent | a9e9cd9783906c10660a934345c31682d191f8c2 (diff) |
INTEGRATION: CWS aw024 (1.66.76); FILE MERGED
2006/11/10 03:29:42 aw 1.66.76.12: RESYNC: (1.77-1.79); FILE MERGED
2006/09/21 18:57:12 aw 1.66.76.11: RESYNC: (1.76-1.77); FILE MERGED
2006/08/03 15:19:49 aw 1.66.76.10: RESYNC: (1.75-1.76); FILE MERGED
2006/07/04 12:45:49 aw 1.66.76.9: RESYNC: (1.74-1.75); FILE MERGED
2006/05/12 18:37:54 aw 1.66.76.8: RESYNC: (1.73-1.74); FILE MERGED
2006/01/26 21:47:58 aw 1.66.76.7: RESYNC: (1.69-1.73); FILE MERGED
2006/01/25 07:00:01 fs 1.66.76.6: merge changes from CWS formcontacts (for #i52724#) herein
2005/11/18 16:53:41 aw 1.66.76.5: RESYNC: (1.68-1.69); FILE MERGED
2005/09/18 03:54:28 aw 1.66.76.4: RESYNC: (1.67-1.68); FILE MERGED
2005/07/22 10:50:31 aw 1.66.76.3: RESYNC: (1.66-1.67); FILE MERGED
2005/05/26 11:27:59 aw 1.66.76.2: #i39531#
2005/05/19 12:31:18 aw 1.66.76.1: #i39529#
Diffstat (limited to 'svx/source/form/fmshimp.cxx')
-rw-r--r-- | svx/source/form/fmshimp.cxx | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx index bead268f03b9..666f3ec744aa 100644 --- a/svx/source/form/fmshimp.cxx +++ b/svx/source/form/fmshimp.cxx @@ -4,9 +4,9 @@ * * $RCSfile: fmshimp.cxx,v $ * - * $Revision: 1.79 $ + * $Revision: 1.80 $ * - * last change: $Author: ihi $ $Date: 2006-10-18 13:24:00 $ + * last change: $Author: ihi $ $Date: 2006-11-14 13:25:13 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -255,6 +255,10 @@ #include <toolkit/helper/vclunohelper.hxx> #endif +#ifndef _SDRPAGEWINDOW_HXX +#include <sdrpagewindow.hxx> +#endif + #include <algorithm> #include <functional> @@ -1376,11 +1380,11 @@ Reference< XControlContainer > FmXFormShell::getControlContainerForView() { SdrPageView* pPageView = NULL; if ( m_pShell && m_pShell->GetFormView() ) - pPageView = m_pShell->GetFormView()->GetPageViewPvNum(0); + pPageView = m_pShell->GetFormView()->GetSdrPageView(); Reference< XControlContainer> xControlContainer; if ( pPageView ) - xControlContainer = pPageView->GetWindow(0)->GetControlContainerRef(); + xControlContainer = pPageView->GetPageWindow(0)->GetControlContainer(); return xControlContainer; } @@ -1578,7 +1582,7 @@ void FmXFormShell::ExecuteSearch() // GridControls wieder restaurieren LoopGrids(GA_ENABLE_SYNC | GA_DISABLE_ROCTRLR); - m_pShell->GetFormView()->UnMarkAll(m_pShell->GetFormView()->GetPageViewPvNum(0)); + m_pShell->GetFormView()->UnMarkAll(m_pShell->GetFormView()->GetSdrPageView()); // da ich in OnFoundData (fals ich dort war) Controls markiert habe } @@ -1756,7 +1760,7 @@ void FmXFormShell::ExecuteFormSlot( sal_Int32 _nSlot, aHelper->execute( _nSlot ); if ( _nSlot == SID_FM_RECORD_UNDO ) - { + { // if we're doing an UNDO, *and* if the affected form is the form which we also display // as external view, then we need to reset the controls of the external form, too if ( getInternalForm( _rxForm ) == m_xExternalDisplayedForm ) @@ -2159,8 +2163,8 @@ IMPL_LINK(FmXFormShell, OnFoundData, FmFoundRecordInformation*, pfriWhere) SdrObject* pObject = m_arrSearchedControls.GetObject(pfriWhere->nFieldPos); DBG_ASSERT(pObject != NULL, "FmXFormShell::OnFoundData : unerwartet : ungueltiges VclControl-Interface"); - m_pShell->GetFormView()->UnMarkAll(m_pShell->GetFormView()->GetPageView(m_pShell->GetCurPage())); - m_pShell->GetFormView()->MarkObj(pObject, m_pShell->GetFormView()->GetPageView(m_pShell->GetCurPage())); + m_pShell->GetFormView()->UnMarkAll(m_pShell->GetFormView()->GetSdrPageView()); + m_pShell->GetFormView()->MarkObj(pObject, m_pShell->GetFormView()->GetSdrPageView()); DBG_ASSERT(pObject->IsUnoObj(), "FmXFormShell::OnFoundData : ungueltiges Control !"); Reference< XControlModel> xControlModel( ((SdrUnoObj*)pObject)->GetUnoControlModel()); @@ -2231,7 +2235,7 @@ IMPL_LINK(FmXFormShell, OnCanceledNotFound, FmFoundRecordInformation*, pfriWhere } - m_pShell->GetFormView()->UnMarkAll(m_pShell->GetFormView()->GetPageViewPvNum(0)); + m_pShell->GetFormView()->UnMarkAll(m_pShell->GetFormView()->GetSdrPageView()); return 0L; } @@ -3809,7 +3813,7 @@ void FmXFormShell::viewDeactivated( FmFormView* _pCurrentView, sal_Bool _bDeacti // if we have an async load operation pending for the 0-th page for this view, // we need to cancel this // 103727 - 2002-09-26 - fs@openoffice.org - const SdrPageView* pCurPageView = _pCurrentView->GetPageViewPvNum( 0 ); + const SdrPageView* pCurPageView = _pCurrentView->GetSdrPageView(); const FmFormPage* pPage = pCurPageView ? PTR_CAST( FmFormPage, pCurPageView->GetPage() ) : NULL; if ( pPage ) { @@ -3872,7 +3876,7 @@ void FmXFormShell::viewActivated( FmFormView* _pCurrentView, sal_Bool _bSyncActi if ( _pCurrentView && _pCurrentView->GetImpl() && !_pCurrentView->IsDesignMode() ) { // load forms for the page the current view belongs to - SdrPageView* pCurPageView = _pCurrentView->GetPageViewPvNum( 0 ); + SdrPageView* pCurPageView = _pCurrentView->GetSdrPageView(); FmFormPage* pPage = pCurPageView ? PTR_CAST( FmFormPage, pCurPageView->GetPage() ) : NULL; if ( pPage ) { |