41 const Reference<XResourceId>& rxPaneId,
42 sal_uInt16 nChildWindowId,
44 ::std::unique_ptr<SfxShell> && pShell)
46 mnChildWindowId(nChildWindowId),
47 mrViewShellBase(rViewShellBase),
48 mpShell(
std::move(pShell)),
49 mbHasBeenActivated(false)
75 SAL_WARN(
"sd",
"ChildWindowPane:not known");
105 ::osl::MutexGuard aGuard (
m_aMutex);
112 mxWindow->removeEventListener(
this);
146 if (pChildWindow ==
nullptr)
157 if (pChildWindow ==
nullptr)
164 if (pDockingWindow ==
nullptr)
174 mxWindow->addEventListener(
this);
183 if (
mpWindow ==
nullptr || ! mxWindow.is())
203 if (rEvent.Source == mxWindow)
vcl::Window * GetWindow() const
bool HasChildWindow(sal_uInt16)
void SetChildWindow(sal_uInt16 nId, bool bVisible, bool bSetFocus=true)
SfxChildWindow * GetChildWindow(sal_uInt16)
bool KnowsChildWindow(sal_uInt16)
void ShowChildWindow(sal_uInt16, bool bVisible=true)
SfxViewFrame & GetViewFrame() const
static css::uno::Reference< css::awt::XWindow > GetInterface(vcl::Window *pWindow)
vcl::Window & GetContentWindow()
returns the content window, which is to be used as parent window for any content to be displayed in t...
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
std::shared_ptr< ViewShellManager > const & GetViewShellManager() const
The ChildWindowPane listens to the child window and disposes itself when the child window becomes ina...
bool mbHasBeenActivated
This flag is set when the pane shell has been activated at least once.
sal_uInt16 mnChildWindowId
ViewShellBase & mrViewShellBase
virtual vcl::Window * GetWindow() override
This returns the content window when the child window is already visible.
ChildWindowPane(const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId, sal_uInt16 nChildWindowId, ViewShellBase &rViewShellBase, ::std::unique_ptr< SfxShell > &&pShell)
void Hide()
Hide the pane.
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...
virtual ~ChildWindowPane() override
::std::unique_ptr< SfxShell > mpShell
virtual void SAL_CALL disposing() override
A pane is a wrapper for a window and possibly for a tab bar (for view switching).
virtual void SAL_CALL disposing() override
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL getWindow() override
For a UNO API based implementation of a view this may the most important method of this class because...
#define SAL_WARN(area, stream)
::cppu::ImplInheritanceHelper< ::sd::framework::Pane, css::lang::XEventListener > ChildWindowPaneInterfaceBase
IMPLEMENT_FORWARD_XTYPEPROVIDER2(ChildWindowPane, ChildWindowPaneInterfaceBase, Pane)
IMPLEMENT_FORWARD_XINTERFACE2(ChildWindowPane, ChildWindowPaneInterfaceBase, Pane)
VclPtr< vcl::Window > mpWindow