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 "core/include/fpdfdoc/fpdf_doc.h" | 7 #include "core/include/fpdfdoc/fpdf_doc.h" |
8 #include "doc_utils.h" | 8 #include "core/src/fpdfdoc/doc_utils.h" |
9 #include "third_party/base/stl_util.h" | 9 #include "third_party/base/stl_util.h" |
10 | 10 |
11 const int nMaxRecursion = 32; | 11 const int nMaxRecursion = 32; |
12 | 12 |
13 class CFieldNameExtractor { | 13 class CFieldNameExtractor { |
14 public: | 14 public: |
15 explicit CFieldNameExtractor(const CFX_WideString& full_name) { | 15 explicit CFieldNameExtractor(const CFX_WideString& full_name) { |
16 m_pStart = full_name.c_str(); | 16 m_pStart = full_name.c_str(); |
17 m_pEnd = m_pStart + full_name.GetLength(); | 17 m_pEnd = m_pStart + full_name.GetLength(); |
18 m_pCur = m_pStart; | 18 m_pCur = m_pStart; |
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1212 FDF_ImportField(pField, L"", bNotify); | 1212 FDF_ImportField(pField, L"", bNotify); |
1213 } | 1213 } |
1214 if (bNotify && m_pFormNotify) { | 1214 if (bNotify && m_pFormNotify) { |
1215 m_pFormNotify->AfterFormImportData(this); | 1215 m_pFormNotify->AfterFormImportData(this); |
1216 } | 1216 } |
1217 return TRUE; | 1217 return TRUE; |
1218 } | 1218 } |
1219 void CPDF_InterForm::SetFormNotify(const CPDF_FormNotify* pNotify) { | 1219 void CPDF_InterForm::SetFormNotify(const CPDF_FormNotify* pNotify) { |
1220 m_pFormNotify = (CPDF_FormNotify*)pNotify; | 1220 m_pFormNotify = (CPDF_FormNotify*)pNotify; |
1221 } | 1221 } |
OLD | NEW |