GetDialogController not valid yet
Change-Id: I476744d8f351f4ab2afce5974355a066edc8a4a6 Reviewed-on: https://gerrit.libreoffice.org/68489 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -249,7 +249,7 @@ protected:
|
|||||||
std::unique_ptr<weld::ToggleButton> m_xBtnBitmap;
|
std::unique_ptr<weld::ToggleButton> m_xBtnBitmap;
|
||||||
std::unique_ptr<weld::ToggleButton> m_xBtnPattern;
|
std::unique_ptr<weld::ToggleButton> m_xBtnPattern;
|
||||||
|
|
||||||
void SetOptimalSize();
|
void SetOptimalSize(weld::DialogController* pController);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECL_LINK(SelectFillTypeHdl_Impl, weld::ToggleButton&, void);
|
DECL_LINK(SelectFillTypeHdl_Impl, weld::ToggleButton&, void);
|
||||||
|
@@ -1479,7 +1479,7 @@ bool SvxBkgTabPage::FillItemSet( SfxItemSet* rCoreSet )
|
|||||||
VclPtr<SfxTabPage> SvxBkgTabPage::Create(TabPageParent pWindow, const SfxItemSet* rAttrs)
|
VclPtr<SfxTabPage> SvxBkgTabPage::Create(TabPageParent pWindow, const SfxItemSet* rAttrs)
|
||||||
{
|
{
|
||||||
auto xRet = VclPtr<SvxBkgTabPage>::Create(pWindow, *rAttrs);
|
auto xRet = VclPtr<SvxBkgTabPage>::Create(pWindow, *rAttrs);
|
||||||
xRet->SetOptimalSize();
|
xRet->SetOptimalSize(pWindow.pController);
|
||||||
return xRet;
|
return xRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -119,9 +119,9 @@ SvxAreaTabPage::SvxAreaTabPage(TabPageParent pParent, const SfxItemSet& rInAttrs
|
|||||||
SetExchangeSupport();
|
SetExchangeSupport();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SvxAreaTabPage::SetOptimalSize()
|
void SvxAreaTabPage::SetOptimalSize(weld::DialogController* pController)
|
||||||
{
|
{
|
||||||
TabPageParent aFillTab(m_xFillTab.get(), GetDialogController());
|
TabPageParent aFillTab(m_xFillTab.get(), pController);
|
||||||
// TEMP
|
// TEMP
|
||||||
if (!aFillTab.pController)
|
if (!aFillTab.pController)
|
||||||
aFillTab.pParent = GetParentDialog();
|
aFillTab.pParent = GetParentDialog();
|
||||||
@@ -343,7 +343,7 @@ void SvxAreaTabPage::Reset( const SfxItemSet* rAttrs )
|
|||||||
VclPtr<SfxTabPage> SvxAreaTabPage::Create(TabPageParent pParent, const SfxItemSet* rAttrs)
|
VclPtr<SfxTabPage> SvxAreaTabPage::Create(TabPageParent pParent, const SfxItemSet* rAttrs)
|
||||||
{
|
{
|
||||||
auto xRet = VclPtr<SvxAreaTabPage>::Create(pParent, *rAttrs);
|
auto xRet = VclPtr<SvxAreaTabPage>::Create(pParent, *rAttrs);
|
||||||
xRet->SetOptimalSize();
|
xRet->SetOptimalSize(pParent.pController);
|
||||||
return xRet;
|
return xRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user