From 6fd363af3432d054eb92a2bac4893f5baf1d50ef Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 10 Oct 2016 15:50:34 +0100 Subject: SwHelpToolBox doesn't do anything now Change-Id: I5b8865218d3cd8492d148af8d69389c256bbb27f --- sw/Library_sw.mk | 1 - sw/source/uibase/cctrl/popbox.cxx | 32 -------------------------------- sw/source/uibase/inc/navipi.hxx | 6 +++--- sw/source/uibase/inc/popbox.hxx | 37 ------------------------------------- sw/source/uibase/utlui/navipi.cxx | 10 +++++----- 5 files changed, 8 insertions(+), 78 deletions(-) delete mode 100644 sw/source/uibase/cctrl/popbox.cxx delete mode 100644 sw/source/uibase/inc/popbox.hxx diff --git a/sw/Library_sw.mk b/sw/Library_sw.mk index fa18519a6bab..403e29bf2320 100644 --- a/sw/Library_sw.mk +++ b/sw/Library_sw.mk @@ -572,7 +572,6 @@ $(eval $(call gb_Library_add_exception_objects,sw,\ sw/source/uibase/app/swmodule \ sw/source/uibase/app/swwait \ sw/source/uibase/cctrl/actctrl \ - sw/source/uibase/cctrl/popbox \ sw/source/uibase/cctrl/swlbox \ sw/source/uibase/chrdlg/ccoll \ sw/source/uibase/config/StoredChapterNumbering \ diff --git a/sw/source/uibase/cctrl/popbox.cxx b/sw/source/uibase/cctrl/popbox.cxx deleted file mode 100644 index 7853e942b1b2..000000000000 --- a/sw/source/uibase/cctrl/popbox.cxx +++ /dev/null @@ -1,32 +0,0 @@ -/* -*- 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/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#include -#include -#include -#include - -SwHelpToolBox::SwHelpToolBox( SwNavigationPI* pParent, const ResId& rResId ) - : ToolBox( pParent, rResId ) -{ -} - -SwHelpToolBox::~SwHelpToolBox() {} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/inc/navipi.hxx b/sw/source/uibase/inc/navipi.hxx index 7e50ebf19aeb..6c93a1b9467a 100644 --- a/sw/source/uibase/inc/navipi.hxx +++ b/sw/source/uibase/inc/navipi.hxx @@ -20,6 +20,7 @@ #define INCLUDED_SW_SOURCE_UIBASE_INC_NAVIPI_HXX #include +#include #include #include #include @@ -27,7 +28,6 @@ #include #include #include -#include class SwWrtShell; class SwNavigationPI; @@ -42,7 +42,7 @@ class SwNavigationPI; enum class RegionMode; class SpinField; -class SwNavHelpToolBox : public SwHelpToolBox +class SwNavHelpToolBox : public ToolBox { virtual void MouseButtonDown(const MouseEvent &rEvt) override; virtual void RequestHelp( const HelpEvent& rHEvt ) override; @@ -58,7 +58,7 @@ class SwNavigationPI : public vcl::Window, friend class SwGlobalTree; VclPtr m_aContentToolBox; - VclPtr m_aGlobalToolBox; + VclPtr m_aGlobalToolBox; ImageList m_aContentImageList; VclPtr m_aContentTree; VclPtr m_aGlobalTree; diff --git a/sw/source/uibase/inc/popbox.hxx b/sw/source/uibase/inc/popbox.hxx deleted file mode 100644 index 3e9dbf90db08..000000000000 --- a/sw/source/uibase/inc/popbox.hxx +++ /dev/null @@ -1,37 +0,0 @@ -/* -*- 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/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_POPBOX_HXX -#define INCLUDED_SW_SOURCE_UIBASE_INC_POPBOX_HXX - -#include -#include - -class SwNavigationPI; - -class SwHelpToolBox: public ToolBox -{ -public: - SwHelpToolBox(SwNavigationPI* pParent, const ResId &); - virtual ~SwHelpToolBox() override; -}; - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx index 3c39a8522f18..dd7d770495ee 100644 --- a/sw/source/uibase/utlui/navipi.cxx +++ b/sw/source/uibase/utlui/navipi.cxx @@ -421,8 +421,8 @@ IMPL_LINK( SwNavigationPI, ToolBoxDropdownClickHdl, ToolBox*, pBox, void ) } } -SwNavHelpToolBox::SwNavHelpToolBox(SwNavigationPI* pParent, const ResId &rResId) : - SwHelpToolBox(pParent, rResId) +SwNavHelpToolBox::SwNavHelpToolBox(SwNavigationPI* pParent, const ResId &rResId) + : ToolBox(pParent, rResId) {} void SwNavHelpToolBox::MouseButtonDown(const MouseEvent &rEvt) @@ -433,7 +433,7 @@ void SwNavHelpToolBox::MouseButtonDown(const MouseEvent &rEvt) static_cast(GetParent())->CreateNavigationTool(GetItemRect(FN_CREATE_NAVIGATION), false, this); } else - SwHelpToolBox::MouseButtonDown(rEvt); + ToolBox::MouseButtonDown(rEvt); } void SwNavigationPI::CreateNavigationTool(const Rectangle& rRect, bool bSetFocus, vcl::Window *pParent) @@ -461,7 +461,7 @@ void SwNavHelpToolBox::RequestHelp( const HelpEvent& rHEvt ) { SetItemText(nItemId, SwScrollNaviPopup::GetQuickHelpText((FN_DOWN == nItemId))); } - SwHelpToolBox::RequestHelp(rHEvt); + ToolBox::RequestHelp(rHEvt); } // Action-Handler Edit: @@ -645,7 +645,7 @@ SwNavigationPI::SwNavigationPI( SfxBindings* _pBindings, SfxControllerItem( SID_DOCFULLNAME, *_pBindings ), m_aContentToolBox(VclPtr::Create(this, SW_RES(TB_CONTENT))), - m_aGlobalToolBox(VclPtr::Create(this, SW_RES(TB_GLOBAL))), + m_aGlobalToolBox(VclPtr::Create(this, SW_RES(TB_GLOBAL))), m_aContentImageList(SW_RES(IL_CONTENT)), m_aContentTree(VclPtr::Create(this, SW_RES(TL_CONTENT))), m_aGlobalTree(VclPtr::Create(this, SW_RES(TL_GLOBAL))), -- cgit v1.2.3