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 "fpdfsdk/cpdfsdk_interform.h" | 7 #include "fpdfsdk/cpdfsdk_interform.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "fpdfsdk/fsdk_define.h" | 30 #include "fpdfsdk/fsdk_define.h" |
31 #include "fpdfsdk/fxedit/fxet_edit.h" | 31 #include "fpdfsdk/fxedit/fxet_edit.h" |
32 #include "fpdfsdk/ipdfsdk_annothandler.h" | 32 #include "fpdfsdk/ipdfsdk_annothandler.h" |
33 #include "fpdfsdk/javascript/ijs_context.h" | 33 #include "fpdfsdk/javascript/ijs_context.h" |
34 #include "fpdfsdk/javascript/ijs_runtime.h" | 34 #include "fpdfsdk/javascript/ijs_runtime.h" |
35 #include "fpdfsdk/pdfwindow/PWL_Utils.h" | 35 #include "fpdfsdk/pdfwindow/PWL_Utils.h" |
36 #include "third_party/base/stl_util.h" | 36 #include "third_party/base/stl_util.h" |
37 | 37 |
38 #ifdef PDF_ENABLE_XFA | 38 #ifdef PDF_ENABLE_XFA |
39 #include "fpdfsdk/cpdfsdk_xfawidget.h" | 39 #include "fpdfsdk/cpdfsdk_xfawidget.h" |
40 #include "fpdfsdk/fpdfxfa/cpdfxfa_document.h" | 40 #include "fpdfsdk/fpdfxfa/cpdfxfa_context.h" |
41 #include "fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.h" | 41 #include "fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.h" |
42 #include "xfa/fxfa/cxfa_eventparam.h" | 42 #include "xfa/fxfa/cxfa_eventparam.h" |
43 #include "xfa/fxfa/xfa_ffdocview.h" | 43 #include "xfa/fxfa/xfa_ffdocview.h" |
44 #include "xfa/fxfa/xfa_ffwidget.h" | 44 #include "xfa/fxfa/xfa_ffwidget.h" |
45 #include "xfa/fxfa/xfa_ffwidgethandler.h" | 45 #include "xfa/fxfa/xfa_ffwidgethandler.h" |
46 #endif // PDF_ENABLE_XFA | 46 #endif // PDF_ENABLE_XFA |
47 | 47 |
48 CPDFSDK_InterForm::CPDFSDK_InterForm(CPDFSDK_FormFillEnvironment* pFormFillEnv) | 48 CPDFSDK_InterForm::CPDFSDK_InterForm(CPDFSDK_FormFillEnvironment* pFormFillEnv) |
49 : m_pFormFillEnv(pFormFillEnv), | 49 : m_pFormFillEnv(pFormFillEnv), |
50 m_pInterForm(new CPDF_InterForm(m_pFormFillEnv->GetPDFDocument())), | 50 m_pInterForm(new CPDF_InterForm(m_pFormFillEnv->GetPDFDocument())), |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 } | 707 } |
708 } | 708 } |
709 | 709 |
710 FX_COLORREF CPDFSDK_InterForm::GetHighlightColor(int nFieldType) { | 710 FX_COLORREF CPDFSDK_InterForm::GetHighlightColor(int nFieldType) { |
711 if (nFieldType < 0 || nFieldType > kNumFieldTypes) | 711 if (nFieldType < 0 || nFieldType > kNumFieldTypes) |
712 return FXSYS_RGB(255, 255, 255); | 712 return FXSYS_RGB(255, 255, 255); |
713 if (nFieldType == 0) | 713 if (nFieldType == 0) |
714 return m_aHighlightColor[0]; | 714 return m_aHighlightColor[0]; |
715 return m_aHighlightColor[nFieldType - 1]; | 715 return m_aHighlightColor[nFieldType - 1]; |
716 } | 716 } |
OLD | NEW |