summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/PWL_IconList.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-06-16 14:59:56 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-16 14:59:56 -0700
commitd931476503bc3ed2f0f6dda1ca2c18ef03bb1511 (patch)
tree60841dbd33ec9b876361ebb3cece9558d689cbd5 /fpdfsdk/pdfwindow/PWL_IconList.h
parent5944f5f3b57c7b2a723484186c9f66b7adafda42 (diff)
downloadpdfium-d931476503bc3ed2f0f6dda1ca2c18ef03bb1511.tar.xz
Remove unused code.
This cl removes code that exists but is never called. This includes: * cfwl_formtp * cfwl_widgetdelegate * cfwl_scrollbar * cfwl_theme * cfwl_tooltip * PWL_Label * PWL_ListCtrl * PWL_Signature * PWL_IconList * BC_ResultPoint * BC_CommonPerspectiveTransform * BC_CommonBitSource * BC_PDF417Codeword * fx_codec_flate.h (the .cpp file still exists) Review-Url: https://codereview.chromium.org/2071953002
Diffstat (limited to 'fpdfsdk/pdfwindow/PWL_IconList.h')
-rw-r--r--fpdfsdk/pdfwindow/PWL_IconList.h115
1 files changed, 0 insertions, 115 deletions
diff --git a/fpdfsdk/pdfwindow/PWL_IconList.h b/fpdfsdk/pdfwindow/PWL_IconList.h
deleted file mode 100644
index 901f4de976..0000000000
--- a/fpdfsdk/pdfwindow/PWL_IconList.h
+++ /dev/null
@@ -1,115 +0,0 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef FPDFSDK_PDFWINDOW_PWL_ICONLIST_H_
-#define FPDFSDK_PDFWINDOW_PWL_ICONLIST_H_
-
-#include "core/fxcrt/include/fx_string.h"
-#include "fpdfsdk/pdfwindow/PWL_ListCtrl.h"
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
-
-class CPWL_IconList_Item;
-class CPWL_IconList_Content;
-class CPWL_IconList;
-class CPWL_Label;
-
-class CPWL_IconList_Item : public CPWL_Wnd {
- public:
- CPWL_IconList_Item();
- ~CPWL_IconList_Item() override;
-
- void SetSelect(FX_BOOL bSelected);
- FX_BOOL IsSelected() const;
- void SetData(void* pData);
- void SetIcon(int32_t nIconIndex);
- void SetText(const CFX_WideString& str);
- void SetIconFillColor(const CPWL_Color& color);
- CFX_WideString GetText() const;
-
- protected:
- // CPWL_Wnd
- CFX_ByteString GetClassName() const override;
- void CreateChildWnd(const PWL_CREATEPARAM& cp) override;
- void RePosChildWnd() override;
- FX_FLOAT GetItemHeight(FX_FLOAT fLimitWidth) override;
- void DrawThisAppearance(CFX_RenderDevice* pDevice,
- CFX_Matrix* pUser2Device) override;
- void OnEnabled() override;
- void OnDisabled() override;
-
- private:
- int32_t m_nIconIndex;
- void* m_pData;
- FX_BOOL m_bSelected;
- CPWL_Label* m_pText;
- CPWL_Color m_crIcon;
-};
-
-class CPWL_IconList_Content : public CPWL_ListCtrl {
- public:
- CPWL_IconList_Content(int32_t nListCount);
- ~CPWL_IconList_Content() override;
-
- void SetSelect(int32_t nIndex);
- int32_t GetSelect() const;
- void SetListData(int32_t nItemIndex, void* pData);
- void SetListIcon(int32_t nItemIndex, int32_t nIconIndex);
- void SetListString(int32_t nItemIndex, const CFX_WideString& str);
- void SetIconFillColor(const CPWL_Color& color);
- CFX_WideString GetListString(int32_t nItemIndex) const;
- void ScrollToItem(int32_t nItemIndex);
-
- protected:
- // CPWL_ListCtrl
- void CreateChildWnd(const PWL_CREATEPARAM& cp) override;
- FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, uint32_t nFlag) override;
- FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, uint32_t nFlag) override;
- FX_BOOL OnMouseMove(const CFX_FloatPoint& point, uint32_t nFlag) override;
- FX_BOOL OnKeyDown(uint16_t nChar, uint32_t nFlag) override;
-
- private:
- CPWL_IconList_Item* GetListItem(int32_t nItemIndex) const;
- void SelectItem(int32_t nItemIndex, FX_BOOL bSelect);
- int32_t FindItemIndex(const CFX_FloatPoint& point);
-
- int32_t m_nSelectIndex;
- FX_BOOL m_bMouseDown;
- int32_t m_nListCount;
-};
-
-class CPWL_IconList : public CPWL_Wnd {
- public:
- CPWL_IconList(int32_t nListCount);
- ~CPWL_IconList() override;
-
- void SetSelect(int32_t nIndex);
- void SetTopItem(int32_t nIndex);
- int32_t GetSelect() const;
- void SetListData(int32_t nItemIndex, void* pData);
- void SetListIcon(int32_t nItemIndex, int32_t nIconIndex);
- void SetListString(int32_t nItemIndex, const CFX_WideString& str);
- void SetIconFillColor(const CPWL_Color& color);
- CFX_WideString GetListString(int32_t nItemIndex) const;
-
- protected:
- // CPWL_Wnd
- FX_BOOL OnMouseWheel(short zDelta,
- const CFX_FloatPoint& point,
- uint32_t nFlag) override;
- void OnCreated() override;
- void RePosChildWnd() override;
- void CreateChildWnd(const PWL_CREATEPARAM& cp) override;
- void OnNotify(CPWL_Wnd* pWnd,
- uint32_t msg,
- intptr_t wParam = 0,
- intptr_t lParam = 0) override;
-
- private:
- CPWL_IconList_Content* m_pListContent;
- int32_t m_nListCount;
-};
-
-#endif // FPDFSDK_PDFWINDOW_PWL_ICONLIST_H_