OLD | NEW |
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_FPDFDOC_INCLUDE_FPDF_DOC_H_ | 7 #ifndef CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ |
8 #define CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ | 8 #define CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 #define FIELDTYPE_COMBOBOX 4 | 434 #define FIELDTYPE_COMBOBOX 4 |
435 #define FIELDTYPE_LISTBOX 5 | 435 #define FIELDTYPE_LISTBOX 5 |
436 #define FIELDTYPE_TEXTFIELD 6 | 436 #define FIELDTYPE_TEXTFIELD 6 |
437 #define FIELDTYPE_SIGNATURE 7 | 437 #define FIELDTYPE_SIGNATURE 7 |
438 | 438 |
439 class CPDF_InterForm { | 439 class CPDF_InterForm { |
440 public: | 440 public: |
441 explicit CPDF_InterForm(CPDF_Document* pDocument); | 441 explicit CPDF_InterForm(CPDF_Document* pDocument); |
442 ~CPDF_InterForm(); | 442 ~CPDF_InterForm(); |
443 | 443 |
444 static void EnableUpdateAP(FX_BOOL bUpdateAP); | 444 static void SetUpdateAP(FX_BOOL bUpdateAP); |
445 static FX_BOOL UpdatingAPEnabled(); | 445 static FX_BOOL IsUpdateAPEnabled(); |
446 static CFX_ByteString GenerateNewResourceName(const CPDF_Dictionary* pResDict, | 446 static CFX_ByteString GenerateNewResourceName(const CPDF_Dictionary* pResDict, |
447 const FX_CHAR* csType, | 447 const FX_CHAR* csType, |
448 int iMinLen = 2, | 448 int iMinLen = 2, |
449 const FX_CHAR* csPrefix = ""); | 449 const FX_CHAR* csPrefix = ""); |
450 static CPDF_Font* AddStandardFont(CPDF_Document* pDocument, | 450 static CPDF_Font* AddStandardFont(CPDF_Document* pDocument, |
451 CFX_ByteString csFontName); | 451 CFX_ByteString csFontName); |
452 static CFX_ByteString GetNativeFont(uint8_t iCharSet, | 452 static CFX_ByteString GetNativeFont(uint8_t iCharSet, |
453 void* pLogFont = nullptr); | 453 void* pLogFont = nullptr); |
454 static CFX_ByteString GetNativeFont(void* pLogFont = nullptr); | 454 static CFX_ByteString GetNativeFont(void* pLogFont = nullptr); |
455 static uint8_t GetNativeCharSet(); | 455 static uint8_t GetNativeCharSet(); |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
930 CFX_WideString GetCaption(const CFX_ByteString& csEntry) const; | 930 CFX_WideString GetCaption(const CFX_ByteString& csEntry) const; |
931 CPDF_Stream* GetIcon(const CFX_ByteString& csEntry) const; | 931 CPDF_Stream* GetIcon(const CFX_ByteString& csEntry) const; |
932 | 932 |
933 CPDF_Dictionary* const m_pDict; | 933 CPDF_Dictionary* const m_pDict; |
934 }; | 934 }; |
935 | 935 |
936 CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict, | 936 CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict, |
937 CPDF_Annot::AppearanceMode mode); | 937 CPDF_Annot::AppearanceMode mode); |
938 | 938 |
939 #endif // CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ | 939 #endif // CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ |
OLD | NEW |