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

Side by Side Diff: fpdfsdk/include/fsdk_baseform.h

Issue 1577453002: Merge to XFA: Clean up misc nits found while fixing bugs. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 4 years, 11 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 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 #ifdef PDF_ENABLE_XFA 274 #ifdef PDF_ENABLE_XFA
275 void AddXFAMap(IXFA_Widget* hWidget, CPDFSDK_XFAWidget* pWidget); 275 void AddXFAMap(IXFA_Widget* hWidget, CPDFSDK_XFAWidget* pWidget);
276 void RemoveXFAMap(IXFA_Widget* hWidget); 276 void RemoveXFAMap(IXFA_Widget* hWidget);
277 CPDFSDK_XFAWidget* GetXFAWidget(IXFA_Widget* hWidget); 277 CPDFSDK_XFAWidget* GetXFAWidget(IXFA_Widget* hWidget);
278 void XfaEnableCalculate(FX_BOOL bEnabled); 278 void XfaEnableCalculate(FX_BOOL bEnabled);
279 FX_BOOL IsXfaCalculateEnabled() const; 279 FX_BOOL IsXfaCalculateEnabled() const;
280 FX_BOOL IsXfaValidationsEnabled(); 280 FX_BOOL IsXfaValidationsEnabled();
281 void XfaSetValidationsEnabled(FX_BOOL bEnabled); 281 void XfaSetValidationsEnabled(FX_BOOL bEnabled);
282 #endif // PDF_ENABLE_XFA 282 #endif // PDF_ENABLE_XFA
283 283
284 #ifdef _WIN32
285 CPDF_Stream* LoadImageFromFile(const CFX_WideString& sFile);
286 #endif
287
288 void OnKeyStrokeCommit(CPDF_FormField* pFormField, 284 void OnKeyStrokeCommit(CPDF_FormField* pFormField,
289 CFX_WideString& csValue, 285 CFX_WideString& csValue,
290 FX_BOOL& bRC); 286 FX_BOOL& bRC);
291 void OnValidate(CPDF_FormField* pFormField, 287 void OnValidate(CPDF_FormField* pFormField,
292 CFX_WideString& csValue, 288 CFX_WideString& csValue,
293 FX_BOOL& bRC); 289 FX_BOOL& bRC);
294 void OnCalculate(CPDF_FormField* pFormField = NULL); 290 void OnCalculate(CPDF_FormField* pFormField = NULL);
295 CFX_WideString OnFormat(CPDF_FormField* pFormField, FX_BOOL& bFormated); 291 CFX_WideString OnFormat(CPDF_FormField* pFormField, FX_BOOL& bFormated);
296 292
297 void ResetFieldAppearance(CPDF_FormField* pFormField, 293 void ResetFieldAppearance(CPDF_FormField* pFormField,
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 static CPDF_Rect GetAnnotRect(CPDFSDK_Annot* pAnnot); 398 static CPDF_Rect GetAnnotRect(CPDFSDK_Annot* pAnnot);
403 399
404 CPDFSDK_PageView* m_pPageView; 400 CPDFSDK_PageView* m_pPageView;
405 CFX_ByteString m_sType; 401 CFX_ByteString m_sType;
406 CFX_ByteString m_sSubType; 402 CFX_ByteString m_sSubType;
407 int m_nTabs; 403 int m_nTabs;
408 CPDFSDK_Annots m_Annots; 404 CPDFSDK_Annots m_Annots;
409 }; 405 };
410 406
411 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ 407 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp ('k') | fpdfsdk/include/fsdk_define.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698