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

Side by Side Diff: fpdfsdk/include/fxedit/fxet_list.h

Issue 1860063002: Remove core/include/fpdfdoc/fpdf_vt.h (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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/fxedit/fxet_edit.h ('k') | fpdfsdk/pdfwindow/DEPS » ('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_FXEDIT_FXET_LIST_H_ 7 #ifndef FPDFSDK_INCLUDE_FXEDIT_FXET_LIST_H_
8 #define FPDFSDK_INCLUDE_FXEDIT_FXET_LIST_H_ 8 #define FPDFSDK_INCLUDE_FXEDIT_FXET_LIST_H_
9 9
10 #include "fpdfsdk/include/fxedit/fx_edit.h" 10 #include "fpdfsdk/include/fxedit/fx_edit.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 return CLST_Rect(left - point.x, top - point.y, right - point.x, 111 return CLST_Rect(left - point.x, top - point.y, right - point.x,
112 bottom - point.y); 112 bottom - point.y);
113 } 113 }
114 }; 114 };
115 115
116 class CFX_ListItem { 116 class CFX_ListItem {
117 public: 117 public:
118 CFX_ListItem(); 118 CFX_ListItem();
119 virtual ~CFX_ListItem(); 119 virtual ~CFX_ListItem();
120 120
121 void SetFontMap(IFX_Edit_FontMap* pFontMap); 121 void SetFontMap(IPVT_FontMap* pFontMap);
122 IFX_Edit_Iterator* GetIterator() const; 122 IFX_Edit_Iterator* GetIterator() const;
123 IFX_Edit* GetEdit() const; 123 IFX_Edit* GetEdit() const;
124 124
125 public: 125 public:
126 void SetRect(const CLST_Rect& rect); 126 void SetRect(const CLST_Rect& rect);
127 void SetSelect(FX_BOOL bSelected); 127 void SetSelect(FX_BOOL bSelected);
128 void SetCaret(FX_BOOL bCaret); 128 void SetCaret(FX_BOOL bCaret);
129 void SetText(const FX_WCHAR* text); 129 void SetText(const FX_WCHAR* text);
130 void SetFontSize(FX_FLOAT fFontSize); 130 void SetFontSize(FX_FLOAT fFontSize);
131 CFX_WideString GetText() const; 131 CFX_WideString GetText() const;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 CFX_ArrayTemplate<TYPE>::RemoveAt(nIndex); 203 CFX_ArrayTemplate<TYPE>::RemoveAt(nIndex);
204 } 204 }
205 }; 205 };
206 206
207 class CFX_List : protected CFX_ListContainer, public IFX_List { 207 class CFX_List : protected CFX_ListContainer, public IFX_List {
208 public: 208 public:
209 CFX_List(); 209 CFX_List();
210 ~CFX_List() override; 210 ~CFX_List() override;
211 211
212 // IFX_List: 212 // IFX_List:
213 void SetFontMap(IFX_Edit_FontMap* pFontMap) override; 213 void SetFontMap(IPVT_FontMap* pFontMap) override;
214 void SetFontSize(FX_FLOAT fFontSize) override; 214 void SetFontSize(FX_FLOAT fFontSize) override;
215 CFX_FloatRect GetPlateRect() const override; 215 CFX_FloatRect GetPlateRect() const override;
216 CFX_FloatRect GetContentRect() const override; 216 CFX_FloatRect GetContentRect() const override;
217 FX_FLOAT GetFontSize() const override; 217 FX_FLOAT GetFontSize() const override;
218 IFX_Edit* GetItemEdit(int32_t nIndex) const override; 218 IFX_Edit* GetItemEdit(int32_t nIndex) const override;
219 int32_t GetCount() const override; 219 int32_t GetCount() const override;
220 FX_BOOL IsItemSelected(int32_t nIndex) const override; 220 FX_BOOL IsItemSelected(int32_t nIndex) const override;
221 FX_FLOAT GetFirstHeight() const override; 221 FX_FLOAT GetFirstHeight() const override;
222 void SetMultipleSel(FX_BOOL bMultiple) override; 222 void SetMultipleSel(FX_BOOL bMultiple) override;
223 FX_BOOL IsMultipleSel() const override; 223 FX_BOOL IsMultipleSel() const override;
224 FX_BOOL IsValid(int32_t nItemIndex) const override; 224 FX_BOOL IsValid(int32_t nItemIndex) const override;
225 int32_t FindNext(int32_t nIndex, FX_WCHAR nChar) const override; 225 int32_t FindNext(int32_t nIndex, FX_WCHAR nChar) const override;
226 void Empty() override; 226 void Empty() override;
227 CFX_FloatRect GetItemRect(int32_t nIndex) const override; 227 CFX_FloatRect GetItemRect(int32_t nIndex) const override;
228 int32_t GetItemIndex(const CFX_FloatPoint& point) const override; 228 int32_t GetItemIndex(const CFX_FloatPoint& point) const override;
229 int32_t GetFirstSelected() const override; 229 int32_t GetFirstSelected() const override;
230 230
231 protected: 231 protected:
232 void AddItem(const FX_WCHAR* str); 232 void AddItem(const FX_WCHAR* str);
233 virtual void ReArrange(int32_t nItemIndex); 233 virtual void ReArrange(int32_t nItemIndex);
234 CFX_WideString GetItemText(int32_t nIndex) const; 234 CFX_WideString GetItemText(int32_t nIndex) const;
235 void SetItemSelect(int32_t nItemIndex, FX_BOOL bSelected); 235 void SetItemSelect(int32_t nItemIndex, FX_BOOL bSelected);
236 void SetItemCaret(int32_t nItemIndex, FX_BOOL bCaret); 236 void SetItemCaret(int32_t nItemIndex, FX_BOOL bCaret);
237 int32_t GetLastSelected() const; 237 int32_t GetLastSelected() const;
238 FX_WCHAR Toupper(FX_WCHAR c) const; 238 FX_WCHAR Toupper(FX_WCHAR c) const;
239 239
240 private: 240 private:
241 CLST_ArrayTemplate<CFX_ListItem*> m_aListItems; 241 CLST_ArrayTemplate<CFX_ListItem*> m_aListItems;
242 FX_FLOAT m_fFontSize; 242 FX_FLOAT m_fFontSize;
243 IFX_Edit_FontMap* m_pFontMap; 243 IPVT_FontMap* m_pFontMap;
244 FX_BOOL m_bMultiple; 244 FX_BOOL m_bMultiple;
245 }; 245 };
246 246
247 struct CPLST_Select_Item { 247 struct CPLST_Select_Item {
248 CPLST_Select_Item(int32_t other_nItemIndex, int32_t other_nState) { 248 CPLST_Select_Item(int32_t other_nItemIndex, int32_t other_nState) {
249 nItemIndex = other_nItemIndex; 249 nItemIndex = other_nItemIndex;
250 nState = other_nState; 250 nState = other_nState;
251 } 251 }
252 252
253 int32_t nItemIndex; 253 int32_t nItemIndex;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 FX_BOOL m_bNotifyFlag; 334 FX_BOOL m_bNotifyFlag;
335 CFX_FloatPoint m_ptScrollPos; 335 CFX_FloatPoint m_ptScrollPos;
336 CPLST_Select m_aSelItems; // for multiple 336 CPLST_Select m_aSelItems; // for multiple
337 int32_t m_nSelItem; // for single 337 int32_t m_nSelItem; // for single
338 int32_t m_nFootIndex; // for multiple 338 int32_t m_nFootIndex; // for multiple
339 FX_BOOL m_bCtrlSel; // for multiple 339 FX_BOOL m_bCtrlSel; // for multiple
340 int32_t m_nCaretIndex; // for multiple 340 int32_t m_nCaretIndex; // for multiple
341 }; 341 };
342 342
343 #endif // FPDFSDK_INCLUDE_FXEDIT_FXET_LIST_H_ 343 #endif // FPDFSDK_INCLUDE_FXEDIT_FXET_LIST_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fxedit/fxet_edit.h ('k') | fpdfsdk/pdfwindow/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698