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

Side by Side Diff: xfa/fwl/basewidget/ifwl_combobox.h

Issue 1980293004: Pass objects instead of strings for undo/redo records. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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 XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_ 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_
8 #define XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_ 8 #define XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_
9 9
10 #include "xfa/fwl/basewidget/ifwl_listbox.h" 10 #include "xfa/fwl/basewidget/ifwl_listbox.h"
11 #include "xfa/fxgraphics/include/cfx_graphics.h" 11 #include "xfa/fxgraphics/include/cfx_graphics.h"
12 12
13 class CFWL_WidgetImpProperties; 13 class CFWL_WidgetImpProperties;
14 class IFDE_TxtEdtDoRecord;
14 class IFWL_ComboBox; 15 class IFWL_ComboBox;
15 16
16 #define FWL_CLASS_ComboBox L"FWL_COMBOBOX" 17 #define FWL_CLASS_ComboBox L"FWL_COMBOBOX"
17 #define FWL_STYLEEXT_CMB_DropList (0L << 0) 18 #define FWL_STYLEEXT_CMB_DropList (0L << 0)
18 #define FWL_STYLEEXT_CMB_DropDown (1L << 0) 19 #define FWL_STYLEEXT_CMB_DropDown (1L << 0)
19 #define FWL_STYLEEXT_CMB_Sort (1L << 1) 20 #define FWL_STYLEEXT_CMB_Sort (1L << 1)
20 #define FWL_STYLEEXT_CMB_ListDrag (1L << 2) 21 #define FWL_STYLEEXT_CMB_ListDrag (1L << 2)
21 #define FWL_STYLEEXT_CMB_OwnerDraw (1L << 3) 22 #define FWL_STYLEEXT_CMB_OwnerDraw (1L << 3)
22 #define FWL_STYLEEXT_CMB_EditHNear (0L << 4) 23 #define FWL_STYLEEXT_CMB_EditHNear (0L << 4)
23 #define FWL_STYLEEXT_CMB_EditHCenter (1L << 4) 24 #define FWL_STYLEEXT_CMB_EditHCenter (1L << 4)
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 FWL_Error SetEditText(const CFX_WideString& wsText); 84 FWL_Error SetEditText(const CFX_WideString& wsText);
84 int32_t GetEditTextLength() const; 85 int32_t GetEditTextLength() const;
85 FWL_Error GetEditText(CFX_WideString& wsText, 86 FWL_Error GetEditText(CFX_WideString& wsText,
86 int32_t nStart = 0, 87 int32_t nStart = 0,
87 int32_t nCount = -1) const; 88 int32_t nCount = -1) const;
88 FWL_Error SetEditSelRange(int32_t nStart, int32_t nCount = -1); 89 FWL_Error SetEditSelRange(int32_t nStart, int32_t nCount = -1);
89 int32_t GetEditSelRange(int32_t nIndex, int32_t& nStart); 90 int32_t GetEditSelRange(int32_t nIndex, int32_t& nStart);
90 int32_t GetEditLimit(); 91 int32_t GetEditLimit();
91 FWL_Error SetEditLimit(int32_t nLimit); 92 FWL_Error SetEditLimit(int32_t nLimit);
92 FWL_Error EditDoClipboard(int32_t iCmd); 93 FWL_Error EditDoClipboard(int32_t iCmd);
93 FX_BOOL EditRedo(const CFX_ByteStringC& bsRecord); 94 FX_BOOL EditRedo(const IFDE_TxtEdtDoRecord* pRecord);
94 FX_BOOL EditUndo(const CFX_ByteStringC& bsRecord); 95 FX_BOOL EditUndo(const IFDE_TxtEdtDoRecord* pRecord);
95 IFWL_ListBox* GetListBoxt(); 96 IFWL_ListBox* GetListBoxt();
96 FX_BOOL AfterFocusShowDropList(); 97 FX_BOOL AfterFocusShowDropList();
97 FWL_Error OpenDropDownList(FX_BOOL bActivate); 98 FWL_Error OpenDropDownList(FX_BOOL bActivate);
98 FX_BOOL EditCanUndo(); 99 FX_BOOL EditCanUndo();
99 FX_BOOL EditCanRedo(); 100 FX_BOOL EditCanRedo();
100 FX_BOOL EditUndo(); 101 FX_BOOL EditUndo();
101 FX_BOOL EditRedo(); 102 FX_BOOL EditRedo();
102 FX_BOOL EditCanCopy(); 103 FX_BOOL EditCanCopy();
103 FX_BOOL EditCanCut(); 104 FX_BOOL EditCanCut();
104 FX_BOOL EditCanSelectAll(); 105 FX_BOOL EditCanSelectAll();
105 FX_BOOL EditCopy(CFX_WideString& wsCopy); 106 FX_BOOL EditCopy(CFX_WideString& wsCopy);
106 FX_BOOL EditCut(CFX_WideString& wsCut); 107 FX_BOOL EditCut(CFX_WideString& wsCut);
107 FX_BOOL EditPaste(const CFX_WideString& wsPaste); 108 FX_BOOL EditPaste(const CFX_WideString& wsPaste);
108 FX_BOOL EditSelectAll(); 109 FX_BOOL EditSelectAll();
109 FX_BOOL EditDelete(); 110 FX_BOOL EditDelete();
110 FX_BOOL EditDeSelect(); 111 FX_BOOL EditDeSelect();
111 FWL_Error GetBBox(CFX_RectF& rect); 112 FWL_Error GetBBox(CFX_RectF& rect);
112 FWL_Error EditModifyStylesEx(uint32_t dwStylesExAdded, 113 FWL_Error EditModifyStylesEx(uint32_t dwStylesExAdded,
113 uint32_t dwStylesExRemoved); 114 uint32_t dwStylesExRemoved);
114 115
115 protected: 116 protected:
116 IFWL_ComboBox(); 117 IFWL_ComboBox();
117 }; 118 };
118 119
119 #endif // XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_ 120 #endif // XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698