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 <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "../include/fsdk_define.h" | |
10 #include "../include/fpdfxfa/fpdfxfa_doc.h" | 9 #include "../include/fpdfxfa/fpdfxfa_doc.h" |
11 #include "../include/fpdfxfa/fpdfxfa_util.h" | 10 #include "../include/fpdfxfa/fpdfxfa_util.h" |
12 #include "../include/fsdk_mgr.h" | 11 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" |
13 #include "../include/formfiller/FFL_FormFiller.h" | 12 #include "fpdfsdk/include/fsdk_annothandler.h" |
14 #include "../include/fsdk_annothandler.h" | 13 #include "fpdfsdk/include/fsdk_define.h" |
| 14 #include "fpdfsdk/include/fsdk_mgr.h" |
15 | 15 |
16 CPDFSDK_AnnotHandlerMgr::CPDFSDK_AnnotHandlerMgr(CPDFDoc_Environment* pApp) { | 16 CPDFSDK_AnnotHandlerMgr::CPDFSDK_AnnotHandlerMgr(CPDFDoc_Environment* pApp) { |
17 m_pApp = pApp; | 17 m_pApp = pApp; |
18 | 18 |
19 CPDFSDK_BFAnnotHandler* pHandler = new CPDFSDK_BFAnnotHandler(m_pApp); | 19 CPDFSDK_BFAnnotHandler* pHandler = new CPDFSDK_BFAnnotHandler(m_pApp); |
20 pHandler->SetFormFiller(m_pApp->GetIFormFiller()); | 20 pHandler->SetFormFiller(m_pApp->GetIFormFiller()); |
21 RegisterAnnotHandler(pHandler); | 21 RegisterAnnotHandler(pHandler); |
22 | 22 |
23 CPDFSDK_XFAAnnotHandler* pXFAAnnotHandler = | 23 CPDFSDK_XFAAnnotHandler* pXFAAnnotHandler = |
24 new CPDFSDK_XFAAnnotHandler(m_pApp); | 24 new CPDFSDK_XFAAnnotHandler(m_pApp); |
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1188 | 1188 |
1189 CPDFSDK_Annot* CPDFSDK_AnnotIterator::PrevAnnot() { | 1189 CPDFSDK_Annot* CPDFSDK_AnnotIterator::PrevAnnot() { |
1190 if (m_pos < m_iteratorAnnotList.size()) | 1190 if (m_pos < m_iteratorAnnotList.size()) |
1191 return m_iteratorAnnotList[m_iteratorAnnotList.size() - ++m_pos]; | 1191 return m_iteratorAnnotList[m_iteratorAnnotList.size() - ++m_pos]; |
1192 return nullptr; | 1192 return nullptr; |
1193 } | 1193 } |
1194 | 1194 |
1195 CPDFSDK_Annot* CPDFSDK_AnnotIterator::Next() { | 1195 CPDFSDK_Annot* CPDFSDK_AnnotIterator::Next() { |
1196 return m_bReverse ? PrevAnnot() : NextAnnot(); | 1196 return m_bReverse ? PrevAnnot() : NextAnnot(); |
1197 } | 1197 } |
OLD | NEW |