[Libreoffice-commits] core.git: include/sfx2 include/vcl sfx2/source vcl/source
Caolán McNamara
caolanm at redhat.com
Mon Apr 23 15:28:19 UTC 2018
include/sfx2/tabdlg.hxx | 2 ++
include/vcl/tabpage.hxx | 2 --
sfx2/source/dialog/tabdlg.cxx | 7 +++++++
vcl/source/window/tabpage.cxx | 8 --------
4 files changed, 9 insertions(+), 10 deletions(-)
New commits:
commit 32a10a772d07fc12e5b1332925b8d53c7ab8e928
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Apr 23 10:06:24 2018 +0100
move GetConfigId from TabPage to SfxTabPage
Change-Id: Id2c687c2270cb1c2419cc6664200292b2740d0a4
Reviewed-on: https://gerrit.libreoffice.org/53325
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/include/sfx2/tabdlg.hxx b/include/sfx2/tabdlg.hxx
index f171de346dce..e288e07cd8f7 100644
--- a/include/sfx2/tabdlg.hxx
+++ b/include/sfx2/tabdlg.hxx
@@ -302,6 +302,8 @@ public:
void SetFrame(const css::uno::Reference< css::frame::XFrame >& xFrame);
css::uno::Reference< css::frame::XFrame > GetFrame();
+
+ OString GetConfigId() const;
};
#endif
diff --git a/include/vcl/tabpage.hxx b/include/vcl/tabpage.hxx
index a837ee2761e4..3845da4fffed 100644
--- a/include/vcl/tabpage.hxx
+++ b/include/vcl/tabpage.hxx
@@ -52,8 +52,6 @@ public:
virtual void ActivatePage();
virtual void DeactivatePage();
- OString GetConfigId() const;
-
//To-Do, consider inheriting from VclContainer
virtual void SetPosSizePixel(const Point& rNewPos, const Size& rNewSize) override;
virtual void SetPosPixel(const Point& rNewPos) override;
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index c63a62e3fdc5..ff5c508efdf9 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -312,6 +312,13 @@ SfxTabDialog* SfxTabPage::GetTabDialog() const
return dynamic_cast<SfxTabDialog*>(GetParentDialog());
}
+OString SfxTabPage::GetConfigId() const
+{
+ OString sId(GetHelpId());
+ if (sId.isEmpty() && isLayoutEnabled(this))
+ sId = GetWindow(GetWindowType::FirstChild)->GetHelpId();
+ return sId;
+}
SfxTabDialog::SfxTabDialog
diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx
index f44385002574..a9d44ffa20e1 100644
--- a/vcl/source/window/tabpage.cxx
+++ b/vcl/source/window/tabpage.cxx
@@ -181,14 +181,6 @@ void TabPage::DeactivatePage()
{
}
-OString TabPage::GetConfigId() const
-{
- OString sId(GetHelpId());
- if (sId.isEmpty() && isLayoutEnabled(this))
- sId = GetWindow(GetWindowType::FirstChild)->GetHelpId();
- return sId;
-}
-
Size TabPage::GetOptimalSize() const
{
if (isLayoutEnabled(this))
More information about the Libreoffice-commits
mailing list