remove SfxCommonTemplateDialog_Impl vcl::Window member
Change-Id: Ib1ab0e76cb56c909f1e16f58b61ce29d1a70a893 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101911 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -1330,8 +1330,6 @@ sfx2/source/appl/shutdownicon.hxx:112
|
|||||||
class rtl::OUString ShutdownIcon::GetUrlDescription(const class rtl::OUString &)
|
class rtl::OUString ShutdownIcon::GetUrlDescription(const class rtl::OUString &)
|
||||||
sfx2/source/appl/shutdownicon.hxx:114
|
sfx2/source/appl/shutdownicon.hxx:114
|
||||||
void ShutdownIcon::SetVeto(_Bool)
|
void ShutdownIcon::SetVeto(_Bool)
|
||||||
sfx2/source/inc/templdgi.hxx:246
|
|
||||||
class weld::Widget * SfxCommonTemplateDialog_Impl::GetFrameWeld()
|
|
||||||
shell/inc/xml_parser.hxx:46
|
shell/inc/xml_parser.hxx:46
|
||||||
xml_parser::xml_parser()
|
xml_parser::xml_parser()
|
||||||
shell/inc/xml_parser.hxx:69
|
shell/inc/xml_parser.hxx:69
|
||||||
|
@@ -41,7 +41,7 @@ private:
|
|||||||
DECL_DLLPRIVATE_LINK(ModifyHdl, weld::ComboBox&, void);
|
DECL_DLLPRIVATE_LINK(ModifyHdl, weld::ComboBox&, void);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SfxNewStyleDlg(weld::Window* pParent, SfxStyleSheetBasePool& rPool, SfxStyleFamily eFam);
|
SfxNewStyleDlg(weld::Widget* pParent, SfxStyleSheetBasePool& rPool, SfxStyleFamily eFam);
|
||||||
virtual ~SfxNewStyleDlg() override;
|
virtual ~SfxNewStyleDlg() override;
|
||||||
|
|
||||||
OUString GetName() const { return comphelper::string::stripStart(m_xColBox->get_active_text(), ' '); }
|
OUString GetName() const { return comphelper::string::stripStart(m_xColBox->get_active_text(), ' '); }
|
||||||
|
@@ -36,6 +36,7 @@ public:
|
|||||||
virtual void dispose() override;
|
virtual void dispose() override;
|
||||||
|
|
||||||
weld::Builder* get_builder() { return m_xBuilder.get(); }
|
weld::Builder* get_builder() { return m_xBuilder.get(); }
|
||||||
|
weld::Container* get_container() { return m_xContainer.get(); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::unique_ptr<SfxTemplateDialog_Impl> pImpl;
|
std::unique_ptr<SfxTemplateDialog_Impl> pImpl;
|
||||||
|
@@ -60,7 +60,7 @@ IMPL_LINK(SfxNewStyleDlg, ModifyHdl, weld::ComboBox&, rBox, void)
|
|||||||
m_xOKBtn->set_sensitive(!rBox.get_active_text().replaceAll(" ", "").isEmpty());
|
m_xOKBtn->set_sensitive(!rBox.get_active_text().replaceAll(" ", "").isEmpty());
|
||||||
}
|
}
|
||||||
|
|
||||||
SfxNewStyleDlg::SfxNewStyleDlg(weld::Window* pParent, SfxStyleSheetBasePool& rInPool, SfxStyleFamily eFam)
|
SfxNewStyleDlg::SfxNewStyleDlg(weld::Widget* pParent, SfxStyleSheetBasePool& rInPool, SfxStyleFamily eFam)
|
||||||
: GenericDialogController(pParent, "sfx/ui/newstyle.ui", "CreateStyleDialog")
|
: GenericDialogController(pParent, "sfx/ui/newstyle.ui", "CreateStyleDialog")
|
||||||
, m_rPool(rInPool)
|
, m_rPool(rInPool)
|
||||||
, m_eSearchFamily(eFam)
|
, m_eSearchFamily(eFam)
|
||||||
|
@@ -532,9 +532,9 @@ namespace SfxTemplate
|
|||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
|
|
||||||
SfxCommonTemplateDialog_Impl::SfxCommonTemplateDialog_Impl(SfxBindings* pB, vcl::Window* pW, weld::Builder* pBuilder)
|
SfxCommonTemplateDialog_Impl::SfxCommonTemplateDialog_Impl(SfxBindings* pB, weld::Container* pC, weld::Builder* pBuilder)
|
||||||
: pBindings(pB)
|
: pBindings(pB)
|
||||||
, pWindow(pW)
|
, mpContainer(pC)
|
||||||
, pModule(nullptr)
|
, pModule(nullptr)
|
||||||
, pStyleSheetPool(nullptr)
|
, pStyleSheetPool(nullptr)
|
||||||
, pCurObjShell(nullptr)
|
, pCurObjShell(nullptr)
|
||||||
@@ -780,7 +780,6 @@ SfxCommonTemplateDialog_Impl::~SfxCommonTemplateDialog_Impl()
|
|||||||
{
|
{
|
||||||
if ( bIsWater )
|
if ( bIsWater )
|
||||||
Execute_Impl(SID_STYLE_WATERCAN, "", "", 0);
|
Execute_Impl(SID_STYLE_WATERCAN, "", "", 0);
|
||||||
GetWindow()->Hide();
|
|
||||||
impl_clear();
|
impl_clear();
|
||||||
if ( pStyleSheetPool )
|
if ( pStyleSheetPool )
|
||||||
EndListening(*pStyleSheetPool);
|
EndListening(*pStyleSheetPool);
|
||||||
@@ -1631,7 +1630,7 @@ void SfxCommonTemplateDialog_Impl::ActionSelect(const OString& rEntry)
|
|||||||
nFilter = nAppFilter;
|
nFilter = nAppFilter;
|
||||||
|
|
||||||
// why? : FloatingWindow must not be parent of a modal dialog
|
// why? : FloatingWindow must not be parent of a modal dialog
|
||||||
SfxNewStyleDlg aDlg(pWindow ? pWindow->GetFrameWeld() : nullptr, *pStyleSheetPool, eFam);
|
SfxNewStyleDlg aDlg(mpContainer, *pStyleSheetPool, eFam);
|
||||||
auto nResult = aDlg.run();
|
auto nResult = aDlg.run();
|
||||||
if (nResult == RET_OK)
|
if (nResult == RET_OK)
|
||||||
{
|
{
|
||||||
@@ -2056,7 +2055,7 @@ void SfxCommonTemplateDialog_Impl::CreateContextMenu()
|
|||||||
}
|
}
|
||||||
|
|
||||||
SfxTemplateDialog_Impl::SfxTemplateDialog_Impl(SfxBindings* pB, SfxTemplatePanelControl* pDlgWindow)
|
SfxTemplateDialog_Impl::SfxTemplateDialog_Impl(SfxBindings* pB, SfxTemplatePanelControl* pDlgWindow)
|
||||||
: SfxCommonTemplateDialog_Impl(pB, pDlgWindow, pDlgWindow->get_builder())
|
: SfxCommonTemplateDialog_Impl(pB, pDlgWindow->get_container(), pDlgWindow->get_builder())
|
||||||
, m_xActionTbL(pDlgWindow->get_builder()->weld_toolbar("left"))
|
, m_xActionTbL(pDlgWindow->get_builder()->weld_toolbar("left"))
|
||||||
, m_xActionTbR(pDlgWindow->get_builder()->weld_toolbar("right"))
|
, m_xActionTbR(pDlgWindow->get_builder()->weld_toolbar("right"))
|
||||||
, m_xToolMenu(pDlgWindow->get_builder()->weld_menu("toolmenu"))
|
, m_xToolMenu(pDlgWindow->get_builder()->weld_menu("toolmenu"))
|
||||||
|
@@ -26,7 +26,6 @@ class SfxTemplateControllerItem;
|
|||||||
#include <array>
|
#include <array>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include <vcl/toolbox.hxx>
|
|
||||||
#include <vcl/transfer.hxx>
|
#include <vcl/transfer.hxx>
|
||||||
#include <vcl/weld.hxx>
|
#include <vcl/weld.hxx>
|
||||||
#include <svl/lstner.hxx>
|
#include <svl/lstner.hxx>
|
||||||
@@ -82,7 +81,7 @@ protected:
|
|||||||
SfxBindings* pBindings;
|
SfxBindings* pBindings;
|
||||||
std::array<std::unique_ptr<SfxTemplateControllerItem>, COUNT_BOUND_FUNC> pBoundItems;
|
std::array<std::unique_ptr<SfxTemplateControllerItem>, COUNT_BOUND_FUNC> pBoundItems;
|
||||||
|
|
||||||
VclPtr<vcl::Window> pWindow;
|
weld::Container* mpContainer;
|
||||||
std::unique_ptr<weld::Builder> mxMenuBuilder;
|
std::unique_ptr<weld::Builder> mxMenuBuilder;
|
||||||
std::unique_ptr<weld::Menu> mxMenu;
|
std::unique_ptr<weld::Menu> mxMenu;
|
||||||
OString sLastItemIdent;
|
OString sLastItemIdent;
|
||||||
@@ -211,7 +210,7 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
SfxCommonTemplateDialog_Impl(SfxBindings* pB, vcl::Window*, weld::Builder* pBuilder);
|
SfxCommonTemplateDialog_Impl(SfxBindings* pB, weld::Container*, weld::Builder* pBuilder);
|
||||||
virtual ~SfxCommonTemplateDialog_Impl() override;
|
virtual ~SfxCommonTemplateDialog_Impl() override;
|
||||||
|
|
||||||
void MenuSelect(const OString& rIdent);
|
void MenuSelect(const OString& rIdent);
|
||||||
@@ -238,16 +237,6 @@ public:
|
|||||||
bCanShow = b;
|
bCanShow = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
vcl::Window* GetWindow()
|
|
||||||
{
|
|
||||||
return pWindow;
|
|
||||||
}
|
|
||||||
|
|
||||||
weld::Widget* GetFrameWeld()
|
|
||||||
{
|
|
||||||
return pWindow ? pWindow->GetFrameWeld() : nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
void EnableTreeDrag(bool b);
|
void EnableTreeDrag(bool b);
|
||||||
void EnableExample_Impl(sal_uInt16 nId, bool bEnable);
|
void EnableExample_Impl(sal_uInt16 nId, bool bEnable);
|
||||||
SfxStyleFamily GetActualFamily() const;
|
SfxStyleFamily GetActualFamily() const;
|
||||||
|
Reference in New Issue
Block a user