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 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
878 CXFA_WidgetAcc* CXFA_WidgetAccIterator::MoveToFirst() { | 878 CXFA_WidgetAcc* CXFA_WidgetAccIterator::MoveToFirst() { |
879 return NULL; | 879 return NULL; |
880 } | 880 } |
881 CXFA_WidgetAcc* CXFA_WidgetAccIterator::MoveToLast() { | 881 CXFA_WidgetAcc* CXFA_WidgetAccIterator::MoveToLast() { |
882 return NULL; | 882 return NULL; |
883 } | 883 } |
884 CXFA_WidgetAcc* CXFA_WidgetAccIterator::MoveToNext() { | 884 CXFA_WidgetAcc* CXFA_WidgetAccIterator::MoveToNext() { |
885 CXFA_Node* pItem = m_pCurWidgetAcc ? m_ContentIterator.MoveToNext() | 885 CXFA_Node* pItem = m_pCurWidgetAcc ? m_ContentIterator.MoveToNext() |
886 : m_ContentIterator.GetCurrent(); | 886 : m_ContentIterator.GetCurrent(); |
887 while (pItem) { | 887 while (pItem) { |
888 if ((m_pCurWidgetAcc = (CXFA_WidgetAcc*)pItem->GetWidgetData())) { | 888 m_pCurWidgetAcc = (CXFA_WidgetAcc*)pItem->GetWidgetData(); |
| 889 if (m_pCurWidgetAcc) |
889 return m_pCurWidgetAcc; | 890 return m_pCurWidgetAcc; |
890 } | |
891 pItem = m_ContentIterator.MoveToNext(); | 891 pItem = m_ContentIterator.MoveToNext(); |
892 } | 892 } |
893 return NULL; | 893 return NULL; |
894 } | 894 } |
895 CXFA_WidgetAcc* CXFA_WidgetAccIterator::MoveToPrevious() { | 895 CXFA_WidgetAcc* CXFA_WidgetAccIterator::MoveToPrevious() { |
896 return NULL; | 896 return NULL; |
897 } | 897 } |
898 CXFA_WidgetAcc* CXFA_WidgetAccIterator::GetCurrentWidgetAcc() { | 898 CXFA_WidgetAcc* CXFA_WidgetAccIterator::GetCurrentWidgetAcc() { |
899 return NULL; | 899 return NULL; |
900 } | 900 } |
901 FX_BOOL CXFA_WidgetAccIterator::SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget) { | 901 FX_BOOL CXFA_WidgetAccIterator::SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget) { |
902 return FALSE; | 902 return FALSE; |
903 } | 903 } |
904 void CXFA_WidgetAccIterator::SkipTree() { | 904 void CXFA_WidgetAccIterator::SkipTree() { |
905 m_ContentIterator.SkipChildrenAndMoveToNext(); | 905 m_ContentIterator.SkipChildrenAndMoveToNext(); |
906 m_pCurWidgetAcc = NULL; | 906 m_pCurWidgetAcc = NULL; |
907 } | 907 } |
OLD | NEW |