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/include/xfa_ffdocview.h" | 7 #include "xfa/fxfa/include/xfa_ffdocview.h" |
8 | 8 |
9 #include "core/fxcrt/include/fx_ext.h" | 9 #include "core/fxcrt/include/fx_ext.h" |
10 #include "xfa/fxfa/app/xfa_ffbarcode.h" | 10 #include "xfa/fxfa/app/xfa_ffbarcode.h" |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 return NULL; | 523 return NULL; |
524 } | 524 } |
525 if (resoveNodeRS.dwFlags == XFA_RESOVENODE_RSTYPE_Nodes) { | 525 if (resoveNodeRS.dwFlags == XFA_RESOVENODE_RSTYPE_Nodes) { |
526 CXFA_Node* pNode = resoveNodeRS.nodes[0]->AsNode(); | 526 CXFA_Node* pNode = resoveNodeRS.nodes[0]->AsNode(); |
527 if (pNode) { | 527 if (pNode) { |
528 return (CXFA_WidgetAcc*)pNode->GetWidgetData(); | 528 return (CXFA_WidgetAcc*)pNode->GetWidgetData(); |
529 } | 529 } |
530 } | 530 } |
531 return NULL; | 531 return NULL; |
532 } | 532 } |
| 533 |
533 void CXFA_FFDocView::OnPageEvent(CXFA_ContainerLayoutItem* pSender, | 534 void CXFA_FFDocView::OnPageEvent(CXFA_ContainerLayoutItem* pSender, |
534 XFA_PAGEEVENT eEvent, | 535 XFA_PAGEEVENT eEvent, |
535 int32_t iPageIndex) { | 536 int32_t iPageIndex) { |
536 CXFA_FFPageView* pFFPageView = static_cast<CXFA_FFPageView*>(pSender); | 537 CXFA_FFPageView* pFFPageView = static_cast<CXFA_FFPageView*>(pSender); |
537 if (eEvent == XFA_PAGEEVENT_PageRemoved) { | 538 if (eEvent == XFA_PAGEEVENT_PageRemoved) { |
538 m_pDoc->GetDocProvider()->PageViewEvent(pFFPageView, | 539 m_pDoc->GetDocProvider()->PageViewEvent(pFFPageView, |
539 XFA_PAGEVIEWEVENT_PostRemoved); | 540 XFA_PAGEVIEWEVENT_PostRemoved); |
540 return; | 541 return; |
541 } | 542 } |
542 m_pDoc->GetDocProvider()->PageViewEvent(pFFPageView, | 543 m_pDoc->GetDocProvider()->PageViewEvent(pFFPageView, |
543 XFA_PAGEVIEWEVENT_PostAdded); | 544 XFA_PAGEVIEWEVENT_PostAdded); |
544 pFFPageView->LoadPageView(); | |
545 } | 545 } |
| 546 |
546 void CXFA_FFDocView::LockUpdate() { | 547 void CXFA_FFDocView::LockUpdate() { |
547 m_iLock++; | 548 m_iLock++; |
548 } | 549 } |
549 void CXFA_FFDocView::UnlockUpdate() { | 550 void CXFA_FFDocView::UnlockUpdate() { |
550 m_iLock--; | 551 m_iLock--; |
551 } | 552 } |
552 FX_BOOL CXFA_FFDocView::IsUpdateLocked() { | 553 FX_BOOL CXFA_FFDocView::IsUpdateLocked() { |
553 return m_iLock; | 554 return m_iLock; |
554 } | 555 } |
555 void CXFA_FFDocView::ClearInvalidateList() { | 556 void CXFA_FFDocView::ClearInvalidateList() { |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 CXFA_WidgetAcc* CXFA_WidgetAccIterator::GetCurrentWidgetAcc() { | 918 CXFA_WidgetAcc* CXFA_WidgetAccIterator::GetCurrentWidgetAcc() { |
918 return NULL; | 919 return NULL; |
919 } | 920 } |
920 FX_BOOL CXFA_WidgetAccIterator::SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget) { | 921 FX_BOOL CXFA_WidgetAccIterator::SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget) { |
921 return FALSE; | 922 return FALSE; |
922 } | 923 } |
923 void CXFA_WidgetAccIterator::SkipTree() { | 924 void CXFA_WidgetAccIterator::SkipTree() { |
924 m_ContentIterator.SkipChildrenAndMoveToNext(); | 925 m_ContentIterator.SkipChildrenAndMoveToNext(); |
925 m_pCurWidgetAcc = NULL; | 926 m_pCurWidgetAcc = NULL; |
926 } | 927 } |
OLD | NEW |