66#define IMPL_CONTROLLER_CHILD_CTOR(Class,sid) \
67 Class::Class( vcl::Window* pParentP, \
70 const SfxChildWinInfo* pInfo ) \
71 : SfxChildWindow(pParentP, nId) \
79 ScTabViewShell* pViewShell = lcl_GetTabViewShell( p ); \
81 pViewShell = dynamic_cast<ScTabViewShell*>( SfxViewShell::Current() ); \
82 OSL_ENSURE( pViewShell, "missing view shell :-(" ); \
83 SetController( pViewShell ? \
84 pViewShell->CreateRefDialogController( p, this, pInfo, pParentP->GetFrameWeld(), sid ) : nullptr ); \
85 if (pViewShell && !GetController()) \
86 pViewShell->GetViewFrame().SetChildWindow( nId, false ); \
143 OSL_ENSURE( pViewShell,
"missing view shell :-(" );
152 SetController(
nullptr);
201 static_cast<ScSimpleRefDlg*
>(xDlgController.get())->
SetFlags( bCloseOnButtonUp, bSingleCell, bMultiSelection );
224 OSL_ENSURE( pViewShell,
"missing view shell :-(" );
227 auto xDlg = std::make_shared<ScAcceptChgDlg>(pBindings,
this, pParentP->
GetFrameWeld(), &pViewShell->
GetViewData());
229 xDlg->Initialize( pInfo );
241 OSL_ENSURE( pViewShell,
"missing view shell :-(" );
272 , m_bVisibleLock(false)
273 , m_bFreeWindowLock(false)
280 pViewShell =
static_cast<ScValidationDlg*
>(xDlg.get())->GetTabViewShell();
282 pViewShell = lcl_GetTabViewShell(
p );
285 OSL_ENSURE( pViewShell,
"missing view shell :-(" );
286 if (pViewShell && !xDlg)
SFX_IMPL_MODELESSDIALOGCONTOLLER_WITHID(SvxContourDlgChildWindow, SID_CONTOUR_DLG)
ScAcceptChgDlgWrapper(vcl::Window *, sal_uInt16, SfxBindings *, SfxChildWinInfo *)
void SetFlags(bool bCloseOnButtonUp, bool bSingleCell, bool bMultiSelection)
void SetCloseHdl(const Link< const OUString *, void > &rLink)
void SetRefString(const OUString &rStr)
void SetUnoLinks(const Link< const OUString &, void > &rDone, const Link< const OUString &, void > &rAbort, const Link< const OUString &, void > &rChange)
static void SetAutoReOpen(bool bFlag)
std::shared_ptr< SfxModelessDialogController > CreateRefDialogController(SfxBindings *pB, SfxChildWindow *pCW, const SfxChildWinInfo *pInfo, weld::Window *pParent, sal_uInt16 nSlotId)
ScViewData & GetViewData()
The "Validity" tab dialog.
static std::shared_ptr< SfxDialogController > Find1AliveObject(const weld::Window *pAncestor)
ScValidityRefChildWin(vcl::Window *, sal_uInt16, const SfxBindings *, SfxChildWinInfo *)
virtual ~ScValidityRefChildWin() override
void SetController(std::shared_ptr< SfxDialogController > controller)
std::shared_ptr< SfxDialogController > & GetController()
virtual SfxChildWinInfo GetInfo() const
SfxViewFrame * GetFrame() const
SfxViewShell * GetViewShell() const
void SetChildWindow(sal_uInt16 nId, bool bVisible, bool bSetFocus=true)
SfxFrame & GetFrame() const
SfxViewFrame & GetViewFrame() const
static SAL_WARN_UNUSED_RESULT SfxViewShell * Current()
weld::Window * GetFrameWeld() const
virtual std::shared_ptr< SfxDialogController > GetController() override
SfxDispatcher * GetDispatcher()
static tools::Long nScSimpleRefWidth
#define IMPL_CONTROLLER_CHILD_CTOR(Class, sid)
static tools::Long nScSimpleRefX
static tools::Long nScSimpleRefY
static bool bScSimpleRefFlag
static tools::Long nScSimpleRefHeight
SFX_IMPL_CHILDWINDOW_WITHID(SvxSearchDialogWrapper, SID_SEARCH_DLG)