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" | 9 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" |
10 #include "../include/fsdk_mgr.h" | 10 #include "fpdfsdk/include/fsdk_annothandler.h" |
11 #include "../include/formfiller/FFL_FormFiller.h" | 11 #include "fpdfsdk/include/fsdk_define.h" |
12 #include "../include/fsdk_annothandler.h" | 12 #include "fpdfsdk/include/fsdk_mgr.h" |
13 | 13 |
14 CPDFSDK_AnnotHandlerMgr::CPDFSDK_AnnotHandlerMgr(CPDFDoc_Environment* pApp) { | 14 CPDFSDK_AnnotHandlerMgr::CPDFSDK_AnnotHandlerMgr(CPDFDoc_Environment* pApp) { |
15 m_pApp = pApp; | 15 m_pApp = pApp; |
16 | 16 |
17 CPDFSDK_BFAnnotHandler* pHandler = new CPDFSDK_BFAnnotHandler(m_pApp); | 17 CPDFSDK_BFAnnotHandler* pHandler = new CPDFSDK_BFAnnotHandler(m_pApp); |
18 pHandler->SetFormFiller(m_pApp->GetIFormFiller()); | 18 pHandler->SetFormFiller(m_pApp->GetIFormFiller()); |
19 RegisterAnnotHandler(pHandler); | 19 RegisterAnnotHandler(pHandler); |
20 } | 20 } |
21 | 21 |
22 CPDFSDK_AnnotHandlerMgr::~CPDFSDK_AnnotHandlerMgr() { | 22 CPDFSDK_AnnotHandlerMgr::~CPDFSDK_AnnotHandlerMgr() { |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 | 687 |
688 CPDFSDK_Annot* CPDFSDK_AnnotIterator::PrevAnnot() { | 688 CPDFSDK_Annot* CPDFSDK_AnnotIterator::PrevAnnot() { |
689 if (m_pos < m_iteratorAnnotList.size()) | 689 if (m_pos < m_iteratorAnnotList.size()) |
690 return m_iteratorAnnotList[m_iteratorAnnotList.size() - ++m_pos]; | 690 return m_iteratorAnnotList[m_iteratorAnnotList.size() - ++m_pos]; |
691 return nullptr; | 691 return nullptr; |
692 } | 692 } |
693 | 693 |
694 CPDFSDK_Annot* CPDFSDK_AnnotIterator::Next() { | 694 CPDFSDK_Annot* CPDFSDK_AnnotIterator::Next() { |
695 return m_bReverse ? PrevAnnot() : NextAnnot(); | 695 return m_bReverse ? PrevAnnot() : NextAnnot(); |
696 } | 696 } |
OLD | NEW |