| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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/cpdf_font.h" | 9 #include "core/fpdfapi/fpdf_font/cpdf_font.h" |
| 10 #include "core/fpdfapi/fpdf_font/cpdf_fontencoding.h" | 10 #include "core/fpdfapi/fpdf_font/cpdf_fontencoding.h" |
| 11 #include "core/fpdfapi/fpdf_page/cpdf_page.h" | 11 #include "core/fpdfapi/fpdf_page/cpdf_page.h" |
| 12 #include "core/fpdfapi/fpdf_parser/cfdf_document.h" | 12 #include "core/fpdfapi/fpdf_parser/cfdf_document.h" |
| 13 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" | 13 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" |
| 14 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" | 14 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" |
| 15 #include "core/fpdfapi/fpdf_parser/cpdf_string.h" | 15 #include "core/fpdfapi/fpdf_parser/cpdf_string.h" |
| 16 #include "core/fpdfdoc/cpdf_filespec.h" | 16 #include "core/fpdfdoc/cpdf_filespec.h" |
| 17 #include "core/fpdfdoc/cpdf_formcontrol.h" | 17 #include "core/fpdfdoc/cpdf_formcontrol.h" |
| 18 #include "core/fpdfdoc/cpdf_interform.h" | 18 #include "core/fpdfdoc/cpdf_interform.h" |
| 19 #include "core/fxge/include/cfx_substfont.h" | 19 #include "core/fxge/cfx_substfont.h" |
| 20 #include "core/fxge/include/fx_font.h" | 20 #include "core/fxge/fx_font.h" |
| 21 #include "third_party/base/stl_util.h" | 21 #include "third_party/base/stl_util.h" |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 const int nMaxRecursion = 32; | 25 const int nMaxRecursion = 32; |
| 26 | 26 |
| 27 const struct SupportFieldEncoding { | 27 const struct SupportFieldEncoding { |
| 28 const FX_CHAR* m_name; | 28 const FX_CHAR* m_name; |
| 29 uint16_t m_codePage; | 29 uint16_t m_codePage; |
| 30 } g_fieldEncoding[] = { | 30 } g_fieldEncoding[] = { |
| (...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1312 else if (iType == FIELDTYPE_LISTBOX) | 1312 else if (iType == FIELDTYPE_LISTBOX) |
| 1313 m_pFormNotify->AfterSelectionChange(pField); | 1313 m_pFormNotify->AfterSelectionChange(pField); |
| 1314 else if (iType == FIELDTYPE_COMBOBOX || iType == FIELDTYPE_TEXTFIELD) | 1314 else if (iType == FIELDTYPE_COMBOBOX || iType == FIELDTYPE_TEXTFIELD) |
| 1315 m_pFormNotify->AfterValueChange(pField); | 1315 m_pFormNotify->AfterValueChange(pField); |
| 1316 } | 1316 } |
| 1317 } | 1317 } |
| 1318 | 1318 |
| 1319 void CPDF_InterForm::SetFormNotify(IPDF_FormNotify* pNotify) { | 1319 void CPDF_InterForm::SetFormNotify(IPDF_FormNotify* pNotify) { |
| 1320 m_pFormNotify = pNotify; | 1320 m_pFormNotify = pNotify; |
| 1321 } | 1321 } |
| OLD | NEW |