| 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/include/cpdfsdk_interform.h" | 7 #include "fpdfsdk/include/cpdfsdk_interform.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" | 12 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" |
| 13 #include "core/fpdfapi/fpdf_parser/include/cfdf_document.h" | 13 #include "core/fpdfapi/fpdf_parser/include/cfdf_document.h" |
| 14 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 14 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" |
| 15 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 15 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
| 16 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h" | 16 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h" |
| 17 #include "core/fpdfdoc/include/cpdf_actionfields.h" | 17 #include "core/fpdfdoc/include/cpdf_actionfields.h" |
| 18 #include "core/fpdfdoc/include/cpdf_interform.h" | 18 #include "core/fpdfdoc/include/cpdf_interform.h" |
| 19 #include "core/fxge/include/cfx_graphstatedata.h" | 19 #include "core/fxge/include/cfx_graphstatedata.h" |
| 20 #include "core/fxge/include/cfx_pathdata.h" | 20 #include "core/fxge/include/cfx_pathdata.h" |
| 21 #include "core/fxge/include/cfx_renderdevice.h" | 21 #include "core/fxge/include/cfx_renderdevice.h" |
| 22 #include "fpdfsdk/formfiller/cffl_formfiller.h" | 22 #include "fpdfsdk/formfiller/cffl_formfiller.h" |
| 23 #include "fpdfsdk/fxedit/include/fxet_edit.h" | 23 #include "fpdfsdk/fxedit/include/fxet_edit.h" |
| 24 #include "fpdfsdk/include/cba_annotiterator.h" | 24 #include "fpdfsdk/include/cba_annotiterator.h" |
| 25 #include "fpdfsdk/include/cpdfdoc_environment.h" |
| 25 #include "fpdfsdk/include/cpdfsdk_annot.h" | 26 #include "fpdfsdk/include/cpdfsdk_annot.h" |
| 27 #include "fpdfsdk/include/cpdfsdk_document.h" |
| 28 #include "fpdfsdk/include/cpdfsdk_pageview.h" |
| 26 #include "fpdfsdk/include/cpdfsdk_widget.h" | 29 #include "fpdfsdk/include/cpdfsdk_widget.h" |
| 27 #include "fpdfsdk/include/fsdk_actionhandler.h" | 30 #include "fpdfsdk/include/fsdk_actionhandler.h" |
| 28 #include "fpdfsdk/include/fsdk_define.h" | 31 #include "fpdfsdk/include/fsdk_define.h" |
| 29 #include "fpdfsdk/include/fsdk_mgr.h" | |
| 30 #include "fpdfsdk/include/ipdfsdk_annothandler.h" | 32 #include "fpdfsdk/include/ipdfsdk_annothandler.h" |
| 31 #include "fpdfsdk/javascript/ijs_context.h" | 33 #include "fpdfsdk/javascript/ijs_context.h" |
| 32 #include "fpdfsdk/javascript/ijs_runtime.h" | 34 #include "fpdfsdk/javascript/ijs_runtime.h" |
| 33 #include "fpdfsdk/pdfwindow/PWL_Utils.h" | 35 #include "fpdfsdk/pdfwindow/PWL_Utils.h" |
| 34 #include "third_party/base/stl_util.h" | 36 #include "third_party/base/stl_util.h" |
| 35 | 37 |
| 36 #ifdef PDF_ENABLE_XFA | 38 #ifdef PDF_ENABLE_XFA |
| 37 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" | 39 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" |
| 38 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h" | 40 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h" |
| 39 #include "fpdfsdk/include/cpdfsdk_xfawidget.h" | 41 #include "fpdfsdk/include/cpdfsdk_xfawidget.h" |
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 } | 719 } |
| 718 } | 720 } |
| 719 | 721 |
| 720 FX_COLORREF CPDFSDK_InterForm::GetHighlightColor(int nFieldType) { | 722 FX_COLORREF CPDFSDK_InterForm::GetHighlightColor(int nFieldType) { |
| 721 if (nFieldType < 0 || nFieldType > kNumFieldTypes) | 723 if (nFieldType < 0 || nFieldType > kNumFieldTypes) |
| 722 return FXSYS_RGB(255, 255, 255); | 724 return FXSYS_RGB(255, 255, 255); |
| 723 if (nFieldType == 0) | 725 if (nFieldType == 0) |
| 724 return m_aHighlightColor[0]; | 726 return m_aHighlightColor[0]; |
| 725 return m_aHighlightColor[nFieldType - 1]; | 727 return m_aHighlightColor[nFieldType - 1]; |
| 726 } | 728 } |
| OLD | NEW |