| 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 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "core/fpdfapi/fpdf_font/include/cpdf_fontencoding.h" | 9 #include "core/fpdfapi/fpdf_font/include/cpdf_fontencoding.h" |
| 10 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" | 10 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" |
| 11 #include "core/fpdfapi/fpdf_parser/include/cfdf_document.h" | 11 #include "core/fpdfapi/fpdf_parser/include/cfdf_document.h" |
| 12 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 12 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" |
| 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
| 14 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h" | 14 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h" |
| 15 #include "core/fpdfdoc/include/cpdf_filespec.h" |
| 16 #include "core/fpdfdoc/include/cpdf_formcontrol.h" |
| 17 #include "core/fpdfdoc/include/cpdf_interform.h" |
| 15 #include "core/fpdfdoc/doc_utils.h" | 18 #include "core/fpdfdoc/doc_utils.h" |
| 16 #include "core/fpdfdoc/include/fpdf_doc.h" | |
| 17 #include "third_party/base/stl_util.h" | 19 #include "third_party/base/stl_util.h" |
| 18 | 20 |
| 19 namespace { | 21 namespace { |
| 20 | 22 |
| 21 const int nMaxRecursion = 32; | 23 const int nMaxRecursion = 32; |
| 22 | 24 |
| 23 const struct SupportFieldEncoding { | 25 const struct SupportFieldEncoding { |
| 24 const FX_CHAR* m_name; | 26 const FX_CHAR* m_name; |
| 25 uint16_t m_codePage; | 27 uint16_t m_codePage; |
| 26 } g_fieldEncoding[] = { | 28 } g_fieldEncoding[] = { |
| (...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1192 FDF_ImportField(pField, L"", bNotify); | 1194 FDF_ImportField(pField, L"", bNotify); |
| 1193 } | 1195 } |
| 1194 if (bNotify && m_pFormNotify) | 1196 if (bNotify && m_pFormNotify) |
| 1195 m_pFormNotify->AfterFormImportData(this); | 1197 m_pFormNotify->AfterFormImportData(this); |
| 1196 return TRUE; | 1198 return TRUE; |
| 1197 } | 1199 } |
| 1198 | 1200 |
| 1199 void CPDF_InterForm::SetFormNotify(IPDF_FormNotify* pNotify) { | 1201 void CPDF_InterForm::SetFormNotify(IPDF_FormNotify* pNotify) { |
| 1200 m_pFormNotify = pNotify; | 1202 m_pFormNotify = pNotify; |
| 1201 } | 1203 } |
| OLD | NEW |