summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-24 13:39:29 +0200
committerNoel Grandin <noel@peralex.com>2015-08-25 08:39:03 +0200
commit219b50a284a9fab6e5eb72efee54a72e15ac1bec (patch)
treea40f8c6bb599f2746a3a250bfb74c4b315eb33c5
parenta9ea1295a668feca4bfb9b2a53a92890177b5371 (diff)
make pWindow private in SfxChildWindow
Change-Id: I585d4e8f0a53f46b6fbcef9e4d26f88b57569684
-rw-r--r--avmedia/source/framework/mediaplayer.cxx4
-rw-r--r--include/sfx2/childwin.hxx14
-rw-r--r--sc/source/ui/app/inputwin.cxx4
-rw-r--r--sc/source/ui/dialogs/searchresults.cxx2
-rw-r--r--sc/source/ui/formdlg/dwfunctr.cxx2
-rw-r--r--sc/source/ui/inc/ChildWindowWrapper.hxx6
-rw-r--r--sc/source/ui/view/reffact.cxx65
-rw-r--r--sd/source/ui/dlg/AnimationChildWindow.cxx2
-rw-r--r--sd/source/ui/dlg/PaneChildWindows.cxx9
-rw-r--r--sfx2/source/dialog/dockwin.cxx6
-rw-r--r--sfx2/source/dialog/infobar.cxx6
-rw-r--r--sfx2/source/dialog/navigat.cxx10
-rw-r--r--sfx2/source/dialog/partwnd.cxx12
-rw-r--r--sfx2/source/dialog/recfloat.cxx4
-rw-r--r--sfx2/source/dialog/taskpane.cxx12
-rw-r--r--sfx2/source/sidebar/SidebarChildWindow.cxx12
-rw-r--r--starmath/inc/view.hxx2
-rw-r--r--starmath/source/ElementsDockingWindow.cxx2
-rw-r--r--starmath/source/view.cxx4
-rw-r--r--svx/source/dialog/SpellDialogChildWindow.cxx2
-rw-r--r--svx/source/dialog/_bmpmask.cxx2
-rw-r--r--svx/source/dialog/_contdlg.cxx2
-rw-r--r--svx/source/dialog/fontwork.cxx2
-rw-r--r--svx/source/dialog/hyperdlg.cxx4
-rw-r--r--svx/source/dialog/imapdlg.cxx4
-rw-r--r--svx/source/dialog/rubydialog.cxx2
-rw-r--r--svx/source/dialog/srchdlg.cxx2
-rw-r--r--svx/source/engine3d/float3d.cxx2
-rw-r--r--svx/source/form/datanavi.cxx6
-rw-r--r--svx/source/form/filtnav.cxx4
-rw-r--r--svx/source/form/fmPropBrw.cxx4
-rw-r--r--svx/source/form/fmexpl.cxx4
-rw-r--r--svx/source/form/tabwin.cxx4
-rw-r--r--svx/source/tbxctrls/SvxColorChildWindow.cxx2
-rw-r--r--sw/source/uibase/dbui/mailmergechildwindow.cxx14
-rw-r--r--sw/source/uibase/dialog/wordcountwrapper.cxx2
-rw-r--r--sw/source/uibase/envelp/syncbtn.cxx14
-rw-r--r--sw/source/uibase/fldui/fldwrap.cxx4
-rw-r--r--sw/source/uibase/inc/inputwin.hxx6
-rw-r--r--sw/source/uibase/index/idxmrk.cxx6
-rw-r--r--sw/source/uibase/misc/redlndlg.cxx4
-rw-r--r--sw/source/uibase/ribbar/inputwin.cxx4
42 files changed, 139 insertions, 139 deletions
diff --git a/avmedia/source/framework/mediaplayer.cxx b/avmedia/source/framework/mediaplayer.cxx
index 1298e8cfc0d8..b9c4ad4126c7 100644
--- a/avmedia/source/framework/mediaplayer.cxx
+++ b/avmedia/source/framework/mediaplayer.cxx
@@ -40,8 +40,8 @@ namespace avmedia
MediaPlayer::MediaPlayer( vcl::Window* _pParent, sal_uInt16 nId, SfxBindings* _pBindings, SfxChildWinInfo* pInfo ) :
SfxChildWindow( _pParent, nId )
{
- pWindow.reset( VclPtr<MediaFloater>::Create( _pBindings, this, _pParent ) );
- static_cast< MediaFloater* >( pWindow.get() )->Initialize( pInfo );
+ SetWindow( VclPtr<MediaFloater>::Create( _pBindings, this, _pParent ) );
+ static_cast< MediaFloater* >( GetWindow() )->Initialize( pInfo );
};
diff --git a/include/sfx2/childwin.hxx b/include/sfx2/childwin.hxx
index 3cc607ed1291..00d87054251e 100644
--- a/include/sfx2/childwin.hxx
+++ b/include/sfx2/childwin.hxx
@@ -150,18 +150,16 @@ class SFX2_DLLPUBLIC SfxChildWindow
{
VclPtr<vcl::Window> pParent; // parent window ( Topwindow )
sal_uInt16 nType; // ChildWindow-Id
-
-protected:
- VclPtr<vcl::Window> pWindow; // actual contents
-
-private:
- SfxChildAlignment eChildAlignment; // Current ::com::sun::star::drawing::Alignment
- SfxChildWindow_Impl* pImp; // Implementation data
- SfxChildWindowContext* pContext; // With context-sensitive ChildWindows:
+ VclPtr<vcl::Window> pWindow; // actual contents
+ SfxChildAlignment eChildAlignment; // Current ::com::sun::star::drawing::Alignment
+ SfxChildWindow_Impl* pImp; // Implementation data
+ SfxChildWindowContext* pContext; // With context-sensitive ChildWindows:
// Annother window in pWindow
SAL_DLLPRIVATE void ClearWorkwin();
protected:
+ void SetWindow(const VclPtr<vcl::Window>& p) { pWindow = p; }
+
SfxChildWindow(vcl::Window *pParentWindow, sal_uInt16 nId);
public:
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 10688993df5a..2d50b0b901dc 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -123,8 +123,8 @@ ScInputWindowWrapper::ScInputWindowWrapper( vcl::Window* pParentP,
SfxChildWinInfo* /* pInfo */ )
: SfxChildWindow( pParentP, nId )
{
- VclPtr<ScInputWindow> pWin=VclPtr<ScInputWindow>::Create( pParentP, pBindings );
- pWindow = pWin;
+ VclPtr<ScInputWindow> pWin = VclPtr<ScInputWindow>::Create( pParentP, pBindings );
+ SetWindow( pWin );
pWin->Show();
diff --git a/sc/source/ui/dialogs/searchresults.cxx b/sc/source/ui/dialogs/searchresults.cxx
index 2d91c929f12c..e1600f56d872 100644
--- a/sc/source/ui/dialogs/searchresults.cxx
+++ b/sc/source/ui/dialogs/searchresults.cxx
@@ -124,7 +124,7 @@ SearchResultsDlgWrapper::SearchResultsDlgWrapper(
vcl::Window* _pParent, sal_uInt16 nId, SfxBindings* pBindings, SfxChildWinInfo* /*pInfo*/ ) :
SfxChildWindow(_pParent, nId)
{
- pWindow = VclPtr<SearchResultsDlg>::Create(pBindings, _pParent, nId);
+ SetWindow( VclPtr<SearchResultsDlg>::Create(pBindings, _pParent, nId) );
}
SearchResultsDlgWrapper::~SearchResultsDlgWrapper() {}
diff --git a/sc/source/ui/formdlg/dwfunctr.cxx b/sc/source/ui/formdlg/dwfunctr.cxx
index 0afbcd4a793f..0b4d4971206d 100644
--- a/sc/source/ui/formdlg/dwfunctr.cxx
+++ b/sc/source/ui/formdlg/dwfunctr.cxx
@@ -65,7 +65,7 @@ ScFunctionChildWindow::ScFunctionChildWindow( vcl::Window* pParentP,
{
VclPtr<ScFunctionDockWin> pWin = VclPtr<ScFunctionDockWin>::Create( pBindings, this,
pParentP, ScResId( FID_FUNCTION_BOX ) );
- pWindow = pWin;
+ SetWindow(pWin);
SetAlignment(SfxChildAlignment::RIGHT);
diff --git a/sc/source/ui/inc/ChildWindowWrapper.hxx b/sc/source/ui/inc/ChildWindowWrapper.hxx
index 48938e9ea591..aec24f93d6cd 100644
--- a/sc/source/ui/inc/ChildWindowWrapper.hxx
+++ b/sc/source/ui/inc/ChildWindowWrapper.hxx
@@ -32,11 +32,11 @@ public:
OSL_ENSURE(pViewShell, "Missing view shell!");
if (pViewShell)
- pWindow = pViewShell->CreateRefDialog( pBindings, this, pInfo, pParentP, WindowID );
+ SetWindow( pViewShell->CreateRefDialog( pBindings, this, pInfo, pParentP, WindowID ) );
else
- pWindow = NULL;
+ SetWindow( NULL );
- if (pViewShell && !pWindow)
+ if (pViewShell && !GetWindow())
pViewShell->GetViewFrame()->SetChildWindow( nId, false );
}
diff --git a/sc/source/ui/view/reffact.cxx b/sc/source/ui/view/reffact.cxx
index 75c69b1aea16..44712f04ef3b 100644
--- a/sc/source/ui/view/reffact.cxx
+++ b/sc/source/ui/view/reffact.cxx
@@ -90,9 +90,9 @@ namespace
if (!pViewShell) \
pViewShell = PTR_CAST( ScTabViewShell, SfxViewShell::Current() ); \
OSL_ENSURE( pViewShell, "missing view shell :-(" ); \
- pWindow = pViewShell ? \
- pViewShell->CreateRefDialog( p, this, pInfo, pParentP, sid ) : nullptr; \
- if (pViewShell && !pWindow) \
+ SetWindow( pViewShell ? \
+ pViewShell->CreateRefDialog( p, this, pInfo, pParentP, sid ) : nullptr ); \
+ if (pViewShell && !GetWindow()) \
pViewShell->GetViewFrame()->SetChildWindow( nId, false ); \
}
@@ -158,12 +158,12 @@ ScSimpleRefDlgWrapper::ScSimpleRefDlgWrapper( vcl::Window* pParentP,
pInfo->aSize.Height()=nScSimpleRefHeight;
pInfo->aSize.Width()=nScSimpleRefWidth;
}
- pWindow = NULL;
+ SetWindow(NULL);
if(bAutoReOpen && pViewShell)
- pWindow = pViewShell->CreateRefDialog( p, this, pInfo, pParentP, WID_SIMPLE_REF);
+ SetWindow( pViewShell->CreateRefDialog( p, this, pInfo, pParentP, WID_SIMPLE_REF) );
- if (!pWindow)
+ if (!GetWindow())
{
SC_MOD()->SetRefDialog( nId, false );
}
@@ -188,42 +188,42 @@ void ScSimpleRefDlgWrapper::SetAutoReOpen(bool bFlag)
void ScSimpleRefDlgWrapper::SetRefString(const OUString& rStr)
{
- if(pWindow!=nullptr)
+ if(GetWindow())
{
- static_cast<ScSimpleRefDlg*>(pWindow.get())->SetRefString(rStr);
+ static_cast<ScSimpleRefDlg*>(GetWindow())->SetRefString(rStr);
}
}
void ScSimpleRefDlgWrapper::SetCloseHdl( const Link<>& rLink )
{
- if(pWindow!=nullptr)
+ if(GetWindow())
{
- static_cast<ScSimpleRefDlg*>(pWindow.get())->SetCloseHdl( rLink );
+ static_cast<ScSimpleRefDlg*>(GetWindow())->SetCloseHdl( rLink );
}
}
void ScSimpleRefDlgWrapper::SetUnoLinks( const Link<>& rDone,
const Link<>& rAbort, const Link<>& rChange )
{
- if(pWindow!=nullptr)
+ if(GetWindow())
{
- static_cast<ScSimpleRefDlg*>(pWindow.get())->SetUnoLinks( rDone, rAbort, rChange );
+ static_cast<ScSimpleRefDlg*>(GetWindow())->SetUnoLinks( rDone, rAbort, rChange );
}
}
void ScSimpleRefDlgWrapper::SetFlags( bool bCloseOnButtonUp, bool bSingleCell, bool bMultiSelection )
{
- if(pWindow!=nullptr)
+ if(GetWindow())
{
- static_cast<ScSimpleRefDlg*>(pWindow.get())->SetFlags( bCloseOnButtonUp, bSingleCell, bMultiSelection );
+ static_cast<ScSimpleRefDlg*>(GetWindow())->SetFlags( bCloseOnButtonUp, bSingleCell, bMultiSelection );
}
}
void ScSimpleRefDlgWrapper::StartRefInput()
{
- if(pWindow!=nullptr)
+ if(GetWindow())
{
- static_cast<ScSimpleRefDlg*>(pWindow.get())->StartRefInput();
+ static_cast<ScSimpleRefDlg*>(GetWindow())->StartRefInput();
}
}
@@ -239,14 +239,13 @@ ScAcceptChgDlgWrapper::ScAcceptChgDlgWrapper( vcl::Window* pParentP,
PTR_CAST( ScTabViewShell, SfxViewShell::Current() );
OSL_ENSURE( pViewShell, "missing view shell :-(" );
if (pViewShell)
- pWindow = VclPtr<ScAcceptChgDlg>::Create( pBindings, this, pParentP, &pViewShell->GetViewData() );
- else
- pWindow = NULL;
- if(pWindow!=nullptr)
{
- static_cast<ScAcceptChgDlg*>(pWindow.get())->Initialize( pInfo );
+ SetWindow( VclPtr<ScAcceptChgDlg>::Create( pBindings, this, pParentP, &pViewShell->GetViewData() ) );
+ static_cast<ScAcceptChgDlg*>(GetWindow())->Initialize( pInfo );
}
- if (pViewShell && !pWindow)
+ else
+ SetWindow( NULL );
+ if (pViewShell && !GetWindow())
pViewShell->GetViewFrame()->SetChildWindow( nId, false );
}
@@ -256,9 +255,9 @@ void ScAcceptChgDlgWrapper::ReInitDlg()
PTR_CAST( ScTabViewShell, SfxViewShell::Current() );
OSL_ENSURE( pViewShell, "missing view shell :-(" );
- if(pWindow!=nullptr && pViewShell)
+ if(GetWindow() && pViewShell)
{
- static_cast<ScAcceptChgDlg*>(pWindow.get())->ReInit(&pViewShell->GetViewData());
+ static_cast<ScAcceptChgDlg*>(GetWindow())->ReInit(&pViewShell->GetViewData());
}
}
@@ -290,24 +289,28 @@ ScValidityRefChildWin::ScValidityRefChildWin( vcl::Window* pParent
m_pSavedWndParent( NULL )
{
SetWantsFocus( false );
- ScTabViewShell* pViewShell =
- nullptr != ( pWindow = ScValidationDlg::Find1AliveObject( pParentP ) ) ? static_cast<ScValidationDlg*>(pWindow.get())->GetTabViewShell() :
- lcl_GetTabViewShell( p );
+ VclPtr<ScValidationDlg> pDlg = ScValidationDlg::Find1AliveObject( pParentP );
+ SetWindow(pDlg);
+ ScTabViewShell* pViewShell;
+ if (pDlg)
+ pViewShell = static_cast<ScValidationDlg*>(GetWindow())->GetTabViewShell();
+ else
+ pViewShell = lcl_GetTabViewShell( p );
if (!pViewShell)
pViewShell = PTR_CAST( ScTabViewShell, SfxViewShell::Current() );
OSL_ENSURE( pViewShell, "missing view shell :-(" );
- if (pViewShell && !pWindow)
+ if (pViewShell && !GetWindow())
pViewShell->GetViewFrame()->SetChildWindow( nId, false );
- if( pWindow ) m_pSavedWndParent = pWindow->GetParent();
+ if( GetWindow() ) m_pSavedWndParent = GetWindow()->GetParent();
}
ScValidityRefChildWin::~ScValidityRefChildWin()
{
- if( pWindow ) pWindow->SetParent( m_pSavedWndParent );
+ if( GetWindow() ) GetWindow()->SetParent( m_pSavedWndParent );
if( m_bFreeWindowLock )
- pWindow = NULL;
+ SetWindow(nullptr);
}
IMPL_CHILD_CTOR( ScCondFormatDlgWrapper, WID_CONDFRMT_REF )
diff --git a/sd/source/ui/dlg/AnimationChildWindow.cxx b/sd/source/ui/dlg/AnimationChildWindow.cxx
index 1fd341642b7e..8a7b7948dffb 100644
--- a/sd/source/ui/dlg/AnimationChildWindow.cxx
+++ b/sd/source/ui/dlg/AnimationChildWindow.cxx
@@ -40,7 +40,7 @@ AnimationChildWindow::AnimationChildWindow(
: SfxChildWindow( _pParent, nId )
{
VclPtr<AnimationWindow> pAnimWin = VclPtr<AnimationWindow>::Create(pBindings, this, _pParent);
- pWindow = pAnimWin;
+ SetWindow(pAnimWin);
pAnimWin->Initialize( pInfo );
diff --git a/sd/source/ui/dlg/PaneChildWindows.cxx b/sd/source/ui/dlg/PaneChildWindows.cxx
index a52d00df7c3a..a8f6306a8865 100644
--- a/sd/source/ui/dlg/PaneChildWindows.cxx
+++ b/sd/source/ui/dlg/PaneChildWindows.cxx
@@ -56,14 +56,13 @@ PaneChildWindow::PaneChildWindow (
SfxChildAlignment eAlignment)
: SfxChildWindow (pParentWindow, nId)
{
- pWindow = VclPtr<PaneDockingWindow>::Create(
-
+ SetWindow( VclPtr<PaneDockingWindow>::Create(
pBindings,
this,
pParentWindow,
- SD_RESSTR(nTitleBarResId));
+ SD_RESSTR(nTitleBarResId)));
SetAlignment(eAlignment);
- static_cast<SfxDockingWindow*>(pWindow.get())->Initialize(pInfo);
+ static_cast<SfxDockingWindow*>(GetWindow())->Initialize(pInfo);
SetHideNotDelete(true);
ViewShellBase* pBase = ViewShellBase::GetViewShellBase(pBindings->GetDispatcher()->GetFrame());
@@ -76,7 +75,7 @@ PaneChildWindow::PaneChildWindow (
PaneChildWindow::~PaneChildWindow()
{
ViewShellBase* pBase = NULL;
- PaneDockingWindow* pDockingWindow = dynamic_cast<PaneDockingWindow*>(pWindow.get());
+ PaneDockingWindow* pDockingWindow = dynamic_cast<PaneDockingWindow*>(GetWindow());
if (pDockingWindow != NULL)
pBase = ViewShellBase::GetViewShellBase(
pDockingWindow->GetBindings().GetDispatcher()->GetFrame());
diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx
index 9afb766085fe..cd4e20e5d813 100644
--- a/sfx2/source/dialog/dockwin.cxx
+++ b/sfx2/source/dialog/dockwin.cxx
@@ -131,7 +131,7 @@ SfxDockingWrapper::SfxDockingWrapper( vcl::Window* pParentWnd ,
VclPtr<SfxTitleDockingWindow> pTitleDockWindow = VclPtr<SfxTitleDockingWindow>::Create( pBindings, this, pParentWnd,
WB_STDDOCKWIN | WB_CLIPCHILDREN | WB_SIZEABLE | WB_3DLOOK | WB_ROLLABLE);
- pWindow = pTitleDockWindow;
+ SetWindow( pTitleDockWindow );
// Use factory manager to retrieve XWindow factory. That can be used to instantiate
// the real window factory.
@@ -204,9 +204,9 @@ SfxDockingWrapper::SfxDockingWrapper( vcl::Window* pParentWnd ,
pContentWindow->SetStyle( pContentWindow->GetStyle() | WB_DIALOGCONTROL | WB_CHILDDLGCTRL );
pTitleDockWindow->SetWrappedWindow(pContentWindow);
- pWindow->SetOutputSizePixel( Size( 270, 240 ) );
+ GetWindow()->SetOutputSizePixel( Size( 270, 240 ) );
- static_cast<SfxDockingWindow*>( pWindow.get() )->Initialize( pInfo );
+ static_cast<SfxDockingWindow*>( GetWindow() )->Initialize( pInfo );
SetHideNotDelete( true );
}
diff --git a/sfx2/source/dialog/infobar.cxx b/sfx2/source/dialog/infobar.cxx
index 0dd8089b7683..67208ba61e73 100644
--- a/sfx2/source/dialog/infobar.cxx
+++ b/sfx2/source/dialog/infobar.cxx
@@ -332,9 +332,9 @@ SfxInfoBarContainerChild::SfxInfoBarContainerChild( vcl::Window* _pParent, sal_u
SfxChildWindow(_pParent, nId),
m_pBindings(pBindings)
{
- pWindow = VclPtr<SfxInfoBarContainerWindow>::Create(this);
- pWindow->SetPosSizePixel(Point(0, 0), Size(_pParent->GetSizePixel().getWidth(), 0));
- pWindow->Show();
+ SetWindow( VclPtr<SfxInfoBarContainerWindow>::Create(this) );
+ GetWindow()->SetPosSizePixel(Point(0, 0), Size(_pParent->GetSizePixel().getWidth(), 0));
+ GetWindow()->Show();
SetAlignment(SfxChildAlignment::LOWESTTOP);
}
diff --git a/sfx2/source/dialog/navigat.cxx b/sfx2/source/dialog/navigat.cxx
index 7f0c223e840c..bb1ccd6a2ef6 100644
--- a/sfx2/source/dialog/navigat.cxx
+++ b/sfx2/source/dialog/navigat.cxx
@@ -34,13 +34,13 @@ SfxNavigatorWrapper::SfxNavigatorWrapper( vcl::Window* pParentWnd ,
SfxChildWinInfo* pInfo )
: SfxChildWindow( pParentWnd , nId )
{
- pWindow = VclPtr<SfxNavigator>::Create( pBindings, this, pParentWnd,
- WB_STDDOCKWIN | WB_CLIPCHILDREN | WB_SIZEABLE | WB_3DLOOK | WB_ROLLABLE);
+ SetWindow( VclPtr<SfxNavigator>::Create( pBindings, this, pParentWnd,
+ WB_STDDOCKWIN | WB_CLIPCHILDREN | WB_SIZEABLE | WB_3DLOOK | WB_ROLLABLE) );
- pWindow->SetHelpId ( HID_NAVIGATOR_WINDOW );
- pWindow->SetOutputSizePixel( Size( 270, 240 ) );
+ GetWindow()->SetHelpId ( HID_NAVIGATOR_WINDOW );
+ GetWindow()->SetOutputSizePixel( Size( 270, 240 ) );
- static_cast<SfxDockingWindow*>( pWindow.get() )->Initialize( pInfo );
+ static_cast<SfxDockingWindow*>( GetWindow() )->Initialize( pInfo );
SetHideNotDelete( true );
}
diff --git a/sfx2/source/dialog/partwnd.cxx b/sfx2/source/dialog/partwnd.cxx
index 3e4a5288c1cc..35b895e3c862 100644
--- a/sfx2/source/dialog/partwnd.cxx
+++ b/sfx2/source/dialog/partwnd.cxx
@@ -59,16 +59,16 @@ SfxPartChildWnd_Impl::SfxPartChildWnd_Impl
: SfxChildWindow( pParentWnd, nId )
{
// Create Window
- pWindow = VclPtr<SfxPartDockWnd_Impl>::Create( pBindings, this, pParentWnd, WB_STDDOCKWIN | WB_CLIPCHILDREN | WB_SIZEABLE | WB_3DLOOK );
+ SetWindow(VclPtr<SfxPartDockWnd_Impl>::Create( pBindings, this, pParentWnd, WB_STDDOCKWIN | WB_CLIPCHILDREN | WB_SIZEABLE | WB_3DLOOK ));
SetAlignment(SfxChildAlignment::TOP);
assert(pInfo);
pInfo->nFlags |= SfxChildWindowFlags::FORCEDOCK;
- static_cast<SfxDockingWindow*>(pWindow.get())->SetFloatingSize( Size( 175, 175 ) );
- pWindow->SetSizePixel( Size( 175, 175 ) );
+ static_cast<SfxDockingWindow*>(GetWindow())->SetFloatingSize( Size( 175, 175 ) );
+ GetWindow()->SetSizePixel( Size( 175, 175 ) );
- static_cast<SfxDockingWindow*>(pWindow.get())->Initialize( pInfo );
+ static_cast<SfxDockingWindow*>(GetWindow())->Initialize( pInfo );
SetHideNotDelete( true );
}
@@ -82,7 +82,7 @@ SfxPartChildWnd_Impl::~SfxPartChildWnd_Impl()
// But don't do it, if xFrame already exist. Then dispose() must come from inside ...
// and we need a valid pMgr for further operations ...
- SfxPartDockWnd_Impl* pWin = static_cast<SfxPartDockWnd_Impl*>(pWindow.get());
+ SfxPartDockWnd_Impl* pWin = static_cast<SfxPartDockWnd_Impl*>(GetWindow());
if ( pWin && xFrame == pWin->GetBindings().GetActiveFrame() )
pWin->GetBindings().SetActiveFrame( NULL );
@@ -90,7 +90,7 @@ SfxPartChildWnd_Impl::~SfxPartChildWnd_Impl()
bool SfxPartChildWnd_Impl::QueryClose()
{
- return static_cast<SfxPartDockWnd_Impl*>(pWindow.get())->QueryClose();
+ return static_cast<SfxPartDockWnd_Impl*>(GetWindow())->QueryClose();
}
diff --git a/sfx2/source/dialog/recfloat.cxx b/sfx2/source/dialog/recfloat.cxx
index c771d63f1feb..4d719059c110 100644
--- a/sfx2/source/dialog/recfloat.cxx
+++ b/sfx2/source/dialog/recfloat.cxx
@@ -131,9 +131,9 @@ SfxRecordingFloatWrapper_Impl::SfxRecordingFloatWrapper_Impl( vcl::Window* pPare
: SfxChildWindow( pParentWnd, nId )
, pBindings( pBind )
{
- pWindow = VclPtr<SfxRecordingFloat_Impl>::Create( pBindings, this, pParentWnd );
+ SetWindow( VclPtr<SfxRecordingFloat_Impl>::Create( pBindings, this, pParentWnd ) );
SetWantsFocus( false );
- static_cast<SfxFloatingWindow*>(pWindow.get())->Initialize( pInfo );
+ static_cast<SfxFloatingWindow*>(GetWindow())->Initialize( pInfo );
}
SfxRecordingFloatWrapper_Impl::~SfxRecordingFloatWrapper_Impl()
diff --git a/sfx2/source/dialog/taskpane.cxx b/sfx2/source/dialog/taskpane.cxx
index 548a0e557c4b..43c8cf7d323a 100644
--- a/sfx2/source/dialog/taskpane.cxx
+++ b/sfx2/source/dialog/taskpane.cxx
@@ -249,17 +249,17 @@ namespace sfx2
TaskPaneWrapper::TaskPaneWrapper( vcl::Window* i_pParent, sal_uInt16 i_nId, SfxBindings* i_pBindings, SfxChildWinInfo* i_pInfo )
:SfxChildWindow( i_pParent, i_nId )
{
- pWindow = VclPtr<TaskPaneDockingWindow>::Create( i_pBindings, *this, i_pParent,
- WB_STDDOCKWIN | WB_CLIPCHILDREN | WB_SIZEABLE | WB_3DLOOK | WB_ROLLABLE);
+ SetWindow(VclPtr<TaskPaneDockingWindow>::Create( i_pBindings, *this, i_pParent,
+ WB_STDDOCKWIN | WB_CLIPCHILDREN | WB_SIZEABLE | WB_3DLOOK | WB_ROLLABLE));
SetAlignment(SfxChildAlignment::RIGHT);
- pWindow->SetHelpId( HID_TASKPANE_WINDOW );
- pWindow->SetOutputSizePixel( Size( 300, 450 ) );
+ GetWindow()->SetHelpId( HID_TASKPANE_WINDOW );
+ GetWindow()->SetOutputSizePixel( Size( 300, 450 ) );
- dynamic_cast<SfxDockingWindow&>(*pWindow).Initialize(i_pInfo);
+ dynamic_cast<SfxDockingWindow*>(GetWindow())->Initialize(i_pInfo);
SetHideNotDelete( true );
- pWindow->Show();
+ GetWindow()->Show();
}
diff --git a/sfx2/source/sidebar/SidebarChildWindow.cxx b/sfx2/source/sidebar/SidebarChildWindow.cxx
index 59384c589ebd..18a62b5b5449 100644
--- a/sfx2/source/sidebar/SidebarChildWindow.cxx
+++ b/sfx2/source/sidebar/SidebarChildWindow.cxx
@@ -34,16 +34,16 @@ SidebarChildWindow::SidebarChildWindow (vcl::Window* pParentWindow, sal_uInt16 n
SfxBindings* pBindings, SfxChildWinInfo* pInfo)
: SfxChildWindow(pParentWindow, nId)
{
- pWindow.reset(VclPtr<SidebarDockingWindow>::Create(pBindings, *this, pParentWindow,
+ SetWindow(VclPtr<SidebarDockingWindow>::Create(pBindings, *this, pParentWindow,
WB_STDDOCKWIN | WB_OWNERDRAWDECORATION |
WB_CLIPCHILDREN | WB_SIZEABLE |
WB_3DLOOK | WB_ROLLABLE));
SetAlignment(SfxChildAlignment::RIGHT);
- pWindow->SetHelpId(HID_SIDEBAR_WINDOW);
- pWindow->SetOutputSizePixel(Size(GetDefaultWidth(pWindow), 450));
+ GetWindow()->SetHelpId(HID_SIDEBAR_WINDOW);
+ GetWindow()->SetOutputSizePixel(Size(GetDefaultWidth(GetWindow()), 450));
- SfxDockingWindow* pDockingParent = dynamic_cast<SfxDockingWindow*>(pWindow.get());
+ SfxDockingWindow* pDockingParent = dynamic_cast<SfxDockingWindow*>(GetWindow());
if (pDockingParent != NULL)
{
if (pInfo && pInfo->aExtraString.isEmpty() && pInfo->aModule != "sdraw" && pInfo->aModule != "simpress")
@@ -54,14 +54,14 @@ SidebarChildWindow::SidebarChildWindow (vcl::Window* pParentWindow, sal_uInt16 n
// HACK: unfortunately I haven't found a clean solution to do
// this, so do it this way:
//
- pDockingParent->SetSizePixel(Size(TabBar::GetDefaultWidth() * pWindow->GetDPIScaleFactor(),
+ pDockingParent->SetSizePixel(Size(TabBar::GetDefaultWidth() * GetWindow()->GetDPIScaleFactor(),
pDockingParent->GetSizePixel().Height()));
}
pDockingParent->Initialize(pInfo);
}
SetHideNotDelete(true);
- pWindow->Show();
+ GetWindow()->Show();
}
sal_Int32 SidebarChildWindow::GetDefaultWidth (vcl::Window* pWindow)
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx
index 72f98570e276..2cb968eddff7 100644
--- a/starmath/inc/view.hxx
+++ b/starmath/inc/view.hxx
@@ -226,7 +226,7 @@ public:
SmEditWindow& GetEditWindow()
{
- return static_cast<SmCmdBoxWindow *>(pWindow.get())->GetEditWindow();
+ return static_cast<SmCmdBoxWindow *>(GetWindow())->GetEditWindow();
}
};
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx
index 3ca87b2a5a4e..3c29f5e7c0c4 100644
--- a/starmath/source/ElementsDockingWindow.cxx
+++ b/starmath/source/ElementsDockingWindow.cxx
@@ -764,7 +764,7 @@ SmElementsDockingWindowWrapper::SmElementsDockingWindowWrapper(
SfxChildWindow(pParentWindow, nId)
{
VclPtrInstance<SmElementsDockingWindow> pDialog(pBindings, this, pParentWindow);
- pWindow.reset(pDialog);
+ SetWindow(pDialog);
pDialog->setDeferredProperties();
pDialog->SetPosSizePixel(Point(0, 0), Size(300, 0));
pDialog->Show();
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 3c21930fd898..93c49dc73935 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -889,11 +889,11 @@ SmCmdBoxWrapper::SmCmdBoxWrapper(vcl::Window *pParentWindow, sal_uInt16 nId,
SfxChildWinInfo *pInfo) :
SfxChildWindow(pParentWindow, nId)
{
- pWindow.reset(VclPtr<SmCmdBoxWindow>::Create(pBindings, this, pParentWindow));
+ SetWindow(VclPtr<SmCmdBoxWindow>::Create(pBindings, this, pParentWindow));
// make window docked to the bottom initially (after first start)
SetAlignment(SfxChildAlignment::BOTTOM);
- static_cast<SfxDockingWindow *>(pWindow.get())->Initialize(pInfo);
+ static_cast<SfxDockingWindow *>(GetWindow())->Initialize(pInfo);
}
#if OSL_DEBUG_LEVEL > 1
diff --git a/svx/source/dialog/SpellDialogChildWindow.cxx b/svx/source/dialog/SpellDialogChildWindow.cxx
index e8ed7dd52580..dc586803f592 100644
--- a/svx/source/dialog/SpellDialogChildWindow.cxx
+++ b/svx/source/dialog/SpellDialogChildWindow.cxx
@@ -38,7 +38,7 @@ SpellDialogChildWindow::SpellDialogChildWindow (
m_xAbstractSpellDialog.reset(pFact->CreateSvxSpellDialog(_pParent,
pBindings,
this ));
- pWindow = m_xAbstractSpellDialog->GetWindow();
+ SetWindow( m_xAbstractSpellDialog->GetWindow() );
SetHideNotDelete(true);
}
diff --git a/svx/source/dialog/_bmpmask.cxx b/svx/source/dialog/_bmpmask.cxx
index 9bf464489e77..fdae3db5d702 100644
--- a/svx/source/dialog/_bmpmask.cxx
+++ b/svx/source/dialog/_bmpmask.cxx
@@ -354,7 +354,7 @@ SvxBmpMaskChildWindow::SvxBmpMaskChildWindow(vcl::Window* pParent_, sal_uInt16 n
{
VclPtr<SvxBmpMask> pDlg = VclPtr<SvxBmpMask>::Create(pBindings, this, pParent_);
- pWindow = pDlg;
+ SetWindow( pDlg );
pDlg->Initialize( pInfo );
}
diff --git a/svx/source/dialog/_contdlg.cxx b/svx/source/dialog/_contdlg.cxx
index 205980bce9eb..4078e6e41193 100644
--- a/svx/source/dialog/_contdlg.cxx
+++ b/svx/source/dialog/_contdlg.cxx
@@ -68,7 +68,7 @@ SvxContourDlgChildWindow::SvxContourDlgChildWindow( vcl::Window* _pParent, sal_u
SfxChildWindow( _pParent, nId )
{
VclPtr<SvxSuperContourDlg> pDlg = VclPtr<SvxSuperContourDlg>::Create(pBindings, this, _pParent);
- pWindow = pDlg;
+ SetWindow(pDlg);
if ( pInfo->nFlags & SfxChildWindowFlags::ZOOMIN )
pDlg->RollUp();
diff --git a/svx/source/dialog/fontwork.cxx b/svx/source/dialog/fontwork.cxx
index 8b072d2ec3d5..4c5ab0683bed 100644
--- a/svx/source/dialog/fontwork.cxx
+++ b/svx/source/dialog/fontwork.cxx
@@ -164,7 +164,7 @@ SvxFontWorkChildWindow::SvxFontWorkChildWindow
SfxChildWindow( _pParent, nId )
{
VclPtrInstance<SvxFontWorkDialog> pDlg(pBindings, this, _pParent);
- pWindow = pDlg.get();
+ SetWindow(pDlg);
pDlg->Initialize( pInfo );
}
diff --git a/svx/source/dialog/hyperdlg.cxx b/svx/source/dialog/hyperdlg.cxx
index fa0da20eb54d..3667bd67f161 100644
--- a/svx/source/dialog/hyperdlg.cxx
+++ b/svx/source/dialog/hyperdlg.cxx
@@ -44,7 +44,7 @@ SvxHlinkDlgWrapper::SvxHlinkDlgWrapper( vcl::Window* _pParent, sal_uInt16 nId,
DBG_ASSERT(pFact, "Dialog creation failed!");
mpDlg = pFact->CreateSvxHpLinkDlg( _pParent, pBindings, SID_HYPERLINK_DIALOG );
DBG_ASSERT(mpDlg, "Dialog creation failed!");
- pWindow = mpDlg->GetWindow();
+ SetWindow( mpDlg->GetWindow() );
SetVisible_Impl(false);
vcl::Window* pTopWindow = 0;
@@ -61,7 +61,7 @@ SvxHlinkDlgWrapper::SvxHlinkDlgWrapper( vcl::Window* _pParent, sal_uInt16 nId,
pInfo->aPos.setY( aParentSize.Height()-aDlgSize.Height() < long(0.1*aParentSize.Height()) ?
long(0.1*aParentSize.Height()) : aParentSize.Height()-aDlgSize.Height() );
- pWindow->SetPosPixel( pInfo->aPos );
+ GetWindow()->SetPosPixel( pInfo->aPos );
}
SetHideNotDelete( true );
diff --git a/svx/source/dialog/imapdlg.cxx b/svx/source/dialog/imapdlg.cxx
index 69d395f5f13d..618acfdd5c45 100644
--- a/svx/source/dialog/imapdlg.cxx
+++ b/svx/source/dialog/imapdlg.cxx
@@ -96,8 +96,8 @@ SvxIMapDlgChildWindow::SvxIMapDlgChildWindow( vcl::Window* _pParent, sal_uInt16
SfxChildWinInfo* pInfo ) :
SfxChildWindow( _pParent, nId )
{
- pWindow = VclPtr<SvxIMapDlg>::Create( pBindings, this, _pParent );
- SvxIMapDlg* pDlg = static_cast<SvxIMapDlg*>(pWindow.get());
+ SetWindow(VclPtr<SvxIMapDlg>::Create( pBindings, this, _pParent ));
+ SvxIMapDlg* pDlg = static_cast<SvxIMapDlg*>(GetWindow());
if ( pInfo->nFlags & SfxChildWindowFlags::ZOOMIN )
pDlg->RollUp();
diff --git a/svx/source/dialog/rubydialog.cxx b/svx/source/dialog/rubydialog.cxx
index 19b5d2ab0f93..891dc33f077f 100644
--- a/svx/source/dialog/rubydialog.cxx
+++ b/svx/source/dialog/rubydialog.cxx
@@ -70,7 +70,7 @@ SvxRubyChildWindow::SvxRubyChildWindow(vcl::Window* _pParent, sal_uInt16 nId,Sfx
: SfxChildWindow(_pParent, nId)
{
VclPtr<SvxRubyDialog> pDlg = VclPtr<SvxRubyDialog>::Create(pBindings, this, _pParent);
- pWindow = pDlg;
+ SetWindow(pDlg);
if (pInfo->nFlags & SfxChildWindowFlags::ZOOMIN)
pDlg->RollUp();
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index 1b435645441d..ba27a6a3a870 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -2267,7 +2267,7 @@ SvxSearchDialogWrapper::SvxSearchDialogWrapper( vcl::Window* _pParent, sal_uInt1
: SfxChildWindow( _pParent, nId )
, dialog (VclPtr<SvxSearchDialog>::Create(_pParent, this, *pBindings))
{
- pWindow = dialog.get();
+ SetWindow(dialog);
dialog->Initialize( pInfo );
pBindings->Update( SID_SEARCH_ITEM );
diff --git a/svx/source/engine3d/float3d.cxx b/svx/source/engine3d/float3d.cxx
index 9a0982d95112..069e7a3e34e6 100644
--- a/svx/source/engine3d/float3d.cxx
+++ b/svx/source/engine3d/float3d.cxx
@@ -2908,7 +2908,7 @@ Svx3DChildWindow::Svx3DChildWindow( vcl::Window* _pParent,
SfxChildWindow( _pParent, nId )
{
VclPtr<Svx3DWin> pWin = VclPtr<Svx3DWin>::Create( pBindings, this, _pParent );
- pWindow = pWin;
+ SetWindow(pWin);
pWin->Initialize( pInfo );
}
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index f88668294b22..f1cdfbb47f53 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -2252,10 +2252,10 @@ namespace svxform
SfxChildWindow( _pParent, _nId )
{
- pWindow = VclPtr<DataNavigator>::Create( _pBindings, this, _pParent );
+ SetWindow( VclPtr<DataNavigator>::Create( _pBindings, this, _pParent ) );
SetAlignment(SfxChildAlignment::RIGHT);
- pWindow->SetSizePixel( Size( 250, 400 ) );
- static_cast<SfxDockingWindow*>(pWindow.get())->Initialize( _pInfo );
+ GetWindow()->SetSizePixel( Size( 250, 400 ) );
+ static_cast<SfxDockingWindow*>(GetWindow())->Initialize( _pInfo );
}
AddDataItemDialog::AddDataItemDialog(vcl::Window* pParent, ItemNode* _pNode,
diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx
index 17451ae11872..7a00bad224db 100644
--- a/svx/source/form/filtnav.cxx
+++ b/svx/source/form/filtnav.cxx
@@ -1996,8 +1996,8 @@ FmFilterNavigatorWinMgr::FmFilterNavigatorWinMgr( vcl::Window *_pParent, sal_uIn
SfxBindings *_pBindings, SfxChildWinInfo* _pInfo )
:SfxChildWindow( _pParent, _nId )
{
- pWindow = VclPtr<FmFilterNavigatorWin>::Create( _pBindings, this, _pParent );
- static_cast<SfxDockingWindow*>(pWindow.get())->Initialize( _pInfo );
+ SetWindow( VclPtr<FmFilterNavigatorWin>::Create( _pBindings, this, _pParent ) );
+ static_cast<SfxDockingWindow*>(GetWindow())->Initialize( _pInfo );
}
diff --git a/svx/source/form/fmPropBrw.cxx b/svx/source/form/fmPropBrw.cxx
index 86d05a29b159..4b0b6691ac38 100644
--- a/svx/source/form/fmPropBrw.cxx
+++ b/svx/source/form/fmPropBrw.cxx
@@ -83,8 +83,8 @@ FmPropBrwMgr::FmPropBrwMgr( vcl::Window* _pParent, sal_uInt16 _nId,
SfxBindings* _pBindings, SfxChildWinInfo* _pInfo)
:SfxChildWindow(_pParent, _nId)
{
- pWindow = VclPtr<FmPropBrw>::Create( ::comphelper::getProcessComponentContext(), _pBindings, this, _pParent, _pInfo );
- static_cast<SfxFloatingWindow*>(pWindow.get())->Initialize( _pInfo );
+ SetWindow( VclPtr<FmPropBrw>::Create( ::comphelper::getProcessComponentContext(), _pBindings, this, _pParent, _pInfo ) );
+ static_cast<SfxFloatingWindow*>(GetWindow())->Initialize( _pInfo );
}
diff --git a/svx/source/form/fmexpl.cxx b/svx/source/form/fmexpl.cxx
index faabd491a0e2..e237963b1af7 100644
--- a/svx/source/form/fmexpl.cxx
+++ b/svx/source/form/fmexpl.cxx
@@ -614,8 +614,8 @@ namespace svxform
SfxBindings* _pBindings, SfxChildWinInfo* _pInfo )
:SfxChildWindow( _pParent, _nId )
{
- pWindow = VclPtr<NavigatorFrame>::Create( _pBindings, this, _pParent );
- static_cast<SfxDockingWindow*>(pWindow.get())->Initialize( _pInfo );
+ SetWindow( VclPtr<NavigatorFrame>::Create( _pBindings, this, _pParent ) );
+ static_cast<SfxDockingWindow*>(GetWindow())->Initialize( _pInfo );
}
diff --git a/svx/source/form/tabwin.cxx b/svx/source/form/tabwin.cxx
index 83d28cdebd74..778cfe444fc2 100644
--- a/svx/source/form/tabwin.cxx
+++ b/svx/source/form/tabwin.cxx
@@ -424,9 +424,9 @@ FmFieldWinMgr::FmFieldWinMgr(vcl::Window* _pParent, sal_uInt16 _nId,
SfxBindings* _pBindings, SfxChildWinInfo* _pInfo)
:SfxChildWindow(_pParent, _nId)
{
- pWindow = VclPtr<FmFieldWin>::Create(_pBindings, this, _pParent);
+ SetWindow( VclPtr<FmFieldWin>::Create(_pBindings, this, _pParent) );
SetHideNotDelete(true);
- static_cast<SfxFloatingWindow*>(pWindow.get())->Initialize( _pInfo );
+ static_cast<SfxFloatingWindow*>(GetWindow())->Initialize( _pInfo );
}
diff --git a/svx/source/tbxctrls/SvxColorChildWindow.cxx b/svx/source/tbxctrls/SvxColorChildWindow.cxx
index eb34587863e1..5b5c399c8ddd 100644
--- a/svx/source/tbxctrls/SvxColorChildWindow.cxx
+++ b/svx/source/tbxctrls/SvxColorChildWindow.cxx
@@ -36,7 +36,7 @@ SvxColorChildWindow::SvxColorChildWindow( vcl::Window* _pParent,
VclPtr<SvxColorDockingWindow> pWin = VclPtr<SvxColorDockingWindow>::Create( pBindings, this,
_pParent );
- pWindow = pWin;
+ SetWindow(pWin);
SetAlignment(SfxChildAlignment::BOTTOM);
diff --git a/sw/source/uibase/dbui/mailmergechildwindow.cxx b/sw/source/uibase/dbui/mailmergechildwindow.cxx
index 1a76bbb016a8..ebd2343199cd 100644
--- a/sw/source/uibase/dbui/mailmergechildwindow.cxx
+++ b/sw/source/uibase/dbui/mailmergechildwindow.cxx
@@ -43,7 +43,7 @@ SwMailMergeChildWindow::SwMailMergeChildWindow( vcl::Window* _pParent,
SfxChildWinInfo* pInfo ) :
SfxChildWindow( _pParent, nId )
{
- pWindow = VclPtr<SwMailMergeChildWin>::Create( pBindings, this, _pParent);
+ SetWindow( VclPtr<SwMailMergeChildWin>::Create( pBindings, this, _pParent) );
if (!pInfo->aSize.Width() || !pInfo->aSize.Height())
{
@@ -51,16 +51,16 @@ SwMailMergeChildWindow::SwMailMergeChildWindow( vcl::Window* _pParent,
if(pActiveView)
{
const SwEditWin &rEditWin = pActiveView->GetEditWin();
- pWindow->SetPosPixel(rEditWin.OutputToScreenPixel(Point(0, 0)));
+ GetWindow()->SetPosPixel(rEditWin.OutputToScreenPixel(Point(0, 0)));
}
else
- pWindow->SetPosPixel(_pParent->OutputToScreenPixel(Point(0, 0)));
- pInfo->aPos = pWindow->GetPosPixel();
- pInfo->aSize = pWindow->GetSizePixel();
+ GetWindow()->SetPosPixel(_pParent->OutputToScreenPixel(Point(0, 0)));
+ pInfo->aPos = GetWindow()->GetPosPixel();
+ pInfo->aSize = GetWindow()->GetSizePixel();
}
- static_cast<SwMailMergeChildWin *>(pWindow.get())->Initialize(pInfo);
- pWindow->Show();
+ static_cast<SwMailMergeChildWin *>(GetWindow())->Initialize(pInfo);
+ GetWindow()->Show();
}
SwMailMergeChildWin::SwMailMergeChildWin(SfxBindings* _pBindings,
diff --git a/sw/source/uibase/dialog/wordcountwrapper.cxx b/sw/source/uibase/dialog/wordcountwrapper.cxx
index 3dfa2a7fca67..2b5e963484f7 100644
--- a/sw/source/uibase/dialog/wordcountwrapper.cxx
+++ b/sw/source/uibase/dialog/wordcountwrapper.cxx
@@ -25,7 +25,7 @@ SwWordCountWrapper::SwWordCountWrapper( vcl::Window *pParentWindow,
assert(pFact && "SwAbstractDialogFactory fail!");
xAbstDlg.reset(pFact->CreateSwWordCountDialog(pBindings, this, pParentWindow, pInfo));
assert(xAbstDlg && "Dialog construction failed!");
- pWindow = xAbstDlg->GetWindow();
+ SetWindow(xAbstDlg->GetWindow());
}
SfxChildWinInfo SwWordCountWrapper::GetInfo() const
diff --git a/sw/source/uibase/envelp/syncbtn.cxx b/sw/source/uibase/envelp/syncbtn.cxx
index fd1b66ec0b6c..fe5984f65bce 100644
--- a/sw/source/uibase/envelp/syncbtn.cxx
+++ b/sw/source/uibase/envelp/syncbtn.cxx
@@ -37,7 +37,7 @@ SwSyncChildWin::SwSyncChildWin( vcl::Window* _pParent,
SfxChildWinInfo* pInfo ) :
SfxChildWindow( _pParent, nId )
{
- pWindow = VclPtr<SwSyncBtnDlg>::Create( pBindings, this, _pParent);
+ SetWindow(VclPtr<SwSyncBtnDlg>::Create( pBindings, this, _pParent));
if (!pInfo->aSize.Width() || !pInfo->aSize.Height())
{
@@ -45,17 +45,17 @@ SwSyncChildWin::SwSyncChildWin( vcl::Window* _pParent,
if(pActiveView)
{
const SwEditWin &rEditWin = pActiveView->GetEditWin();
- pWindow->SetPosPixel(rEditWin.OutputToScreenPixel(Point(0, 0)));
+ GetWindow()->SetPosPixel(rEditWin.OutputToScreenPixel(Point(0, 0)));
}
else
- pWindow->SetPosPixel(_pParent->OutputToScreenPixel(Point(0, 0)));
- pInfo->aPos = pWindow->GetPosPixel();
- pInfo->aSize = pWindow->GetSizePixel();
+ GetWindow()->SetPosPixel(_pParent->OutputToScreenPixel(Point(0, 0)));
+ pInfo->aPos = GetWindow()->GetPosPixel();
+ pInfo->aSize = GetWindow()->GetSizePixel();
}
- static_cast<SwSyncBtnDlg *>(pWindow.get())->Initialize(pInfo);
+ static_cast<SwSyncBtnDlg *>(GetWindow())->Initialize(pInfo);
- pWindow->Show();
+ GetWindow()->Show();
}
SwSyncBtnDlg::SwSyncBtnDlg( SfxBindings* _pBindings,
diff --git a/sw/source/uibase/fldui/fldwrap.cxx b/sw/source/uibase/fldui/fldwrap.cxx
index a241e66fe571..bf189929abdb 100644
--- a/sw/source/uibase/fldui/fldwrap.cxx
+++ b/sw/source/uibase/fldui/fldwrap.cxx
@@ -84,7 +84,7 @@ SwFieldDlgWrapper::SwFieldDlgWrapper( vcl::Window* _pParent, sal_uInt16 nId,
AbstractSwFieldDlg* pDlg = pFact->CreateSwFieldDlg(pB, this, _pParent);
assert(pDlg && "Dialog creation failed!");
pDlgInterface = pDlg;
- pWindow = pDlg->GetWindow();
+ SetWindow( pDlg->GetWindow() );
pDlg->Start();
}
@@ -129,7 +129,7 @@ SwFieldDataOnlyDlgWrapper::SwFieldDataOnlyDlgWrapper( vcl::Window* _pParent, sal
OSL_ENSURE(pDlg, "Dialog creation failed!");
pDlgInterface = pDlg;
- pWindow = pDlg->GetWindow();
+ SetWindow( pDlg->GetWindow() );
pDlg->ActivateDatabasePage();
pDlg->Start();
pDlg->Initialize( pInfo );
diff --git a/sw/source/uibase/inc/inputwin.hxx b/sw/source/uibase/inc/inputwin.hxx
index 13154efc3c5a..25730b5cae3c 100644
--- a/sw/source/uibase/inc/inputwin.hxx
+++ b/sw/source/uibase/inc/inputwin.hxx
@@ -104,9 +104,9 @@ public:
virtual ~SwInputChild();
SFX_DECL_CHILDWINDOW_WITHID( SwInputChild );
void SetFormula( const OUString& rFormula, bool bDelSel = true )
- { static_cast<SwInputWindow*>(pWindow.get())->SetFormula(
- rFormula, bDelSel ); }
- const SwView* GetView() const{return static_cast<SwInputWindow*>(pWindow.get())->GetView();}
+ { static_cast<SwInputWindow*>(GetWindow())->SetFormula( rFormula, bDelSel ); }
+ const SwView* GetView() const
+ { return static_cast<SwInputWindow*>(GetWindow())->GetView();}
};
diff --git a/sw/source/uibase/index/idxmrk.cxx b/sw/source/uibase/index/idxmrk.cxx
index 6fe389b6f8de..7994686be969 100644
--- a/sw/source/uibase/index/idxmrk.cxx
+++ b/sw/source/uibase/index/idxmrk.cxx
@@ -64,8 +64,8 @@ SwInsertIdxMarkWrapper::SwInsertIdxMarkWrapper( vcl::Window *pParentWindow,
assert(pFact && "SwAbstractDialogFactory fail!");
pAbstDlg = pFact->CreateIndexMarkFloatDlg(pBindings, this, pParentWindow, pInfo);
assert(pAbstDlg && "Dialog creation failed!");
- pWindow = pAbstDlg->GetWindow();
- pWindow->Show(); // at this point,because before pSh has to be initialized in ReInitDlg()
+ SetWindow( pAbstDlg->GetWindow() );
+ GetWindow()->Show(); // at this point,because before pSh has to be initialized in ReInitDlg()
// -> Show() will invoke StateChanged() and save pos
}
@@ -93,7 +93,7 @@ SwInsertAuthMarkWrapper::SwInsertAuthMarkWrapper( vcl::Window *pParentWindow,
OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");
pAbstDlg = pFact->CreateAuthMarkFloatDlg(pBindings, this, pParentWindow, pInfo);
OSL_ENSURE(pAbstDlg, "Dialog creation failed!");
- pWindow = pAbstDlg->GetWindow();
+ SetWindow( pAbstDlg->GetWindow() );
}
SfxChildWinInfo SwInsertAuthMarkWrapper::GetInfo() const
diff --git a/sw/source/uibase/misc/redlndlg.cxx b/sw/source/uibase/misc/redlndlg.cxx
index 3c574200454b..9e9728878017 100644
--- a/sw/source/uibase/misc/redlndlg.cxx
+++ b/sw/source/uibase/misc/redlndlg.cxx
@@ -67,9 +67,9 @@ SwRedlineAcceptChild::SwRedlineAcceptChild( vcl::Window* _pParent,
SfxChildWinInfo* pInfo ) :
SwChildWinWrapper( _pParent, nId )
{
- pWindow = VclPtr<SwModelessRedlineAcceptDlg>::Create( pBindings, this, _pParent);
+ SetWindow( VclPtr<SwModelessRedlineAcceptDlg>::Create( pBindings, this, _pParent) );
- static_cast<SwModelessRedlineAcceptDlg *>(pWindow.get())->Initialize(pInfo);
+ static_cast<SwModelessRedlineAcceptDlg *>(GetWindow())->Initialize(pInfo);
}
// newly initialise dialog after document switch
diff --git a/sw/source/uibase/ribbar/inputwin.cxx b/sw/source/uibase/ribbar/inputwin.cxx
index 8bd5a5c37870..7569757d59c8 100644
--- a/sw/source/uibase/ribbar/inputwin.cxx
+++ b/sw/source/uibase/ribbar/inputwin.cxx
@@ -622,8 +622,8 @@ SwInputChild::SwInputChild(vcl::Window* _pParent,
SfxChildWindow( _pParent, nId )
{
pDispatch = pBindings->GetDispatcher();
- pWindow = VclPtr<SwInputWindow>::Create( _pParent );
- static_cast<SwInputWindow*>(pWindow.get())->ShowWin();
+ SetWindow( VclPtr<SwInputWindow>::Create( _pParent ) );
+ static_cast<SwInputWindow*>(GetWindow())->ShowWin();
SetAlignment(SfxChildAlignment::LOWESTTOP);
}