| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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 "xfa/fxfa/app/xfa_ffnotify.h" | 7 #include "xfa/fxfa/app/xfa_ffnotify.h" |
| 8 | 8 |
| 9 #include "xfa/fxfa/app/xfa_ffbarcode.h" | 9 #include "xfa/fxfa/app/xfa_ffbarcode.h" |
| 10 #include "xfa/fxfa/app/xfa_ffcheckbutton.h" | 10 #include "xfa/fxfa/app/xfa_ffcheckbutton.h" |
| 11 #include "xfa/fxfa/app/xfa_ffchoicelist.h" | 11 #include "xfa/fxfa/app/xfa_ffchoicelist.h" |
| 12 #include "xfa/fxfa/app/xfa_ffdraw.h" | 12 #include "xfa/fxfa/app/xfa_ffdraw.h" |
| 13 #include "xfa/fxfa/app/xfa_ffexclgroup.h" | 13 #include "xfa/fxfa/app/xfa_ffexclgroup.h" |
| 14 #include "xfa/fxfa/app/xfa_fffield.h" | 14 #include "xfa/fxfa/app/xfa_fffield.h" |
| 15 #include "xfa/fxfa/app/xfa_ffimage.h" | 15 #include "xfa/fxfa/app/xfa_ffimage.h" |
| 16 #include "xfa/fxfa/app/xfa_ffimageedit.h" | 16 #include "xfa/fxfa/app/xfa_ffimageedit.h" |
| 17 #include "xfa/fxfa/app/xfa_ffpath.h" | 17 #include "xfa/fxfa/app/xfa_ffpath.h" |
| 18 #include "xfa/fxfa/app/xfa_ffpushbutton.h" | 18 #include "xfa/fxfa/app/xfa_ffpushbutton.h" |
| 19 #include "xfa/fxfa/app/xfa_ffsignature.h" | 19 #include "xfa/fxfa/app/xfa_ffsignature.h" |
| 20 #include "xfa/fxfa/app/xfa_ffsubform.h" | 20 #include "xfa/fxfa/app/xfa_ffsubform.h" |
| 21 #include "xfa/fxfa/app/xfa_fftext.h" | 21 #include "xfa/fxfa/app/xfa_fftext.h" |
| 22 #include "xfa/fxfa/app/xfa_fftextedit.h" | 22 #include "xfa/fxfa/app/xfa_fftextedit.h" |
| 23 #include "xfa/fxfa/app/xfa_ffwidget.h" | |
| 24 #include "xfa/fxfa/app/xfa_ffwidgetacc.h" | 23 #include "xfa/fxfa/app/xfa_ffwidgetacc.h" |
| 25 #include "xfa/fxfa/app/xfa_fwladapter.h" | 24 #include "xfa/fxfa/app/xfa_fwladapter.h" |
| 26 #include "xfa/fxfa/app/xfa_textlayout.h" | 25 #include "xfa/fxfa/app/xfa_textlayout.h" |
| 27 #include "xfa/include/fxfa/xfa_ffapp.h" | 26 #include "xfa/include/fxfa/xfa_ffapp.h" |
| 28 #include "xfa/include/fxfa/xfa_ffdoc.h" | 27 #include "xfa/include/fxfa/xfa_ffdoc.h" |
| 29 #include "xfa/include/fxfa/xfa_ffdocview.h" | 28 #include "xfa/include/fxfa/xfa_ffdocview.h" |
| 30 #include "xfa/include/fxfa/xfa_ffpageview.h" | 29 #include "xfa/include/fxfa/xfa_ffpageview.h" |
| 30 #include "xfa/include/fxfa/xfa_ffwidget.h" |
| 31 #include "xfa/include/fxfa/xfa_ffwidgethandler.h" | 31 #include "xfa/include/fxfa/xfa_ffwidgethandler.h" |
| 32 | 32 |
| 33 static void XFA_FFDeleteWidgetAcc(void* pData) { | 33 static void XFA_FFDeleteWidgetAcc(void* pData) { |
| 34 delete static_cast<CXFA_WidgetAcc*>(pData); | 34 delete static_cast<CXFA_WidgetAcc*>(pData); |
| 35 } | 35 } |
| 36 | 36 |
| 37 static XFA_MAPDATABLOCKCALLBACKINFO gs_XFADeleteWidgetAcc = { | 37 static XFA_MAPDATABLOCKCALLBACKINFO gs_XFADeleteWidgetAcc = { |
| 38 XFA_FFDeleteWidgetAcc, nullptr}; | 38 XFA_FFDeleteWidgetAcc, nullptr}; |
| 39 | 39 |
| 40 CXFA_FFNotify::CXFA_FFNotify(CXFA_FFDoc* pDoc) : m_pDoc(pDoc) {} | 40 CXFA_FFNotify::CXFA_FFNotify(CXFA_FFDoc* pDoc) : m_pDoc(pDoc) {} |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 } | 639 } |
| 640 } | 640 } |
| 641 uint32_t dwOldStatus = pWidget->GetStatus(); | 641 uint32_t dwOldStatus = pWidget->GetStatus(); |
| 642 uint32_t dwFilter = XFA_WIDGETSTATUS_Visible | XFA_WIDGETSTATUS_Viewable | | 642 uint32_t dwFilter = XFA_WIDGETSTATUS_Visible | XFA_WIDGETSTATUS_Viewable | |
| 643 XFA_WIDGETSTATUS_Printable; | 643 XFA_WIDGETSTATUS_Printable; |
| 644 if ((dwOldStatus & dwFilter) == dwStatus) { | 644 if ((dwOldStatus & dwFilter) == dwStatus) { |
| 645 return; | 645 return; |
| 646 } | 646 } |
| 647 pWidget->ModifyStatus(dwStatus, dwFilter); | 647 pWidget->ModifyStatus(dwStatus, dwFilter); |
| 648 } | 648 } |
| OLD | NEW |