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

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

Issue 1265503005: clang-format all pdfium code. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: sigh Created 5 years, 4 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
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"
11 #include "PWL_Wnd.h" 11 #include "PWL_Wnd.h"
12 12
13 class CPDF_ListCtrl; 13 class CPDF_ListCtrl;
14 class CPWL_List_Notify; 14 class CPWL_List_Notify;
15 class CPWL_ListBox; 15 class CPWL_ListBox;
16 class IPWL_Filler_Notify; 16 class IPWL_Filler_Notify;
17 17
18 class CPWL_List_Notify : public IFX_List_Notify 18 class CPWL_List_Notify : public IFX_List_Notify {
19 { 19 public:
20 public: 20 CPWL_List_Notify(CPWL_ListBox* pList);
21 » CPWL_List_Notify(CPWL_ListBox * pList); 21 virtual ~CPWL_List_Notify();
22 » virtual ~CPWL_List_Notify();
23 22
24 » void» » » » » » » IOnSetScrollInfo X(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax, 23 void IOnSetScrollInfoX(FX_FLOAT fPlateMin,
25 » » » » » » » » » » » » FX_FLOAT fContentMin, FX_FLOAT fContentMax, 24 FX_FLOAT fPlateMax,
26 » » » » » » » » » » » » FX_FLOAT fSmallStep, FX_FLOAT fBigStep){} 25 FX_FLOAT fContentMin,
27 » void» » » » » » » IOnSetScrollInfo Y(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax, 26 FX_FLOAT fContentMax,
28 » » » » » » » » » » » » FX_FLOAT fContentMin, FX_FLOAT fContentMax, 27 FX_FLOAT fSmallStep,
29 » » » » » » » » » » » » FX_FLOAT fSmallStep, FX_FLOAT fBigStep); 28 FX_FLOAT fBigStep) {}
30 » void» » » » » » » IOnSetScrollPosX (FX_FLOAT fx){} 29 void IOnSetScrollInfoY(FX_FLOAT fPlateMin,
31 » void» » » » » » » IOnSetScrollPosY (FX_FLOAT fy); 30 FX_FLOAT fPlateMax,
32 » void» » » » » » » IOnSetCaret(FX_B OOL bVisible,const CPDF_Point & ptHead,const CPDF_Point & ptFoot, const CPVT_Wor dPlace& place); 31 FX_FLOAT fContentMin,
33 » void» » » » » » » IOnCaretChange(c onst CPVT_SecProps & secProps, const CPVT_WordProps & wordProps); 32 FX_FLOAT fContentMax,
34 » void» » » » » » » IOnInvalidateRec t(CPDF_Rect * pRect); 33 FX_FLOAT fSmallStep,
34 FX_FLOAT fBigStep);
35 void IOnSetScrollPosX(FX_FLOAT fx) {}
36 void IOnSetScrollPosY(FX_FLOAT fy);
37 void IOnSetCaret(FX_BOOL bVisible,
38 const CPDF_Point& ptHead,
39 const CPDF_Point& ptFoot,
40 const CPVT_WordPlace& place);
41 void IOnCaretChange(const CPVT_SecProps& secProps,
42 const CPVT_WordProps& wordProps);
43 void IOnInvalidateRect(CPDF_Rect* pRect);
35 44
36 private: 45 private:
37 » CPWL_ListBox*» » » » » m_pList; 46 CPWL_ListBox* m_pList;
38 }; 47 };
39 48
40 class CPWL_ListBox : public CPWL_Wnd 49 class CPWL_ListBox : public CPWL_Wnd {
41 { 50 public:
42 public: 51 CPWL_ListBox();
43 » CPWL_ListBox(); 52 virtual ~CPWL_ListBox();
44 » virtual ~CPWL_ListBox();
45 53
46 » virtual CFX_ByteString» » » GetClassName() const; 54 virtual CFX_ByteString GetClassName() const;
47 » virtual void» » » » » OnCreated(); 55 virtual void OnCreated();
48 » virtual void» » » » » OnDestroy(); 56 virtual void OnDestroy();
49 » virtual void» » » » » GetThisAppearanceStream( CFX_ByteTextBuf & sAppStream); 57 virtual void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream);
50 » virtual void» » » » » DrawThisAppearance(CFX_R enderDevice* pDevice, CPDF_Matrix* pUser2Device); 58 virtual void DrawThisAppearance(CFX_RenderDevice* pDevice,
59 CPDF_Matrix* pUser2Device);
51 60
52 » virtual FX_BOOL»» » » » OnKeyDown(FX_WORD nChar, FX_DWORD nFlag); 61 virtual FX_BOOL OnKeyDown(FX_WORD nChar, FX_DWORD nFlag);
53 » virtual FX_BOOL»» » » » OnChar(FX_WORD nChar, FX _DWORD nFlag); 62 virtual FX_BOOL OnChar(FX_WORD nChar, FX_DWORD nFlag);
54 » virtual FX_BOOL»» » » » OnLButtonDown(const CPDF _Point & point, FX_DWORD nFlag); 63 virtual FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag);
55 » virtual FX_BOOL»» » » » OnLButtonUp(const CPDF_P oint & point, FX_DWORD nFlag); 64 virtual FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_DWORD nFlag);
56 » virtual FX_BOOL»» » » » OnMouseMove(const CPDF_P oint & point, FX_DWORD nFlag); 65 virtual FX_BOOL OnMouseMove(const CPDF_Point& point, FX_DWORD nFlag);
57 » virtual FX_BOOL»» » » » OnMouseWheel(short zDelt a, const CPDF_Point & point, FX_DWORD nFlag); 66 virtual FX_BOOL OnMouseWheel(short zDelta,
58 » virtual void» » » » » KillFocus(); 67 const CPDF_Point& point,
68 FX_DWORD nFlag);
69 virtual void KillFocus();
59 70
60 » virtual void» » » » » OnNotify(CPWL_Wnd* pWnd, FX_DWORD msg, intptr_t wParam = 0, intptr_t lParam = 0); 71 virtual void OnNotify(CPWL_Wnd* pWnd,
61 » virtual void» » » » » RePosChildWnd(); 72 FX_DWORD msg,
62 » virtual CFX_WideString» » » GetText() const; 73 intptr_t wParam = 0,
63 » virtual CPDF_Rect» » » » GetFocusRect() const; 74 intptr_t lParam = 0);
64 » virtual void» » » » » SetFontSize(FX_FLOAT fFo ntSize); 75 virtual void RePosChildWnd();
65 » virtual FX_FLOAT» » » » GetFontSize() const; 76 virtual CFX_WideString GetText() const;
77 virtual CPDF_Rect GetFocusRect() const;
78 virtual void SetFontSize(FX_FLOAT fFontSize);
79 virtual FX_FLOAT GetFontSize() const;
66 80
67 » void» » » » » » » OnNotifySelChang ed(FX_BOOL bKeyDown, FX_BOOL & bExit , FX_DWORD nFlag); 81 void OnNotifySelChanged(FX_BOOL bKeyDown, FX_BOOL& bExit, FX_DWORD nFlag);
68 82
69 » void» » » » » » » AddString(const FX_WCHAR* string); 83 void AddString(const FX_WCHAR* string);
70 » void» » » » » » » SetTopVisibleInd ex(int32_t nItemIndex); 84 void SetTopVisibleIndex(int32_t nItemIndex);
71 » void» » » » » » » ScrollToListItem (int32_t nItemIndex); 85 void ScrollToListItem(int32_t nItemIndex);
72 » void» » » » » » » ResetContent(); 86 void ResetContent();
73 » void» » » » » » » Reset(); 87 void Reset();
74 » void» » » » » » » Select(int32_t n ItemIndex); 88 void Select(int32_t nItemIndex);
75 » void» » » » » » » SetCaret(int32_t nItemIndex); 89 void SetCaret(int32_t nItemIndex);
76 » void» » » » » » » SetHoverSel(FX_B OOL bHoverSel); 90 void SetHoverSel(FX_BOOL bHoverSel);
77 91
78 » int32_t»» » » » » GetCount() const; 92 int32_t GetCount() const;
79 » FX_BOOL»» » » » » » IsMultipleSel() const; 93 FX_BOOL IsMultipleSel() const;
80 » int32_t»» » » » » GetCaretIndex() const; 94 int32_t GetCaretIndex() const;
81 » int32_t»» » » » » GetCurSel() const; 95 int32_t GetCurSel() const;
82 » FX_BOOL»» » » » » » IsItemSelected(i nt32_t nItemIndex) const; 96 FX_BOOL IsItemSelected(int32_t nItemIndex) const;
83 » int32_t»» » » » » GetTopVisibleIndex() con st; 97 int32_t GetTopVisibleIndex() const;
84 » int32_t»» » » » » FindNext(int32_t nIndex, FX_WCHAR nChar) const; 98 int32_t FindNext(int32_t nIndex, FX_WCHAR nChar) const;
85 » CPDF_Rect» » » » » » GetContentRect() const; 99 CPDF_Rect GetContentRect() const;
86 » FX_FLOAT» » » » » » GetFirstHeight() const; 100 FX_FLOAT GetFirstHeight() const;
87 » CPDF_Rect» » » » » » GetListRect() co nst; 101 CPDF_Rect GetListRect() const;
88 102
89 » void» » » » » » » SetFillerNotify( IPWL_Filler_Notify* pNotify) {m_pFillerNotify = pNotify;} 103 void SetFillerNotify(IPWL_Filler_Notify* pNotify) {
104 m_pFillerNotify = pNotify;
105 }
90 106
91 protected: 107 protected:
92 » IFX_List*» » » » » » m_pList; 108 IFX_List* m_pList;
93 » CPWL_List_Notify*» » » » m_pListNotify; 109 CPWL_List_Notify* m_pListNotify;
94 » FX_BOOL»» » » » » » m_bMouseDown; 110 FX_BOOL m_bMouseDown;
95 » FX_BOOL»» » » » » » m_bHoverSel; 111 FX_BOOL m_bHoverSel;
96 » IPWL_Filler_Notify*» » » » m_pFillerNotify; 112 IPWL_Filler_Notify* m_pFillerNotify;
97 public: 113
98 » void» » » » » » » AttachFFLData(vo id* pData) {m_pFormFiller = pData;} 114 public:
99 private: 115 void AttachFFLData(void* pData) { m_pFormFiller = pData; }
100 » void*» » » » » » » m_pFormFiller; 116
117 private:
118 void* m_pFormFiller;
101 }; 119 };
102 120
103 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_LISTBOX_H_ 121 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_LISTBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698