Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(625)

Side by Side Diff: fpdfsdk/include/pdfwindow/PWL_ListBox.h

Issue 1252613002: FX_BOOL considered harmful. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Manual edits. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_IconList.h ('k') | fpdfsdk/include/pdfwindow/PWL_ListCtrl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_LISTBOX_H_ 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_LISTBOX_H_
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_LISTBOX_H_ 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_LISTBOX_H_
9 9
10 #include "../fxedit/fx_edit.h" 10 #include "../fxedit/fx_edit.h"
(...skipping 11 matching lines...) Expand all
22 virtual ~CPWL_List_Notify(); 22 virtual ~CPWL_List_Notify();
23 23
24 void IOnSetScrollInfo X(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax, 24 void IOnSetScrollInfo X(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax,
25 FX_FLOAT fContentMin, FX_FLOAT fContentMax, 25 FX_FLOAT fContentMin, FX_FLOAT fContentMax,
26 FX_FLOAT fSmallStep, FX_FLOAT fBigStep){} 26 FX_FLOAT fSmallStep, FX_FLOAT fBigStep){}
27 void IOnSetScrollInfo Y(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax, 27 void IOnSetScrollInfo Y(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax,
28 FX_FLOAT fContentMin, FX_FLOAT fContentMax, 28 FX_FLOAT fContentMin, FX_FLOAT fContentMax,
29 FX_FLOAT fSmallStep, FX_FLOAT fBigStep); 29 FX_FLOAT fSmallStep, FX_FLOAT fBigStep);
30 void IOnSetScrollPosX (FX_FLOAT fx){} 30 void IOnSetScrollPosX (FX_FLOAT fx){}
31 void IOnSetScrollPosY (FX_FLOAT fy); 31 void IOnSetScrollPosY (FX_FLOAT fy);
32 » void» » » » » » » IOnSetCaret(FX_B OOL bVisible,const CPDF_Point & ptHead,const CPDF_Point & ptFoot, const CPVT_Wor dPlace& place); 32 » void» » » » » » » IOnSetCaret(bool bVisible,const CPDF_Point & ptHead,const CPDF_Point & ptFoot, const CPVT_WordPl ace& place);
33 void IOnCaretChange(c onst CPVT_SecProps & secProps, const CPVT_WordProps & wordProps); 33 void IOnCaretChange(c onst CPVT_SecProps & secProps, const CPVT_WordProps & wordProps);
34 void IOnInvalidateRec t(CPDF_Rect * pRect); 34 void IOnInvalidateRec t(CPDF_Rect * pRect);
35 35
36 private: 36 private:
37 CPWL_ListBox* m_pList; 37 CPWL_ListBox* m_pList;
38 }; 38 };
39 39
40 class PWL_CLASS CPWL_ListBox : public CPWL_Wnd 40 class PWL_CLASS CPWL_ListBox : public CPWL_Wnd
41 { 41 {
42 public: 42 public:
43 CPWL_ListBox(); 43 CPWL_ListBox();
44 virtual ~CPWL_ListBox(); 44 virtual ~CPWL_ListBox();
45 45
46 virtual CFX_ByteString GetClassName() const; 46 virtual CFX_ByteString GetClassName() const;
47 virtual void OnCreated(); 47 virtual void OnCreated();
48 virtual void OnDestroy(); 48 virtual void OnDestroy();
49 virtual void GetThisAppearanceStream( CFX_ByteTextBuf & sAppStream); 49 virtual void GetThisAppearanceStream( CFX_ByteTextBuf & sAppStream);
50 virtual void DrawThisAppearance(CFX_R enderDevice* pDevice, CPDF_Matrix* pUser2Device); 50 virtual void DrawThisAppearance(CFX_R enderDevice* pDevice, CPDF_Matrix* pUser2Device);
51 51
52 » virtual FX_BOOL»» » » » OnKeyDown(FX_WORD nChar, FX_DWORD nFlag); 52 » virtual bool» » » » » OnKeyDown(FX_WORD nChar, FX_DWORD nFlag);
53 » virtual FX_BOOL»» » » » OnChar(FX_WORD nChar, FX _DWORD nFlag); 53 » virtual bool» » » » » OnChar(FX_WORD nChar, FX _DWORD nFlag);
54 » virtual FX_BOOL»» » » » OnLButtonDown(const CPDF _Point & point, FX_DWORD nFlag); 54 » virtual bool» » » » » OnLButtonDown(const CPDF _Point & point, FX_DWORD nFlag);
55 » virtual FX_BOOL»» » » » OnLButtonUp(const CPDF_P oint & point, FX_DWORD nFlag); 55 » virtual bool» » » » » OnLButtonUp(const CPDF_P oint & point, FX_DWORD nFlag);
56 » virtual FX_BOOL»» » » » OnMouseMove(const CPDF_P oint & point, FX_DWORD nFlag); 56 » virtual bool» » » » » OnMouseMove(const CPDF_P oint & point, FX_DWORD nFlag);
57 » virtual FX_BOOL»» » » » OnMouseWheel(short zDelt a, const CPDF_Point & point, FX_DWORD nFlag); 57 » virtual bool» » » » » OnMouseWheel(short zDelt a, const CPDF_Point & point, FX_DWORD nFlag);
58 virtual void KillFocus(); 58 virtual void KillFocus();
59 59
60 virtual void OnNotify(CPWL_Wnd* pWnd, FX_DWORD msg, intptr_t wParam = 0, intptr_t lParam = 0); 60 virtual void OnNotify(CPWL_Wnd* pWnd, FX_DWORD msg, intptr_t wParam = 0, intptr_t lParam = 0);
61 virtual void RePosChildWnd(); 61 virtual void RePosChildWnd();
62 virtual CFX_WideString GetText() const; 62 virtual CFX_WideString GetText() const;
63 virtual CPDF_Rect GetFocusRect() const; 63 virtual CPDF_Rect GetFocusRect() const;
64 virtual void SetFontSize(FX_FLOAT fFo ntSize); 64 virtual void SetFontSize(FX_FLOAT fFo ntSize);
65 virtual FX_FLOAT GetFontSize() const; 65 virtual FX_FLOAT GetFontSize() const;
66 66
67 » void» » » » » » » OnNotifySelChang ed(FX_BOOL bKeyDown, FX_BOOL & bExit , FX_DWORD nFlag); 67 » void» » » » » » » OnNotifySelChang ed(bool bKeyDown, bool & bExit , FX_DWORD nFlag);
68 68
69 void AddString(const FX_WCHAR* string); 69 void AddString(const FX_WCHAR* string);
70 void SetTopVisibleInd ex(int32_t nItemIndex); 70 void SetTopVisibleInd ex(int32_t nItemIndex);
71 void ScrollToListItem (int32_t nItemIndex); 71 void ScrollToListItem (int32_t nItemIndex);
72 void ResetContent(); 72 void ResetContent();
73 void Reset(); 73 void Reset();
74 void Select(int32_t n ItemIndex); 74 void Select(int32_t n ItemIndex);
75 void SetCaret(int32_t nItemIndex); 75 void SetCaret(int32_t nItemIndex);
76 » void» » » » » » » SetHoverSel(FX_B OOL bHoverSel); 76 » void» » » » » » » SetHoverSel(bool bHoverSel);
77 77
78 int32_t GetCount() const; 78 int32_t GetCount() const;
79 » FX_BOOL»» » » » » » IsMultipleSel() const; 79 » bool» » » » » » » IsMultipleSel() const;
80 int32_t GetCaretIndex() const; 80 int32_t GetCaretIndex() const;
81 int32_t GetCurSel() const; 81 int32_t GetCurSel() const;
82 » FX_BOOL»» » » » » » IsItemSelected(i nt32_t nItemIndex) const; 82 » bool» » » » » » » IsItemSelected(i nt32_t nItemIndex) const;
83 int32_t GetTopVisibleIndex() con st; 83 int32_t GetTopVisibleIndex() con st;
84 int32_t FindNext(int32_t nIndex, FX_WCHAR nChar) const; 84 int32_t FindNext(int32_t nIndex, FX_WCHAR nChar) const;
85 CPDF_Rect GetContentRect() const; 85 CPDF_Rect GetContentRect() const;
86 FX_FLOAT GetFirstHeight() const; 86 FX_FLOAT GetFirstHeight() const;
87 CPDF_Rect GetListRect() co nst; 87 CPDF_Rect GetListRect() co nst;
88 88
89 void SetFillerNotify( IPWL_Filler_Notify* pNotify) {m_pFillerNotify = pNotify;} 89 void SetFillerNotify( IPWL_Filler_Notify* pNotify) {m_pFillerNotify = pNotify;}
90 90
91 protected: 91 protected:
92 IFX_List* m_pList; 92 IFX_List* m_pList;
93 CPWL_List_Notify* m_pListNotify; 93 CPWL_List_Notify* m_pListNotify;
94 » FX_BOOL»» » » » » » m_bMouseDown; 94 » bool» » » » » » » m_bMouseDown;
95 » FX_BOOL»» » » » » » m_bHoverSel; 95 » bool» » » » » » » m_bHoverSel;
96 IPWL_Filler_Notify* m_pFillerNotify; 96 IPWL_Filler_Notify* m_pFillerNotify;
97 public: 97 public:
98 void AttachFFLData(vo id* pData) {m_pFormFiller = pData;} 98 void AttachFFLData(vo id* pData) {m_pFormFiller = pData;}
99 private: 99 private:
100 void* m_pFormFiller; 100 void* m_pFormFiller;
101 }; 101 };
102 102
103 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_LISTBOX_H_ 103 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_LISTBOX_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_IconList.h ('k') | fpdfsdk/include/pdfwindow/PWL_ListCtrl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698