| 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 "../../public/fpdf_ext.h" | 7 #include "../../public/fpdf_ext.h" |
| 8 #include "../include/fsdk_define.h" | 8 #include "../include/fsdk_define.h" |
| 9 #include "../include/fpdfxfa/fpdfxfa_doc.h" | 9 #include "../include/fpdfxfa/fpdfxfa_doc.h" |
| 10 #include "../include/fpdfxfa/fpdfxfa_page.h" | 10 #include "../include/fpdfxfa/fpdfxfa_page.h" |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 } | 392 } |
| 393 | 393 |
| 394 CPDFSDK_AnnotHandlerMgr* CPDFDoc_Environment::GetAnnotHandlerMgr() { | 394 CPDFSDK_AnnotHandlerMgr* CPDFDoc_Environment::GetAnnotHandlerMgr() { |
| 395 if (!m_pAnnotHandlerMgr) | 395 if (!m_pAnnotHandlerMgr) |
| 396 m_pAnnotHandlerMgr = new CPDFSDK_AnnotHandlerMgr(this); | 396 m_pAnnotHandlerMgr = new CPDFSDK_AnnotHandlerMgr(this); |
| 397 return m_pAnnotHandlerMgr; | 397 return m_pAnnotHandlerMgr; |
| 398 } | 398 } |
| 399 | 399 |
| 400 CPDFSDK_ActionHandler* CPDFDoc_Environment::GetActionHander() { | 400 CPDFSDK_ActionHandler* CPDFDoc_Environment::GetActionHander() { |
| 401 if (!m_pActionHandler) | 401 if (!m_pActionHandler) |
| 402 m_pActionHandler = new CPDFSDK_ActionHandler(this); | 402 m_pActionHandler = new CPDFSDK_ActionHandler(); |
| 403 return m_pActionHandler; | 403 return m_pActionHandler; |
| 404 } | 404 } |
| 405 | 405 |
| 406 CFFL_IFormFiller* CPDFDoc_Environment::GetIFormFiller() { | 406 CFFL_IFormFiller* CPDFDoc_Environment::GetIFormFiller() { |
| 407 if (!m_pIFormFiller) | 407 if (!m_pIFormFiller) |
| 408 m_pIFormFiller = new CFFL_IFormFiller(this); | 408 m_pIFormFiller = new CFFL_IFormFiller(this); |
| 409 return m_pIFormFiller; | 409 return m_pIFormFiller; |
| 410 } | 410 } |
| 411 | 411 |
| 412 CPDFSDK_Document::CPDFSDK_Document(CPDFXFA_Document* pDoc, | 412 CPDFSDK_Document::CPDFSDK_Document(CPDFXFA_Document* pDoc, |
| (...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1188 if (!pFocusAnnot) | 1188 if (!pFocusAnnot) |
| 1189 return NULL; | 1189 return NULL; |
| 1190 | 1190 |
| 1191 for (int i = 0; i < m_fxAnnotArray.GetSize(); i++) { | 1191 for (int i = 0; i < m_fxAnnotArray.GetSize(); i++) { |
| 1192 CPDFSDK_Annot* pAnnot = (CPDFSDK_Annot*)m_fxAnnotArray.GetAt(i); | 1192 CPDFSDK_Annot* pAnnot = (CPDFSDK_Annot*)m_fxAnnotArray.GetAt(i); |
| 1193 if (pAnnot == pFocusAnnot) | 1193 if (pAnnot == pFocusAnnot) |
| 1194 return pAnnot; | 1194 return pAnnot; |
| 1195 } | 1195 } |
| 1196 return NULL; | 1196 return NULL; |
| 1197 } | 1197 } |
| OLD | NEW |