From 74cd0d0b281f8df75612bfb600df2eae62c4d21d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 29 Jun 2023 13:53:30 +0200 Subject: loplugin:unusedmethods Change-Id: I95ab7581dec35b113cb657ce8e5ee27c89c73593 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153746 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/editeng/outliner.hxx | 1 - include/sfx2/thumbnailviewitem.hxx | 2 - include/svl/SfxBroadcaster.hxx | 4 -- include/svx/svdview.hxx | 2 - include/vcl/menubarupdateicon.hxx | 93 -------------------------------------- 5 files changed, 102 deletions(-) delete mode 100644 include/vcl/menubarupdateicon.hxx (limited to 'include') diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx index 0b9b06395dba..71ffd00a73e4 100644 --- a/include/editeng/outliner.hxx +++ b/include/editeng/outliner.hxx @@ -784,7 +784,6 @@ public: void SetPaintFirstLineHdl(const Link& rLink) { maPaintFirstLineHdl = rLink; } void SetModifyHdl( const Link& rLink ); - Link const & GetModifyHdl() const; void SetNotifyHdl( const Link& rLink ); diff --git a/include/sfx2/thumbnailviewitem.hxx b/include/sfx2/thumbnailviewitem.hxx index e34985c799d3..64644b772d64 100644 --- a/include/sfx2/thumbnailviewitem.hxx +++ b/include/sfx2/thumbnailviewitem.hxx @@ -100,8 +100,6 @@ public: bool isPinned () const { return mbPinned; } - void setPinned (bool state); - /** Updates own highlight status based on the aPoint position. Returns rectangle that needs to be invalidated. diff --git a/include/svl/SfxBroadcaster.hxx b/include/svl/SfxBroadcaster.hxx index fba30061f574..b026f4c7e4a6 100644 --- a/include/svl/SfxBroadcaster.hxx +++ b/include/svl/SfxBroadcaster.hxx @@ -57,10 +57,6 @@ public: return true to break the loop. */ void ForAllListeners(std::function f) const; - /** Get a vector of the current listeners - used by unit test code. - */ - std::vector GetListenersForUnitTest() const; - friend class SfxListener; friend class ::SfxBroadcasterTest; }; diff --git a/include/svx/svdview.hxx b/include/svx/svdview.hxx index e43b1bf00d0b..aeb364a985dc 100644 --- a/include/svx/svdview.hxx +++ b/include/svx/svdview.hxx @@ -232,8 +232,6 @@ public: // and more... OUString GetStatusText(); - SvtAccessibilityOptions& getAccessibilityOptions() { return maAccessibilityOptions;} - virtual void onAccessibilityOptionsChanged(); // Do not create ObjectContact locally, but offer a call to allow override diff --git a/include/vcl/menubarupdateicon.hxx b/include/vcl/menubarupdateicon.hxx deleted file mode 100644 index 99aea9581a4f..000000000000 --- a/include/vcl/menubarupdateicon.hxx +++ /dev/null @@ -1,93 +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 . - */ - -#pragma once - -#include -#include -#include - -class BubbleWindow; -class MenuBar; -class SystemWindow; -class VclSimpleEvent; -class VclWindowEvent; -struct MenuBarButtonCallbackArg; - -class VCL_DLLPUBLIC MenuBarUpdateIconManager -{ -private: - OUString maBubbleTitle; - OUString maBubbleText; - Image maBubbleImage; - VclPtr mpBubbleWin; - VclPtr mpActiveSysWin; - VclPtr mpActiveMBar; - std::vector> maIconMBars; - std::vector maIconIDs; - - Link maWindowEventHdl; - Link maApplicationEventHdl; - Link maClickHdl; - - Timer maTimeoutTimer; - Idle maWaitIdle; - - bool mbShowMenuIcon; - bool mbShowBubble; - bool mbBubbleChanged; - - DECL_DLLPRIVATE_LINK(UserEventHdl, void*, void); - DECL_DLLPRIVATE_LINK(TimeOutHdl, Timer*, void); - DECL_DLLPRIVATE_LINK(WindowEventHdl, VclWindowEvent&, void); - DECL_DLLPRIVATE_LINK(ApplicationEventHdl, VclSimpleEvent&, void); - DECL_DLLPRIVATE_LINK(WaitTimeOutHdl, Timer*, void); - DECL_DLLPRIVATE_LINK(ClickHdl, MenuBarButtonCallbackArg&, bool); - DECL_DLLPRIVATE_LINK(HighlightHdl, MenuBarButtonCallbackArg&, bool); - - VclPtr GetBubbleWindow(); - void SetBubbleChanged(); - - sal_uInt16 GetIconID(MenuBar* pMenuBar) const; - - void AddMenuBarIcon(SystemWindow& rSysWin, bool bAddEventHdl); - void RemoveMenuBarIcon(MenuBar* pMenuBar); - void RemoveMenuBarIcons(); - -public: - MenuBarUpdateIconManager(); - ~MenuBarUpdateIconManager(); - - void SetShowMenuIcon(bool bShowMenuIcon); - void SetShowBubble(bool bShowBubble); - void SetBubbleImage(const Image& rImage); - void SetBubbleTitle(const OUString& rTitle); - void SetBubbleText(const OUString& rText); - - void SetClickHdl(const Link& rHdl) { maClickHdl = rHdl; } - - bool GetShowMenuIcon() const { return mbShowMenuIcon; } - bool GetShowBubble() const { return mbShowBubble; } - const OUString& GetBubbleTitle() const { return maBubbleTitle; } - const OUString& GetBubbleText() const { return maBubbleText; } - - void RemoveBubbleWindow(); -}; - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit