summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-10 10:21:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-10 10:38:29 +0100
commitf7b5db1f39f97bc14fea448a1995637c3937c931 (patch)
tree48a026711755e59c3b6002b0c2ce1b7c70d8ae47 /sc
parent37530ebbfe92893b1fd7e0b55d25b13695f06776 (diff)
ScPopupMenu is now unused
Change-Id: I84e2f22992f917f14b4b4b8063238704939f56b7
Diffstat (limited to 'sc')
-rw-r--r--sc/Library_sc.mk1
-rw-r--r--sc/source/ui/cctrl/popmenu.cxx28
-rw-r--r--sc/source/ui/inc/popmenu.hxx44
-rw-r--r--sc/source/ui/inc/tphfedit.hxx1
-rw-r--r--sc/source/ui/miscdlgs/acredlin.cxx1
-rw-r--r--sc/source/ui/navipi/content.cxx1
-rw-r--r--sc/source/ui/navipi/navipi.cxx1
-rw-r--r--sc/source/ui/navipi/scenwnd.cxx1
8 files changed, 0 insertions, 78 deletions
diff --git a/sc/Library_sc.mk b/sc/Library_sc.mk
index 0a888ee0e403..c8fe0316e679 100644
--- a/sc/Library_sc.mk
+++ b/sc/Library_sc.mk
@@ -384,7 +384,6 @@ $(eval $(call gb_Library_add_exception_objects,sc,\
sc/source/ui/cctrl/cbuttonw \
sc/source/ui/cctrl/checklistmenu \
sc/source/ui/cctrl/dpcontrol \
- sc/source/ui/cctrl/popmenu \
sc/source/ui/cctrl/tbzoomsliderctrl \
sc/source/ui/condformat/condformatdlg \
sc/source/ui/condformat/condformatdlgentry \
diff --git a/sc/source/ui/cctrl/popmenu.cxx b/sc/source/ui/cctrl/popmenu.cxx
deleted file mode 100644
index 47b2b88f8334..000000000000
--- a/sc/source/ui/cctrl/popmenu.cxx
+++ /dev/null
@@ -1,28 +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 "popmenu.hxx"
-
-void ScPopupMenu::Select()
-{
- nSel = GetCurItemId();
- bHit = true;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/inc/popmenu.hxx b/sc/source/ui/inc/popmenu.hxx
deleted file mode 100644
index fcd8746b7b41..000000000000
--- a/sc/source/ui/inc/popmenu.hxx
+++ /dev/null
@@ -1,44 +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_SC_SOURCE_UI_INC_POPMENU_HXX
-#define INCLUDED_SC_SOURCE_UI_INC_POPMENU_HXX
-
-#include <vcl/menu.hxx>
-#include "scdllapi.h"
-
-class SC_DLLPUBLIC ScPopupMenu : public PopupMenu
-{
-private:
- sal_uInt16 nSel;
- bool bHit;
-protected:
- virtual void Select() override;
-public:
- ScPopupMenu() : nSel(0),bHit(false) {}
-
- ScPopupMenu(const ResId& rRes) : PopupMenu(rRes),nSel(0),bHit(false) {}
-
- sal_uInt16 GetSelected() const { return nSel; }
- bool WasHit() const { return bHit; }
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/inc/tphfedit.hxx b/sc/source/ui/inc/tphfedit.hxx
index da7a5f9199ab..9047fad24e4f 100644
--- a/sc/source/ui/inc/tphfedit.hxx
+++ b/sc/source/ui/inc/tphfedit.hxx
@@ -28,7 +28,6 @@
#include <vcl/virdev.hxx>
#include "scdllapi.h"
#include "scitems.hxx"
-#include "popmenu.hxx"
#include <com/sun/star/accessibility/XAccessible.hpp>
#include <cppuhelper/weakref.hxx>
diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx
index f33efa354854..5130dc0411cc 100644
--- a/sc/source/ui/miscdlgs/acredlin.cxx
+++ b/sc/source/ui/miscdlgs/acredlin.cxx
@@ -36,7 +36,6 @@
#include "scres.hrc"
#include "simpref.hxx"
#include "scmod.hxx"
-#include "popmenu.hxx"
#include "tabvwsh.hxx"
// defines -------------------------------------------------------------------
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index 598b22fe857a..657ddf6b351a 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -42,7 +42,6 @@
#include "rangenam.hxx"
#include "dbdata.hxx"
#include "tablink.hxx"
-#include "popmenu.hxx"
#include "drwlayer.hxx"
#include "transobj.hxx"
#include "drwtrans.hxx"
diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx
index 9004459997b1..87b3cf6c401a 100644
--- a/sc/source/ui/navipi/navipi.cxx
+++ b/sc/source/ui/navipi/navipi.cxx
@@ -37,7 +37,6 @@
#include "dbdata.hxx"
#include "rangenam.hxx"
#include "rangeutl.hxx"
-#include "popmenu.hxx"
#include "scres.hrc"
#include "scresid.hxx"
#include "scmod.hxx"
diff --git a/sc/source/ui/navipi/scenwnd.cxx b/sc/source/ui/navipi/scenwnd.cxx
index b9ae59960e7f..3246d3abb08d 100644
--- a/sc/source/ui/navipi/scenwnd.cxx
+++ b/sc/source/ui/navipi/scenwnd.cxx
@@ -26,7 +26,6 @@
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include "navipi.hxx"
-#include "popmenu.hxx"
#include "scresid.hxx"
#include "scres.hrc"
#include "globstr.hrc"