diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2003-12-01 08:45:50 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2003-12-01 08:45:50 +0000 |
commit | 809c4cee31e07c9273ef15169fa6d8c865e8c719 (patch) | |
tree | 25de2687e7e169fbd79a9c3e4f403d8ff182e0f1 /sw/source/ui/fldui/fldtdlg.cxx | |
parent | 8a3baba84aa42f63ae91ec1ae5eee919ff7b8331 (diff) |
INTEGRATION: CWS geordi2q10 (1.10.106); FILE MERGED
2003/11/27 12:40:35 rt 1.10.106.1: #111934#: join CWS os21
Diffstat (limited to 'sw/source/ui/fldui/fldtdlg.cxx')
-rw-r--r-- | sw/source/ui/fldui/fldtdlg.cxx | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/sw/source/ui/fldui/fldtdlg.cxx b/sw/source/ui/fldui/fldtdlg.cxx index 97474e901c18..f13b98d00365 100644 --- a/sw/source/ui/fldui/fldtdlg.cxx +++ b/sw/source/ui/fldui/fldtdlg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: fldtdlg.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: hjs $ $Date: 2003-08-19 11:59:00 $ + * last change: $Author: rt $ $Date: 2003-12-01 09:45:50 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -278,7 +278,8 @@ BOOL SwFldDataOnlyDlgWrapper::ReInitDlg(SwDocShell *pDocSh) SwFldDlg::SwFldDlg(SfxBindings* pB, SwChildWinWrapper* pCW, Window *pParent) : SfxTabDialog( pParent, SW_RES( DLG_FLD_INSERT )), pChildWin(pCW), - bDataBaseMode(FALSE) + bDataBaseMode(FALSE), + pBindings(pB) { SetStyle(GetStyle()|WB_STDMODELESS); bHtmlMode = (::GetHtmlMode((SwDocShell*)SfxObjectShell::Current()) & HTMLMODE_ON) != 0; @@ -529,3 +530,27 @@ void SwFldDlg::ActivateDatabasePage() RemoveTabPage(TP_FLD_REF); RemoveTabPage(TP_FLD_FUNC); } +/*-- 07.10.2003 14:01:44--------------------------------------------------- + + -----------------------------------------------------------------------*/ +void SwFldDlg::PageCreated(USHORT nId, SfxTabPage& rPage) +{ + if( TP_FLD_DB == nId) + { + SfxDispatcher* pDispatch = pBindings->GetDispatcher(); + SfxViewFrame* pViewFrame = pDispatch ? pDispatch->GetFrame() : 0; + if(pViewFrame) + { + const TypeId aSwViewTypeId = TYPE(SwView); + SfxViewShell* pViewShell = SfxViewShell::GetFirst( &aSwViewTypeId ); + while(pViewShell && pViewShell->GetViewFrame() != pViewFrame) + { + pViewShell = SfxViewShell::GetNext( *pViewShell, &aSwViewTypeId ); + } + if(pViewShell) + static_cast<SwFldDBPage&>(rPage).SetWrtShell(static_cast<SwView*>(pViewShell)->GetWrtShell()); + } + } +} + + |