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_annothandlermgr.h" | 7 #include "fpdfsdk/include/cpdfsdk_annothandlermgr.h" |
8 | 8 |
9 #include "core/fpdfdoc/include/cpdf_annot.h" | 9 #include "core/fpdfdoc/cpdf_annot.h" |
10 #include "fpdfsdk/include/cba_annotiterator.h" | 10 #include "fpdfsdk/include/cba_annotiterator.h" |
11 #include "fpdfsdk/include/cpdfsdk_annot.h" | 11 #include "fpdfsdk/include/cpdfsdk_annot.h" |
12 #include "fpdfsdk/include/cpdfsdk_baannot.h" | 12 #include "fpdfsdk/include/cpdfsdk_baannot.h" |
13 #include "fpdfsdk/include/cpdfsdk_baannothandler.h" | 13 #include "fpdfsdk/include/cpdfsdk_baannothandler.h" |
14 #include "fpdfsdk/include/cpdfsdk_datetime.h" | 14 #include "fpdfsdk/include/cpdfsdk_datetime.h" |
15 #include "fpdfsdk/include/cpdfsdk_document.h" | 15 #include "fpdfsdk/include/cpdfsdk_document.h" |
16 #include "fpdfsdk/include/cpdfsdk_environment.h" | 16 #include "fpdfsdk/include/cpdfsdk_environment.h" |
17 #include "fpdfsdk/include/cpdfsdk_pageview.h" | 17 #include "fpdfsdk/include/cpdfsdk_pageview.h" |
18 #include "fpdfsdk/include/cpdfsdk_widgethandler.h" | 18 #include "fpdfsdk/include/cpdfsdk_widgethandler.h" |
19 | 19 |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 bNext ? pWidgetIterator->MoveToNext() : pWidgetIterator->MoveToPrevious(); | 302 bNext ? pWidgetIterator->MoveToNext() : pWidgetIterator->MoveToPrevious(); |
303 if (!hNextFocus && pSDKAnnot) | 303 if (!hNextFocus && pSDKAnnot) |
304 hNextFocus = pWidgetIterator->MoveToFirst(); | 304 hNextFocus = pWidgetIterator->MoveToFirst(); |
305 | 305 |
306 return pPageView->GetAnnotByXFAWidget(hNextFocus); | 306 return pPageView->GetAnnotByXFAWidget(hNextFocus); |
307 #else // PDF_ENABLE_XFA | 307 #else // PDF_ENABLE_XFA |
308 CBA_AnnotIterator ai(pSDKAnnot->GetPageView(), CPDF_Annot::Subtype::WIDGET); | 308 CBA_AnnotIterator ai(pSDKAnnot->GetPageView(), CPDF_Annot::Subtype::WIDGET); |
309 return bNext ? ai.GetNextAnnot(pSDKAnnot) : ai.GetPrevAnnot(pSDKAnnot); | 309 return bNext ? ai.GetNextAnnot(pSDKAnnot) : ai.GetPrevAnnot(pSDKAnnot); |
310 #endif // PDF_ENABLE_XFA | 310 #endif // PDF_ENABLE_XFA |
311 } | 311 } |
OLD | NEW |