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

Side by Side Diff: fpdfsdk/include/formfiller/FFL_IFormFiller.h

Issue 1399273003: fpdfsdk/ differences with XFA (for didactic purposes only). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Regenerate after taking juns patch Created 5 years 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/formfiller/FFL_FormFiller.h ('k') | fpdfsdk/include/formfiller/FFL_TextField.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_FORMFILLER_FFL_IFORMFILLER_H_ 7 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_
8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ 8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 FX_DWORD nFlag); 105 FX_DWORD nFlag);
106 void OnFormat(CPDFSDK_Widget* pWidget, 106 void OnFormat(CPDFSDK_Widget* pWidget,
107 CPDFSDK_PageView* pPageView, 107 CPDFSDK_PageView* pPageView,
108 FX_BOOL& bExit, 108 FX_BOOL& bExit,
109 FX_DWORD nFlag); 109 FX_DWORD nFlag);
110 void OnButtonUp(CPDFSDK_Widget* pWidget, 110 void OnButtonUp(CPDFSDK_Widget* pWidget,
111 CPDFSDK_PageView* pPageView, 111 CPDFSDK_PageView* pPageView,
112 FX_BOOL& bReset, 112 FX_BOOL& bReset,
113 FX_BOOL& bExit, 113 FX_BOOL& bExit,
114 FX_UINT nFlag); 114 FX_UINT nFlag);
115 #ifdef PDF_ENABLE_XFA
116 void OnClick(CPDFSDK_Widget* pWidget,
117 CPDFSDK_PageView* pPageView,
118 FX_BOOL& bReset,
119 FX_BOOL& bExit,
120 FX_UINT nFlag);
121 void OnFull(CPDFSDK_Widget* pWidget,
122 CPDFSDK_PageView* pPageView,
123 FX_BOOL& bReset,
124 FX_BOOL& bExit,
125 FX_UINT nFlag);
126 void OnPreOpen(CPDFSDK_Widget* pWidget,
127 CPDFSDK_PageView* pPageView,
128 FX_BOOL& bReset,
129 FX_BOOL& bExit,
130 FX_UINT nFlag);
131 void OnPostOpen(CPDFSDK_Widget* pWidget,
132 CPDFSDK_PageView* pPageView,
133 FX_BOOL& bReset,
134 FX_BOOL& bExit,
135 FX_UINT nFlag);
136 #endif
115 137
116 private: 138 private:
117 using CFFL_Widget2Filler = std::map<CPDFSDK_Annot*, CFFL_FormFiller*>; 139 using CFFL_Widget2Filler = std::map<CPDFSDK_Annot*, CFFL_FormFiller*>;
118 140
119 // IPWL_Filler_Notify: 141 // IPWL_Filler_Notify:
120 void QueryWherePopup(void* pPrivateData, 142 void QueryWherePopup(void* pPrivateData,
121 FX_FLOAT fPopupMin, 143 FX_FLOAT fPopupMin,
122 FX_FLOAT fPopupMax, 144 FX_FLOAT fPopupMax,
123 int32_t& nRet, 145 int32_t& nRet,
124 FX_FLOAT& fPopupRet) override; 146 FX_FLOAT& fPopupRet) override;
125 void OnBeforeKeyStroke(void* pPrivateData, 147 void OnBeforeKeyStroke(void* pPrivateData,
126 CFX_WideString& strChange, 148 CFX_WideString& strChange,
127 const CFX_WideString& strChangeEx, 149 const CFX_WideString& strChangeEx,
128 int nSelStart, 150 int nSelStart,
129 int nSelEnd, 151 int nSelEnd,
130 FX_BOOL bKeyDown, 152 FX_BOOL bKeyDown,
131 FX_BOOL& bRC, 153 FX_BOOL& bRC,
132 FX_BOOL& bExit, 154 FX_BOOL& bExit,
133 FX_DWORD nFlag) override; 155 FX_DWORD nFlag) override;
156 #ifdef PDF_ENABLE_XFA
157 void OnPopupPreOpen(void* pPrivateData,
158 FX_BOOL& bExit,
159 FX_DWORD nFlag) override;
160 void OnPopupPostOpen(void* pPrivateData,
161 FX_BOOL& bExit,
162 FX_DWORD nFlag) override;
163 #endif
134 164
135 void UnRegisterFormFiller(CPDFSDK_Annot* pAnnot); 165 void UnRegisterFormFiller(CPDFSDK_Annot* pAnnot);
166 #ifdef PDF_ENABLE_XFA
167 void SetFocusAnnotTab(CPDFSDK_Annot* pWidget,
168 FX_BOOL bSameField,
169 FX_BOOL bNext);
170 #endif
136 171
137 CPDFDoc_Environment* m_pApp; 172 CPDFDoc_Environment* m_pApp;
138 CFFL_Widget2Filler m_Maps; 173 CFFL_Widget2Filler m_Maps;
139 FX_BOOL m_bNotifying; 174 FX_BOOL m_bNotifying;
140 }; 175 };
141 176
142 class CFFL_PrivateData { 177 class CFFL_PrivateData {
143 public: 178 public:
144 CPDFSDK_Widget* pWidget; 179 CPDFSDK_Widget* pWidget;
145 CPDFSDK_PageView* pPageView; 180 CPDFSDK_PageView* pPageView;
146 int nWidgetAge; 181 int nWidgetAge;
147 int nValueAge; 182 int nValueAge;
148 }; 183 };
149 184
150 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ 185 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/formfiller/FFL_FormFiller.h ('k') | fpdfsdk/include/formfiller/FFL_TextField.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698