diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2021-01-10 10:51:52 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-01-13 12:00:36 +0100 |
commit | 52c7eac6df6bca750752a7706eb8e1b43d7312d1 (patch) | |
tree | d7c056d8ef2fac40fbde5f2bca2b150b45b44bf1 /svx | |
parent | c7337b7a1f0bdb60be9b4307a61c464e2a82e911 (diff) |
devtools: move DevelopmentToolChildWindow to its own file
Change-Id: I12326479afb5756729b62ff3676f995d16f64aa0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109045
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/Library_svx.mk | 1 | ||||
-rw-r--r-- | svx/source/devtools/DevelopmentToolChildWindow.cxx | 30 | ||||
-rw-r--r-- | svx/source/devtools/DevelopmentToolDockingWindow.cxx | 14 |
3 files changed, 31 insertions, 14 deletions
diff --git a/svx/Library_svx.mk b/svx/Library_svx.mk index 18b5cc64cb37..8a67a5f4b5db 100644 --- a/svx/Library_svx.mk +++ b/svx/Library_svx.mk @@ -104,6 +104,7 @@ $(eval $(call gb_Library_add_exception_objects,svx,\ svx/source/customshapes/EnhancedCustomShapeEngine \ svx/source/customshapes/EnhancedCustomShapeFontWork \ svx/source/customshapes/EnhancedCustomShapeHandle \ + svx/source/devtools/DevelopmentToolChildWindow \ svx/source/devtools/DevelopmentToolDockingWindow \ svx/source/dialog/AccessibilityCheckDialog \ svx/source/dialog/_bmpmask \ diff --git a/svx/source/devtools/DevelopmentToolChildWindow.cxx b/svx/source/devtools/DevelopmentToolChildWindow.cxx new file mode 100644 index 000000000000..3f95f3e7267c --- /dev/null +++ b/svx/source/devtools/DevelopmentToolChildWindow.cxx @@ -0,0 +1,30 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + */ + +#include <svx/devtools/DevelopmentToolChildWindow.hxx> +#include <svx/devtools/DevelopmentToolDockingWindow.hxx> + +#include <svx/svxids.hrc> + +SFX_IMPL_DOCKINGWINDOW_WITHID(DevelopmentToolChildWindow, SID_DEVELOPMENT_TOOLS_DOCKING_WINDOW); + +DevelopmentToolChildWindow::DevelopmentToolChildWindow(vcl::Window* pParentWindow, sal_uInt16 nId, + SfxBindings* pBindings, + SfxChildWinInfo* pInfo) + : SfxChildWindow(pParentWindow, nId) +{ + VclPtr<DevelopmentToolDockingWindow> pWin + = VclPtr<DevelopmentToolDockingWindow>::Create(pBindings, this, pParentWindow); + SetWindow(pWin); + SetAlignment(SfxChildAlignment::BOTTOM); + pWin->Initialize(pInfo); +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/devtools/DevelopmentToolDockingWindow.cxx b/svx/source/devtools/DevelopmentToolDockingWindow.cxx index ac97e9134b17..0b3dbd06a9e5 100644 --- a/svx/source/devtools/DevelopmentToolDockingWindow.cxx +++ b/svx/source/devtools/DevelopmentToolDockingWindow.cxx @@ -90,20 +90,6 @@ private: } // end anonymous namespace -SFX_IMPL_DOCKINGWINDOW_WITHID(DevelopmentToolChildWindow, SID_DEVELOPMENT_TOOLS_DOCKING_WINDOW); - -DevelopmentToolChildWindow::DevelopmentToolChildWindow(vcl::Window* pParentWindow, sal_uInt16 nId, - SfxBindings* pBindings, - SfxChildWinInfo* pInfo) - : SfxChildWindow(pParentWindow, nId) -{ - VclPtr<DevelopmentToolDockingWindow> pWin - = VclPtr<DevelopmentToolDockingWindow>::Create(pBindings, this, pParentWindow); - SetWindow(pWin); - SetAlignment(SfxChildAlignment::BOTTOM); - pWin->Initialize(pInfo); -} - DevelopmentToolDockingWindow::DevelopmentToolDockingWindow(SfxBindings* pInputBindings, SfxChildWindow* pChildWindow, vcl::Window* pParent) |