11 #ifndef INCLUDED_SC_SOURCE_UI_INC_CHILDWINDOWWRAPPER_HXX
12 #define INCLUDED_SC_SOURCE_UI_INC_CHILDWINDOWWRAPPER_HXX
20 template <sal_Int16 WindowID>
31 OSL_ENSURE(pViewShell,
"Missing view shell!");
44 return std::make_unique<ChildControllerWrapper>(
pParent, nId, pBindings, pInfo);
48 bool bVisible =
false,
53 pFactory->aInfo.nFlags |= nFlags;
81 #endif // INCLUDED_SC_SOURCE_UI_INC_CHILDWINDOWWRAPPER_HXX
std::shared_ptr< SfxDialogController > & GetController()
SfxViewFrame * GetViewFrame() const
static void RegisterChildWindow(bool bVisible=false, SfxModule *pModule=nullptr, SfxChildWindowFlags nFlags=SfxChildWindowFlags::NONE)
weld::Window * GetFrameWeld() const
static std::unique_ptr< SfxChildWindow > CreateImpl(vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings, SfxChildWinInfo *pInfo)
static SfxViewShell * Current()
static void RegisterChildWindow(SfxModule *, std::unique_ptr< SfxChildWinFactory >)
VclPtr< vcl::Window > pParent
ChildControllerWrapper(vcl::Window *pParentP, sal_uInt16 nId, SfxBindings *pBindings, const SfxChildWinInfo *pInfo)
SfxViewShell * GetViewShell() const
static ScTabViewShell * getTabViewShell(const SfxBindings *pBindings)
std::shared_ptr< SfxModelessDialogController > CreateRefDialogController(SfxBindings *pB, SfxChildWindow *pCW, const SfxChildWinInfo *pInfo, weld::Window *pParent, sal_uInt16 nSlotId)
SfxViewFrame * GetFrame() const
void SetController(std::shared_ptr< SfxDialogController > controller)
void SetChildWindow(sal_uInt16 nId, bool bVisible, bool bSetFocus=true)
SfxDispatcher * GetDispatcher() const
static sal_uInt16 GetChildWindowId()