| 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/fsdk_mgr.h" | 9 #include "../include/fsdk_mgr.h" |
| 10 #include "../include/formfiller/FFL_FormFiller.h" | 10 #include "../include/formfiller/FFL_FormFiller.h" |
| (...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 { | 725 { |
| 726 pAnnotHandler->Annot_OnCreate(pSDKAnnot); | 726 pAnnotHandler->Annot_OnCreate(pSDKAnnot); |
| 727 | 727 |
| 728 } | 728 } |
| 729 | 729 |
| 730 return pSDKAnnot; | 730 return pSDKAnnot; |
| 731 } | 731 } |
| 732 | 732 |
| 733 CPDFSDK_Annot* CPDFSDK_PageView::AddAnnot(CPDF_Dictionary * pDict) | 733 CPDFSDK_Annot* CPDFSDK_PageView::AddAnnot(CPDF_Dictionary * pDict) |
| 734 { | 734 { |
| 735 return pDict ? AddAnnot(pDict->GetString("Subtype"), pDict) : nullptr; | 735 return pDict ? AddAnnot(pDict->GetStringAt("Subtype"), pDict) : nullptr; |
| 736 } | 736 } |
| 737 | 737 |
| 738 CPDFSDK_Annot* CPDFSDK_PageView::AddAnnot(const FX_CHAR* lpSubType,CPDF_Dictiona
ry * pDict) | 738 CPDFSDK_Annot* CPDFSDK_PageView::AddAnnot(const FX_CHAR* lpSubType,CPDF_Dictiona
ry * pDict) |
| 739 { | 739 { |
| 740 return NULL; | 740 return NULL; |
| 741 } | 741 } |
| 742 | 742 |
| 743 FX_BOOL CPDFSDK_PageView::DeleteAnnot(CPDFSDK_Annot* pAnnot) | 743 FX_BOOL CPDFSDK_PageView::DeleteAnnot(CPDFSDK_Annot* pAnnot) |
| 744 { | 744 { |
| 745 return FALSE; | 745 return FALSE; |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1011 | 1011 |
| 1012 for(int i=0; i<m_fxAnnotArray.GetSize(); i++) | 1012 for(int i=0; i<m_fxAnnotArray.GetSize(); i++) |
| 1013 { | 1013 { |
| 1014 CPDFSDK_Annot* pAnnot = (CPDFSDK_Annot*)m_fxAnnotArray.GetAt(i); | 1014 CPDFSDK_Annot* pAnnot = (CPDFSDK_Annot*)m_fxAnnotArray.GetAt(i); |
| 1015 if(pAnnot == pFocusAnnot) | 1015 if(pAnnot == pFocusAnnot) |
| 1016 return pAnnot; | 1016 return pAnnot; |
| 1017 } | 1017 } |
| 1018 return NULL; | 1018 return NULL; |
| 1019 } | 1019 } |
| 1020 | 1020 |
| OLD | NEW |