| 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 "fxjse/include/cfxjse_value.h" | 9 #include "fxjse/include/cfxjse_value.h" |
| 10 #include "xfa/fxfa/app/xfa_ffbarcode.h" | 10 #include "xfa/fxfa/app/xfa_ffbarcode.h" |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 if (XFA_IsCreateWidget(iType)) { | 324 if (XFA_IsCreateWidget(iType)) { |
| 325 CXFA_WidgetAcc* pAcc = new CXFA_WidgetAcc(pDocView, pNode); | 325 CXFA_WidgetAcc* pAcc = new CXFA_WidgetAcc(pDocView, pNode); |
| 326 pNode->SetObject(XFA_ATTRIBUTE_WidgetData, pAcc, &gs_XFADeleteWidgetAcc); | 326 pNode->SetObject(XFA_ATTRIBUTE_WidgetData, pAcc, &gs_XFADeleteWidgetAcc); |
| 327 return; | 327 return; |
| 328 } | 328 } |
| 329 switch (iType) { | 329 switch (iType) { |
| 330 case XFA_ELEMENT_BindItems: | 330 case XFA_ELEMENT_BindItems: |
| 331 pDocView->m_BindItems.Add(pNode); | 331 pDocView->m_BindItems.Add(pNode); |
| 332 break; | 332 break; |
| 333 case XFA_ELEMENT_Validate: { | 333 case XFA_ELEMENT_Validate: { |
| 334 pNode->SetFlag(XFA_NODEFLAG_NeedsInitApp, false); | 334 pNode->SetFlag(XFA_NodeFlag_NeedsInitApp, false); |
| 335 } break; | 335 } break; |
| 336 default: | 336 default: |
| 337 break; | 337 break; |
| 338 } | 338 } |
| 339 } | 339 } |
| 340 | 340 |
| 341 void CXFA_FFNotify::OnValueChanging(CXFA_Node* pSender, XFA_ATTRIBUTE eAttr) { | 341 void CXFA_FFNotify::OnValueChanging(CXFA_Node* pSender, XFA_ATTRIBUTE eAttr) { |
| 342 if (eAttr != XFA_ATTRIBUTE_Presence) | 342 if (eAttr != XFA_ATTRIBUTE_Presence) |
| 343 return; | 343 return; |
| 344 | 344 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 return; | 506 return; |
| 507 | 507 |
| 508 CXFA_FFWidget* pWidget = XFA_GetWidgetFromLayoutItem(pSender); | 508 CXFA_FFWidget* pWidget = XFA_GetWidgetFromLayoutItem(pSender); |
| 509 if (!pWidget) | 509 if (!pWidget) |
| 510 return; | 510 return; |
| 511 | 511 |
| 512 pDocView->DeleteLayoutItem(pWidget); | 512 pDocView->DeleteLayoutItem(pWidget); |
| 513 m_pDoc->GetDocProvider()->WidgetPreRemove(pWidget, pWidget->GetDataAcc()); | 513 m_pDoc->GetDocProvider()->WidgetPreRemove(pWidget, pWidget->GetDataAcc()); |
| 514 pWidget->AddInvalidateRect(nullptr); | 514 pWidget->AddInvalidateRect(nullptr); |
| 515 } | 515 } |
| OLD | NEW |