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

Side by Side Diff: fpdfsdk/include/fsdk_baseform.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/fsdk_baseannot.h ('k') | fpdfsdk/include/fsdk_define.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_FSDK_BASEFORM_H_ 7 #ifndef FPDFSDK_INCLUDE_FSDK_BASEFORM_H_
8 #define FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ 8 #define FPDFSDK_INCLUDE_FSDK_BASEFORM_H_
9 9
10 #if _FX_OS_ == _FX_ANDROID_ 10 #if _FX_OS_ == _FX_ANDROID_
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 CPDF_FormField* GetFormField() const; 149 CPDF_FormField* GetFormField() const;
150 CPDF_FormControl* GetFormControl() const; 150 CPDF_FormControl* GetFormControl() const;
151 static CPDF_FormControl* GetFormControl(CPDF_InterForm* p InterForm, CPDF_Dictionary* pAnnotDict); 151 static CPDF_FormControl* GetFormControl(CPDF_InterForm* p InterForm, CPDF_Dictionary* pAnnotDict);
152 152
153 void DrawShadow(CFX_R enderDevice* pDevice, CPDFSDK_PageView* pPageView); 153 void DrawShadow(CFX_R enderDevice* pDevice, CPDFSDK_PageView* pPageView);
154 154
155 void SetAppModified() ; 155 void SetAppModified() ;
156 void ClearAppModified (); 156 void ClearAppModified ();
157 FX_BOOL IsAppModified() const; 157 FX_BOOL IsAppModified() const;
158 158
159 » FX_INT32» » » » » » GetAppearanceAge () const; 159 » int32_t»» » » » » GetAppearanceAge() const ;
160 » FX_INT32» » » » » » GetValueAge() co nst; 160 » int32_t»» » » » » GetValueAge() const;
161 161
162 private: 162 private:
163 void ResetAppearance_ PushButton(); 163 void ResetAppearance_ PushButton();
164 void ResetAppearance_ CheckBox(); 164 void ResetAppearance_ CheckBox();
165 void ResetAppearance_ RadioButton(); 165 void ResetAppearance_ RadioButton();
166 void ResetAppearance_ ComboBox(FX_LPCWSTR sValue); 166 void ResetAppearance_ ComboBox(FX_LPCWSTR sValue);
167 void ResetAppearance_ ListBox(); 167 void ResetAppearance_ ListBox();
168 void ResetAppearance_ TextField(FX_LPCWSTR sValue); 168 void ResetAppearance_ TextField(FX_LPCWSTR sValue);
169 169
170 CPDF_Rect GetClientRect() const; 170 CPDF_Rect GetClientRect() const;
(...skipping 11 matching lines...) Expand all
182 void RemoveAppearance (const CFX_ByteString& sAPType); 182 void RemoveAppearance (const CFX_ByteString& sAPType);
183 public: 183 public:
184 FX_BOOL IsWidgetAppearan ceValid(CPDF_Annot::AppearanceMode mode); 184 FX_BOOL IsWidgetAppearan ceValid(CPDF_Annot::AppearanceMode mode);
185 void DrawAppearance(C FX_RenderDevice* pDevice, const CPDF_Matrix* pUser2Device, 185 void DrawAppearance(C FX_RenderDevice* pDevice, const CPDF_Matrix* pUser2Device,
186 CPDF_Annot::AppearanceMode mode, const CPDF_RenderOptions* pOpti ons); 186 CPDF_Annot::AppearanceMode mode, const CPDF_RenderOptions* pOpti ons);
187 public: 187 public:
188 FX_BOOL HitTest(FX_FLOAT pageX, FX_FLOAT pageY); 188 FX_BOOL HitTest(FX_FLOAT pageX, FX_FLOAT pageY);
189 private: 189 private:
190 CPDFSDK_InterForm* m_pInterForm; 190 CPDFSDK_InterForm* m_pInterForm;
191 FX_BOOL m_bAppModified; 191 FX_BOOL m_bAppModified;
192 » FX_INT32» » » » » » m_nAppAge; 192 » int32_t»» » » » » m_nAppAge;
193 » FX_INT32» » » » » » m_nValueAge; 193 » int32_t»» » » » » m_nValueAge;
194 194
195 IXFA_Widget* m_hMixXFAWidget; 195 IXFA_Widget* m_hMixXFAWidget;
196 IXFA_WidgetHandler* m_pWidgetHandler; 196 IXFA_WidgetHandler* m_pWidgetHandler;
197 }; 197 };
198 198
199 class CPDFSDK_XFAWidget : public CPDFSDK_Annot 199 class CPDFSDK_XFAWidget : public CPDFSDK_Annot
200 { 200 {
201 public: 201 public:
202 CPDFSDK_XFAWidget(IXFA_Widget* pAnnot, CPDFSDK_PageView* pPageView, CPDF SDK_InterForm* pInterForm); 202 CPDFSDK_XFAWidget(IXFA_Widget* pAnnot, CPDFSDK_PageView* pPageView, CPDF SDK_InterForm* pInterForm);
203 virtual ~CPDFSDK_XFAWidget(){} 203 virtual ~CPDFSDK_XFAWidget(){}
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 CPDFSDK_XFAWidgetMap m_XFAMap; 310 CPDFSDK_XFAWidgetMap m_XFAMap;
311 CPDFSDK_FieldSynchronizeMap m_FieldSynchronizeMap; 311 CPDFSDK_FieldSynchronizeMap m_FieldSynchronizeMap;
312 FX_BOOL m_bCalculate; 312 FX_BOOL m_bCalculate;
313 FX_BOOL m_bXfaCalculate; 313 FX_BOOL m_bXfaCalculate;
314 FX_BOOL m_bXfaValidation sEnabled; 314 FX_BOOL m_bXfaValidation sEnabled;
315 FX_BOOL m_bBusy; 315 FX_BOOL m_bBusy;
316 316
317 public: 317 public:
318 FX_BOOL IsNeedHighLight(int nFieldType); 318 FX_BOOL IsNeedHighLight(int nFieldType);
319 void RemoveAllHighLight(); 319 void RemoveAllHighLight();
320 » void SetHighlightAlpha(FX_BYTE alpha) {m_iHighlightAlpha = alpha;} 320 » void SetHighlightAlpha(uint8_t alpha) {m_iHighlightAlpha = alpha;}
321 » FX_BYTE GetHighlightAlpha() {return m_iHighlightAlpha;} 321 » uint8_t GetHighlightAlpha() {return m_iHighlightAlpha;}
322 void SetHighlightColor(FX_COLORREF clr, int nFieldType); 322 void SetHighlightColor(FX_COLORREF clr, int nFieldType);
323 FX_COLORREF GetHighlightColor(int nFieldType); 323 FX_COLORREF GetHighlightColor(int nFieldType);
324 private: 324 private:
325 FX_COLORREF m_aHighlightColor[7]; 325 FX_COLORREF m_aHighlightColor[7];
326 » FX_BYTE m_iHighlightAlpha; 326 » uint8_t m_iHighlightAlpha;
327 FX_BOOL m_bNeedHightlight[7]; 327 FX_BOOL m_bNeedHightlight[7];
328 }; 328 };
329 329
330 #define BAI_STRUCTURE 0 330 #define BAI_STRUCTURE 0
331 #define BAI_ROW 1 331 #define BAI_ROW 1
332 #define BAI_COLUMN 2 332 #define BAI_COLUMN 2
333 333
334 #define CPDFSDK_Annots CFX_ArrayTemplate<CPDFSDK_Annot* > 334 #define CPDFSDK_Annots CFX_ArrayTemplate<CPDFSDK_Annot* >
335 #define CPDFSDK_SortAnnots CGW_ArrayTemplate<CPDFSDK_Annot* > 335 #define CPDFSDK_SortAnnots CGW_ArrayTemplate<CPDFSDK_Annot* >
336 class CBA_AnnotIterator 336 class CBA_AnnotIterator
(...skipping 14 matching lines...) Expand all
351 static CPDF_Rect GetAnnotRect(CPD FSDK_Annot* pAnnot); 351 static CPDF_Rect GetAnnotRect(CPD FSDK_Annot* pAnnot);
352 352
353 CPDFSDK_PageView* m_pPageView; 353 CPDFSDK_PageView* m_pPageView;
354 CFX_ByteString m_sType; 354 CFX_ByteString m_sType;
355 CFX_ByteString m_sSubType; 355 CFX_ByteString m_sSubType;
356 int m_nTabs; 356 int m_nTabs;
357 CPDFSDK_Annots m_Annots; 357 CPDFSDK_Annots m_Annots;
358 }; 358 };
359 359
360 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ 360 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fsdk_baseannot.h ('k') | fpdfsdk/include/fsdk_define.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698