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 |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "fpdfsdk/include/cpdfsdk_document.h" | 24 #include "fpdfsdk/include/cpdfsdk_document.h" |
25 #include "fpdfsdk/include/cpdfsdk_environment.h" | 25 #include "fpdfsdk/include/cpdfsdk_environment.h" |
26 #include "fpdfsdk/include/cpdfsdk_interform.h" | 26 #include "fpdfsdk/include/cpdfsdk_interform.h" |
27 #include "fpdfsdk/include/cpdfsdk_pageview.h" | 27 #include "fpdfsdk/include/cpdfsdk_pageview.h" |
28 #include "fpdfsdk/include/fsdk_actionhandler.h" | 28 #include "fpdfsdk/include/fsdk_actionhandler.h" |
29 #include "fpdfsdk/include/fsdk_define.h" | 29 #include "fpdfsdk/include/fsdk_define.h" |
30 #include "fpdfsdk/pdfwindow/PWL_Edit.h" | 30 #include "fpdfsdk/pdfwindow/PWL_Edit.h" |
31 #include "fpdfsdk/pdfwindow/PWL_Utils.h" | 31 #include "fpdfsdk/pdfwindow/PWL_Utils.h" |
32 | 32 |
33 #ifdef PDF_ENABLE_XFA | 33 #ifdef PDF_ENABLE_XFA |
34 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" | 34 #include "fpdfsdk/fpdfxfa/fpdfxfa_doc.h" |
35 #include "xfa/fxfa/include/cxfa_eventparam.h" | 35 #include "xfa/fxfa/include/cxfa_eventparam.h" |
36 #include "xfa/fxfa/include/fxfa_widget.h" | 36 #include "xfa/fxfa/include/fxfa_widget.h" |
37 #include "xfa/fxfa/include/xfa_ffdocview.h" | 37 #include "xfa/fxfa/include/xfa_ffdocview.h" |
38 #include "xfa/fxfa/include/xfa_ffwidget.h" | 38 #include "xfa/fxfa/include/xfa_ffwidget.h" |
39 #include "xfa/fxfa/include/xfa_ffwidgethandler.h" | 39 #include "xfa/fxfa/include/xfa_ffwidgethandler.h" |
40 #endif // PDF_ENABLE_XFA | 40 #endif // PDF_ENABLE_XFA |
41 | 41 |
42 namespace { | 42 namespace { |
43 | 43 |
44 // Convert a FX_ARGB to a FX_COLORREF. | 44 // Convert a FX_ARGB to a FX_COLORREF. |
(...skipping 1902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1947 return FALSE; | 1947 return FALSE; |
1948 | 1948 |
1949 if (!IsVisible()) | 1949 if (!IsVisible()) |
1950 return FALSE; | 1950 return FALSE; |
1951 | 1951 |
1952 if ((GetFieldFlags() & FIELDFLAG_READONLY) == FIELDFLAG_READONLY) | 1952 if ((GetFieldFlags() & FIELDFLAG_READONLY) == FIELDFLAG_READONLY) |
1953 return FALSE; | 1953 return FALSE; |
1954 | 1954 |
1955 return TRUE; | 1955 return TRUE; |
1956 } | 1956 } |
OLD | NEW |