| 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/cpdf_dictionary.h" | 11 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h" | 
| 12 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" | 12 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" | 
| 13 #include "core/fpdfapi/fpdf_parser/cpdf_stream.h" | 13 #include "core/fpdfapi/fpdf_parser/cpdf_stream.h" | 
| 14 #include "core/fpdfdoc/cpdf_defaultappearance.h" | 14 #include "core/fpdfdoc/cpdf_defaultappearance.h" | 
| 15 #include "core/fpdfdoc/cpdf_formcontrol.h" | 15 #include "core/fpdfdoc/cpdf_formcontrol.h" | 
| 16 #include "core/fpdfdoc/cpdf_formfield.h" | 16 #include "core/fpdfdoc/cpdf_formfield.h" | 
| 17 #include "core/fpdfdoc/cpdf_iconfit.h" | 17 #include "core/fpdfdoc/cpdf_iconfit.h" | 
| 18 #include "core/fpdfdoc/cpdf_interform.h" | 18 #include "core/fpdfdoc/cpdf_interform.h" | 
| 19 #include "core/fxge/cfx_graphstatedata.h" | 19 #include "core/fxge/cfx_graphstatedata.h" | 
| 20 #include "core/fxge/cfx_pathdata.h" | 20 #include "core/fxge/cfx_pathdata.h" | 
| 21 #include "core/fxge/cfx_renderdevice.h" | 21 #include "core/fxge/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/fxet_edit.h" | 
| 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 | 
| (...skipping 1913 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 | 
|---|