LibreOffice Module sd (master) 1
|
The ChildWindowPane listens to the child window and disposes itself when the child window becomes inaccessible. More...
#include <ChildWindowPane.hxx>
Public Member Functions | |
ChildWindowPane (const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId, sal_uInt16 nChildWindowId, ViewShellBase &rViewShellBase, ::std::unique_ptr< SfxShell > &&pShell) | |
virtual | ~ChildWindowPane () override |
void | Hide () |
Hide the pane. More... | |
virtual void SAL_CALL | disposing () override |
virtual vcl::Window * | GetWindow () override |
This returns the content window when the child window is already visible. More... | |
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL | getWindow () override |
The local getWindow() first calls GetWindow() to provide a valid window pointer before forwarding the call to the base class. More... | |
virtual void SAL_CALL | disposing (const css::lang::EventObject &rEvent) override |
Private Attributes | |
sal_uInt16 | mnChildWindowId |
ViewShellBase & | mrViewShellBase |
::std::unique_ptr< SfxShell > | mpShell |
bool | mbHasBeenActivated |
This flag is set when the pane shell has been activated at least once. More... | |
The ChildWindowPane listens to the child window and disposes itself when the child window becomes inaccessible.
This happens for instance when a document is made read-only and the task pane is turned off.
Definition at line 46 of file ChildWindowPane.hxx.
sd::framework::ChildWindowPane::ChildWindowPane | ( | const css::uno::Reference< css::drawing::framework::XResourceId > & | rxPaneId, |
sal_uInt16 | nChildWindowId, | ||
ViewShellBase & | rViewShellBase, | ||
::std::unique_ptr< SfxShell > && | pShell | ||
) |
Definition at line 40 of file ChildWindowPane.cxx.
References SfxViewShell::GetViewFrame(), sd::ViewShellBase::GetViewShellManager(), SfxViewFrame::HasChildWindow(), SfxShell::IsActive(), SfxViewFrame::KnowsChildWindow(), mnChildWindowId, mpShell, mrViewShellBase, SAL_WARN, and SfxViewFrame::SetChildWindow().
|
overridevirtual |
Definition at line 87 of file ChildWindowPane.cxx.
|
overridevirtual |
Definition at line 103 of file ChildWindowPane.cxx.
References sd::framework::Pane::disposing(), sd::ViewShellBase::GetViewShellManager(), m_aMutex, mpShell, and mrViewShellBase.
|
overridevirtual |
|
overridevirtual |
This returns the content window when the child window is already visible.
Otherwise <NULL> is returned. In that case a later call may return the requested window (making a child window visible is an asynchronous process.) Note that GetWindow() may return different Window pointers when Hide() is called in between.
Definition at line 118 of file ChildWindowPane.cxx.
References SfxViewFrame::GetChildWindow(), sd::TitledDockingWindow::GetContentWindow(), VCLUnoHelper::GetInterface(), SfxViewShell::GetViewFrame(), SfxChildWindow::GetWindow(), SfxViewFrame::HasChildWindow(), SfxViewFrame::KnowsChildWindow(), mbHasBeenActivated, mnChildWindowId, mpShell, mpWindow, mrViewShellBase, SfxViewFrame::SetChildWindow(), and SfxViewFrame::ShowChildWindow().
Referenced by getWindow().
|
overridevirtual |
The local getWindow() first calls GetWindow() to provide a valid window pointer before forwarding the call to the base class.
Definition at line 181 of file ChildWindowPane.cxx.
References GetWindow(), sd::framework::Pane::getWindow(), and mpWindow.
void sd::framework::ChildWindowPane::Hide | ( | ) |
Hide the pane.
To make the pane visible again, call GetWindow().
Definition at line 91 of file ChildWindowPane.cxx.
References SfxViewShell::GetViewFrame(), SfxViewFrame::HasChildWindow(), SfxViewFrame::KnowsChildWindow(), mnChildWindowId, mrViewShellBase, and SfxViewFrame::SetChildWindow().
Referenced by sd::framework::BasicPaneFactory::releaseResource().
|
private |
This flag is set when the pane shell has been activated at least once.
It is used to optimize the start-up performance (by not showing the window too early) and by not delaying its creation at later times.
Definition at line 96 of file ChildWindowPane.hxx.
Referenced by GetWindow().
|
private |
Definition at line 87 of file ChildWindowPane.hxx.
Referenced by ChildWindowPane(), GetWindow(), and Hide().
|
private |
Definition at line 89 of file ChildWindowPane.hxx.
Referenced by ChildWindowPane(), disposing(), and GetWindow().
|
private |
Definition at line 88 of file ChildWindowPane.hxx.
Referenced by ChildWindowPane(), disposing(), GetWindow(), and Hide().