23 #include <sfx2/sfxsids.hrc>
43 SetController( mpDlg->GetController() );
44 SetVisible_Impl(
false);
46 if ( !pInfo->aSize.IsEmpty() )
56 if( aParentSize.Width() < pInfo->aPos.X() )
57 pInfo->aPos.setX( aParentSize.Width()-aDlgSize.Width() <
tools::Long(0.1*aParentSize.Width()) ?
58 tools::Long(0.1*aParentSize.Width()) : aParentSize.Width()-aDlgSize.Width() );
59 if( aParentSize.Height() < pInfo->aPos.
Y() )
60 pInfo->aPos.setY( aParentSize.Height()-aDlgSize.Height() <
tools::Long(0.1*aParentSize.Height()) ?
61 tools::Long(0.1*aParentSize.Height()) : aParentSize.Height()-aDlgSize.Height() );
63 pDialog->
window_move(pInfo->aPos.X(), pInfo->aPos.Y());
66 SetHideNotDelete(
true );
virtual bool QueryClose()=0
static SvxAbstractDialogFactory * Create()
virtual Size GetSizePixel() const
virtual VclPtr< AbstractSvxHpLinkDlg > CreateSvxHpLinkDlg(SfxChildWindow *pChild, SfxBindings *pBindings, weld::Window *pParent)=0
SfxApplication * SfxGetpApp()
vcl::Window * GetTopWindow() const
virtual bool QueryClose() override
virtual void window_move(int x, int y)=0
virtual ~SvxHlinkDlgWrapper() override
SFX_IMPL_CHILDWINDOW_WITHID(SvxSearchDialogWrapper, SID_SEARCH_DLG)
VclPtr< AbstractSvxHpLinkDlg > mpDlg
virtual Size get_size() const =0
virtual SfxChildWinInfo GetInfo() const