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/include/cpdf_annot.h" |
| 10 #include "fpdfsdk/include/cba_annotiterator.h" |
10 #include "fpdfsdk/include/cpdfsdk_annot.h" | 11 #include "fpdfsdk/include/cpdfsdk_annot.h" |
11 #include "fpdfsdk/include/cpdfsdk_baannot.h" | 12 #include "fpdfsdk/include/cpdfsdk_baannot.h" |
12 #include "fpdfsdk/include/cpdfsdk_bfannothandler.h" | 13 #include "fpdfsdk/include/cpdfsdk_bfannothandler.h" |
13 #include "fpdfsdk/include/cpdfsdk_datetime.h" | 14 #include "fpdfsdk/include/cpdfsdk_datetime.h" |
14 #include "fpdfsdk/include/fsdk_mgr.h" | 15 #include "fpdfsdk/include/fsdk_mgr.h" |
15 | 16 |
16 #ifdef PDF_ENABLE_XFA | 17 #ifdef PDF_ENABLE_XFA |
17 #include "fpdfsdk/include/cpdfsdk_xfaannothandler.h" | 18 #include "fpdfsdk/include/cpdfsdk_xfaannothandler.h" |
18 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_page.h" | 19 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_page.h" |
19 #include "xfa/fxfa/include/xfa_ffpageview.h" | 20 #include "xfa/fxfa/include/xfa_ffpageview.h" |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 bNext ? pWidgetIterator->MoveToNext() : pWidgetIterator->MoveToPrevious(); | 378 bNext ? pWidgetIterator->MoveToNext() : pWidgetIterator->MoveToPrevious(); |
378 if (!hNextFocus && pSDKAnnot) | 379 if (!hNextFocus && pSDKAnnot) |
379 hNextFocus = pWidgetIterator->MoveToFirst(); | 380 hNextFocus = pWidgetIterator->MoveToFirst(); |
380 | 381 |
381 return pPageView->GetAnnotByXFAWidget(hNextFocus); | 382 return pPageView->GetAnnotByXFAWidget(hNextFocus); |
382 #else // PDF_ENABLE_XFA | 383 #else // PDF_ENABLE_XFA |
383 CBA_AnnotIterator ai(pSDKAnnot->GetPageView(), "Widget", ""); | 384 CBA_AnnotIterator ai(pSDKAnnot->GetPageView(), "Widget", ""); |
384 return bNext ? ai.GetNextAnnot(pSDKAnnot) : ai.GetPrevAnnot(pSDKAnnot); | 385 return bNext ? ai.GetNextAnnot(pSDKAnnot) : ai.GetPrevAnnot(pSDKAnnot); |
385 #endif // PDF_ENABLE_XFA | 386 #endif // PDF_ENABLE_XFA |
386 } | 387 } |
OLD | NEW |