diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-24 13:39:29 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-25 08:39:03 +0200 |
commit | 219b50a284a9fab6e5eb72efee54a72e15ac1bec (patch) | |
tree | a40f8c6bb599f2746a3a250bfb74c4b315eb33c5 /sfx2 | |
parent | a9ea1295a668feca4bfb9b2a53a92890177b5371 (diff) |
make pWindow private in SfxChildWindow
Change-Id: I585d4e8f0a53f46b6fbcef9e4d26f88b57569684
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/dockwin.cxx | 6 | ||||
-rw-r--r-- | sfx2/source/dialog/infobar.cxx | 6 | ||||
-rw-r--r-- | sfx2/source/dialog/navigat.cxx | 10 | ||||
-rw-r--r-- | sfx2/source/dialog/partwnd.cxx | 12 | ||||
-rw-r--r-- | sfx2/source/dialog/recfloat.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/dialog/taskpane.cxx | 12 | ||||
-rw-r--r-- | sfx2/source/sidebar/SidebarChildWindow.cxx | 12 |
7 files changed, 31 insertions, 31 deletions
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) |