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

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

Issue 1477583002: Inflict PDF_ENABLE_XFA ifdefs on XFA fpdfsdk/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Remove fsdk_actionhandler.cpp 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
115 void OnClick(CPDFSDK_Widget* pWidget, 116 void OnClick(CPDFSDK_Widget* pWidget,
116 CPDFSDK_PageView* pPageView, 117 CPDFSDK_PageView* pPageView,
117 FX_BOOL& bReset, 118 FX_BOOL& bReset,
118 FX_BOOL& bExit, 119 FX_BOOL& bExit,
119 FX_UINT nFlag); 120 FX_UINT nFlag);
120 void OnFull(CPDFSDK_Widget* pWidget, 121 void OnFull(CPDFSDK_Widget* pWidget,
121 CPDFSDK_PageView* pPageView, 122 CPDFSDK_PageView* pPageView,
122 FX_BOOL& bReset, 123 FX_BOOL& bReset,
123 FX_BOOL& bExit, 124 FX_BOOL& bExit,
124 FX_UINT nFlag); 125 FX_UINT nFlag);
125 void OnPreOpen(CPDFSDK_Widget* pWidget, 126 void OnPreOpen(CPDFSDK_Widget* pWidget,
126 CPDFSDK_PageView* pPageView, 127 CPDFSDK_PageView* pPageView,
127 FX_BOOL& bReset, 128 FX_BOOL& bReset,
128 FX_BOOL& bExit, 129 FX_BOOL& bExit,
129 FX_UINT nFlag); 130 FX_UINT nFlag);
130 void OnPostOpen(CPDFSDK_Widget* pWidget, 131 void OnPostOpen(CPDFSDK_Widget* pWidget,
131 CPDFSDK_PageView* pPageView, 132 CPDFSDK_PageView* pPageView,
132 FX_BOOL& bReset, 133 FX_BOOL& bReset,
133 FX_BOOL& bExit, 134 FX_BOOL& bExit,
134 FX_UINT nFlag); 135 FX_UINT nFlag);
136 #endif
135 137
136 private: 138 private:
137 using CFFL_Widget2Filler = std::map<CPDFSDK_Annot*, CFFL_FormFiller*>; 139 using CFFL_Widget2Filler = std::map<CPDFSDK_Annot*, CFFL_FormFiller*>;
138 140
139 // IPWL_Filler_Notify: 141 // IPWL_Filler_Notify:
140 void QueryWherePopup(void* pPrivateData, 142 void QueryWherePopup(void* pPrivateData,
141 FX_FLOAT fPopupMin, 143 FX_FLOAT fPopupMin,
142 FX_FLOAT fPopupMax, 144 FX_FLOAT fPopupMax,
143 int32_t& nRet, 145 int32_t& nRet,
144 FX_FLOAT& fPopupRet) override; 146 FX_FLOAT& fPopupRet) override;
145 void OnBeforeKeyStroke(void* pPrivateData, 147 void OnBeforeKeyStroke(void* pPrivateData,
146 CFX_WideString& strChange, 148 CFX_WideString& strChange,
147 const CFX_WideString& strChangeEx, 149 const CFX_WideString& strChangeEx,
148 int nSelStart, 150 int nSelStart,
149 int nSelEnd, 151 int nSelEnd,
150 FX_BOOL bKeyDown, 152 FX_BOOL bKeyDown,
151 FX_BOOL& bRC, 153 FX_BOOL& bRC,
152 FX_BOOL& bExit, 154 FX_BOOL& bExit,
153 FX_DWORD nFlag) override; 155 FX_DWORD nFlag) override;
156 #ifdef PDF_ENABLE_XFA
154 void OnPopupPreOpen(void* pPrivateData, 157 void OnPopupPreOpen(void* pPrivateData,
155 FX_BOOL& bExit, 158 FX_BOOL& bExit,
156 FX_DWORD nFlag) override; 159 FX_DWORD nFlag) override;
157 void OnPopupPostOpen(void* pPrivateData, 160 void OnPopupPostOpen(void* pPrivateData,
158 FX_BOOL& bExit, 161 FX_BOOL& bExit,
159 FX_DWORD nFlag) override; 162 FX_DWORD nFlag) override;
163 #endif
160 164
161 void UnRegisterFormFiller(CPDFSDK_Annot* pAnnot); 165 void UnRegisterFormFiller(CPDFSDK_Annot* pAnnot);
166 #ifdef PDF_ENABLE_XFA
162 void SetFocusAnnotTab(CPDFSDK_Annot* pWidget, 167 void SetFocusAnnotTab(CPDFSDK_Annot* pWidget,
163 FX_BOOL bSameField, 168 FX_BOOL bSameField,
164 FX_BOOL bNext); 169 FX_BOOL bNext);
170 #endif
165 171
166 CPDFDoc_Environment* m_pApp; 172 CPDFDoc_Environment* m_pApp;
167 CFFL_Widget2Filler m_Maps; 173 CFFL_Widget2Filler m_Maps;
168 FX_BOOL m_bNotifying; 174 FX_BOOL m_bNotifying;
169 }; 175 };
170 176
171 class CFFL_PrivateData { 177 class CFFL_PrivateData {
172 public: 178 public:
173 CPDFSDK_Widget* pWidget; 179 CPDFSDK_Widget* pWidget;
174 CPDFSDK_PageView* pPageView; 180 CPDFSDK_PageView* pPageView;
175 int nWidgetAge; 181 int nWidgetAge;
176 int nValueAge; 182 int nValueAge;
177 }; 183 };
178 184
179 #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