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

Side by Side Diff: core/include/fpdfdoc/fpdf_doc.h

Issue 1410343003: [Merge to XFA] Revert "Revert "Add type cast definitions for CPDF_Dictionary."" (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Rebase to origin/xfa Created 5 years, 2 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 | « core/include/fpdfapi/fpdf_objects.h ('k') | core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp » ('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 CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ 7 #ifndef CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
8 #define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ 8 #define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 710
711 void FixPageFields(const CPDF_Page* pPage); 711 void FixPageFields(const CPDF_Page* pPage);
712 712
713 protected: 713 protected:
714 static FX_BOOL m_bUpdateAP; 714 static FX_BOOL m_bUpdateAP;
715 715
716 void LoadField(CPDF_Dictionary* pFieldDict, int nLevel = 0); 716 void LoadField(CPDF_Dictionary* pFieldDict, int nLevel = 0);
717 717
718 CPDF_Object* GetFieldAttr(CPDF_Dictionary* pFieldDict, const FX_CHAR* name); 718 CPDF_Object* GetFieldAttr(CPDF_Dictionary* pFieldDict, const FX_CHAR* name);
719 719
720 CPDF_FormField* AddTerminalField(const CPDF_Dictionary* pFieldDict); 720 CPDF_FormField* AddTerminalField(CPDF_Dictionary* pFieldDict);
721 721
722 CPDF_FormControl* AddControl(const CPDF_FormField* pField, 722 CPDF_FormControl* AddControl(const CPDF_FormField* pField,
723 const CPDF_Dictionary* pWidgetDict); 723 CPDF_Dictionary* pWidgetDict);
724 724
725 void FDF_ImportField(CPDF_Dictionary* pField, 725 void FDF_ImportField(CPDF_Dictionary* pField,
726 const CFX_WideString& parent_name, 726 const CFX_WideString& parent_name,
727 FX_BOOL bNotify = FALSE, 727 FX_BOOL bNotify = FALSE,
728 int nLevel = 0); 728 int nLevel = 0);
729 729
730 FX_BOOL ValidateFieldName(CFX_WideString& csNewFieldName, 730 FX_BOOL ValidateFieldName(CFX_WideString& csNewFieldName,
731 int iType, 731 int iType,
732 const CPDF_FormField* pExcludedField, 732 const CPDF_FormField* pExcludedField,
733 const CPDF_FormControl* pExcludedControl); 733 const CPDF_FormControl* pExcludedControl);
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
1206 FX_FLOAT fc[4], 1206 FX_FLOAT fc[4],
1207 const CFX_ByteStringC& csEntry); 1207 const CFX_ByteStringC& csEntry);
1208 1208
1209 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry); 1209 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry);
1210 1210
1211 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry); 1211 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry);
1212 friend class CPDF_FormControl; 1212 friend class CPDF_FormControl;
1213 }; 1213 };
1214 1214
1215 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ 1215 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
OLDNEW
« no previous file with comments | « core/include/fpdfapi/fpdf_objects.h ('k') | core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698