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

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

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 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_Caret.h ('k') | fpdfsdk/include/pdfwindow/PWL_Edit.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_COMBOBOX_H_ 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_COMBOBOX_H_
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_COMBOBOX_H_ 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_COMBOBOX_H_
9 9
10 #include "PWL_Edit.h" 10 #include "PWL_Edit.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 CPWL_ComboBox(); 54 CPWL_ComboBox();
55 operator CPWL_Edit* () {return m_pEdit;} 55 operator CPWL_Edit* () {return m_pEdit;}
56 56
57 public: 57 public:
58 virtual CFX_ByteString GetClassName() const; 58 virtual CFX_ByteString GetClassName() const;
59 virtual void OnCreate(PWL_CREATEPARAM & cp); 59 virtual void OnCreate(PWL_CREATEPARAM & cp);
60 60
61 virtual FX_BOOL OnKeyDown(FX_WORD nChar, FX_DWOR D nFlag); 61 virtual FX_BOOL OnKeyDown(FX_WORD nChar, FX_DWOR D nFlag);
62 virtual FX_BOOL OnChar(FX_WORD nChar, FX_DWORD n Flag); 62 virtual FX_BOOL OnChar(FX_WORD nChar, FX_DWORD n Flag);
63 63
64 » virtual void» » » » OnNotify(CPWL_Wnd* pWnd, FX_DWOR D msg, FX_INTPTR wParam = 0, FX_INTPTR lParam = 0); 64 » virtual void» » » » OnNotify(CPWL_Wnd* pWnd, FX_DWOR D msg, intptr_t wParam = 0, intptr_t lParam = 0);
65 65
66 virtual void CreateChildWnd(const PWL_CREATEP ARAM & cp); 66 virtual void CreateChildWnd(const PWL_CREATEP ARAM & cp);
67 virtual void RePosChildWnd(); 67 virtual void RePosChildWnd();
68 68
69 virtual CPDF_Rect GetFocusRect() const; 69 virtual CPDF_Rect GetFocusRect() const;
70 70
71 virtual void SetFocus(); 71 virtual void SetFocus();
72 virtual void KillFocus(); 72 virtual void KillFocus();
73 73
74 FX_BOOL IsModified() const; 74 FX_BOOL IsModified() const;
75 75
76 public: 76 public:
77 void SetFillerNotify(IPWL_Fil ler_Notify* pNotify); 77 void SetFillerNotify(IPWL_Fil ler_Notify* pNotify);
78 78
79 CFX_WideString GetText() const; 79 CFX_WideString GetText() const;
80 void SetText(FX_LPCWSTR text) ; 80 void SetText(FX_LPCWSTR text) ;
81 81
82 void AddString(FX_LPCWSTR str ing); 82 void AddString(FX_LPCWSTR str ing);
83 » FX_INT32» » » » » GetSelect() const; 83 » int32_t»» » » » GetSelect() const;
84 » void» » » » » » SetSelect(FX_INT32 nItem Index); 84 » void» » » » » » SetSelect(int32_t nItemI ndex);
85 85
86 » void» » » » » » SetEditSel(FX_INT32 nSta rtChar,FX_INT32 nEndChar); 86 » void» » » » » » SetEditSel(int32_t nStar tChar,int32_t nEndChar);
87 » void» » » » » » GetEditSel(FX_INT32 & nS tartChar, FX_INT32 & nEndChar ) const; 87 » void» » » » » » GetEditSel(int32_t & nSt artChar, int32_t & nEndChar ) const;
88 void Clear(); 88 void Clear();
89 void SelectAll(); 89 void SelectAll();
90 FX_BOOL IsPopup() const; 90 FX_BOOL IsPopup() const;
91 91
92 void SetSelectText(); 92 void SetSelectText();
93 93
94 private: 94 private:
95 void CreateEdit(const PWL_CRE ATEPARAM & cp); 95 void CreateEdit(const PWL_CRE ATEPARAM & cp);
96 void CreateButton(const PWL_C REATEPARAM & cp); 96 void CreateButton(const PWL_C REATEPARAM & cp);
97 void CreateListBox(const PWL_ CREATEPARAM & cp); 97 void CreateListBox(const PWL_ CREATEPARAM & cp);
98 98
99 void SetPopup(FX_BOOL bPopup) ; 99 void SetPopup(FX_BOOL bPopup) ;
100 100
101 private: 101 private:
102 CPWL_CBEdit* m_pEdit; 102 CPWL_CBEdit* m_pEdit;
103 CPWL_CBButton* m_pButton; 103 CPWL_CBButton* m_pButton;
104 CPWL_CBListBox* m_pList; 104 CPWL_CBListBox* m_pList;
105 105
106 FX_BOOL m_bPopup; 106 FX_BOOL m_bPopup;
107 CPDF_Rect m_rcOldWindow; 107 CPDF_Rect m_rcOldWindow;
108 » FX_INT32» » » » » m_nPopupWhere; 108 » int32_t»» » » » m_nPopupWhere;
109 » FX_INT32» » » » » m_nSelectItem; 109 » int32_t»» » » » m_nSelectItem;
110 IPWL_Filler_Notify* m_pFillerNotify; 110 IPWL_Filler_Notify* m_pFillerNotify;
111 111
112 public: 112 public:
113 void AttachFFLData(vo id* pData) {m_pFormFiller = pData;} 113 void AttachFFLData(vo id* pData) {m_pFormFiller = pData;}
114 private: 114 private:
115 void* m_pFormFiller; 115 void* m_pFormFiller;
116 }; 116 };
117 117
118 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_COMBOBOX_H_ 118 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_COMBOBOX_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_Caret.h ('k') | fpdfsdk/include/pdfwindow/PWL_Edit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698