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_widget.h" | 7 #include "fpdfsdk/include/cpdfsdk_widget.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" | 11 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" |
12 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 12 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
13 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h" | 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h" |
14 #include "core/fpdfdoc/include/cpdf_defaultappearance.h" | 14 #include "core/fpdfdoc/include/cpdf_defaultappearance.h" |
15 #include "core/fpdfdoc/include/cpdf_formcontrol.h" | 15 #include "core/fpdfdoc/include/cpdf_formcontrol.h" |
16 #include "core/fpdfdoc/include/cpdf_formfield.h" | 16 #include "core/fpdfdoc/include/cpdf_formfield.h" |
17 #include "core/fpdfdoc/include/cpdf_iconfit.h" | 17 #include "core/fpdfdoc/include/cpdf_iconfit.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/cba_fontmap.h" | 22 #include "fpdfsdk/formfiller/cba_fontmap.h" |
23 #include "fpdfsdk/fxedit/include/fxet_edit.h" | 23 #include "fpdfsdk/fxedit/include/fxet_edit.h" |
| 24 #include "fpdfsdk/include/cpdfdoc_environment.h" |
| 25 #include "fpdfsdk/include/cpdfsdk_document.h" |
24 #include "fpdfsdk/include/cpdfsdk_interform.h" | 26 #include "fpdfsdk/include/cpdfsdk_interform.h" |
| 27 #include "fpdfsdk/include/cpdfsdk_pageview.h" |
| 28 #include "fpdfsdk/include/fsdk_actionhandler.h" |
25 #include "fpdfsdk/include/fsdk_define.h" | 29 #include "fpdfsdk/include/fsdk_define.h" |
26 #include "fpdfsdk/include/fsdk_mgr.h" | |
27 #include "fpdfsdk/pdfwindow/PWL_Edit.h" | 30 #include "fpdfsdk/pdfwindow/PWL_Edit.h" |
28 #include "fpdfsdk/pdfwindow/PWL_Utils.h" | 31 #include "fpdfsdk/pdfwindow/PWL_Utils.h" |
29 | 32 |
30 #ifdef PDF_ENABLE_XFA | 33 #ifdef PDF_ENABLE_XFA |
31 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" | 34 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" |
32 #include "xfa/fxfa/include/cxfa_eventparam.h" | 35 #include "xfa/fxfa/include/cxfa_eventparam.h" |
33 #include "xfa/fxfa/include/fxfa_widget.h" | 36 #include "xfa/fxfa/include/fxfa_widget.h" |
34 #include "xfa/fxfa/include/xfa_ffdocview.h" | 37 #include "xfa/fxfa/include/xfa_ffdocview.h" |
35 #include "xfa/fxfa/include/xfa_ffwidget.h" | 38 #include "xfa/fxfa/include/xfa_ffwidget.h" |
36 #include "xfa/fxfa/include/xfa_ffwidgethandler.h" | 39 #include "xfa/fxfa/include/xfa_ffwidgethandler.h" |
(...skipping 1903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1940 return FALSE; | 1943 return FALSE; |
1941 | 1944 |
1942 if (!IsVisible()) | 1945 if (!IsVisible()) |
1943 return FALSE; | 1946 return FALSE; |
1944 | 1947 |
1945 if ((GetFieldFlags() & FIELDFLAG_READONLY) == FIELDFLAG_READONLY) | 1948 if ((GetFieldFlags() & FIELDFLAG_READONLY) == FIELDFLAG_READONLY) |
1946 return FALSE; | 1949 return FALSE; |
1947 | 1950 |
1948 return TRUE; | 1951 return TRUE; |
1949 } | 1952 } |
OLD | NEW |