| 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 #ifndef FPDFSDK_INCLUDE_FSDK_MGR_H_ | 7 #ifndef FPDFSDK_INCLUDE_FSDK_MGR_H_ |
| 8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_ | 8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 return m_pSDKDoc->KillFocusAnnot(nFlag); | 550 return m_pSDKDoc->KillFocusAnnot(nFlag); |
| 551 } | 551 } |
| 552 void KillFocusAnnotIfNeeded(); | 552 void KillFocusAnnotIfNeeded(); |
| 553 FX_BOOL Annot_HasAppearance(CPDF_Annot* pAnnot); | 553 FX_BOOL Annot_HasAppearance(CPDF_Annot* pAnnot); |
| 554 | 554 |
| 555 CPDFSDK_Annot* AddAnnot(CPDF_Dictionary* pDict); | 555 CPDFSDK_Annot* AddAnnot(CPDF_Dictionary* pDict); |
| 556 CPDFSDK_Annot* AddAnnot(const FX_CHAR* lpSubType, CPDF_Dictionary* pDict); | 556 CPDFSDK_Annot* AddAnnot(const FX_CHAR* lpSubType, CPDF_Dictionary* pDict); |
| 557 CPDFSDK_Annot* AddAnnot(CPDF_Annot* pPDFAnnot); | 557 CPDFSDK_Annot* AddAnnot(CPDF_Annot* pPDFAnnot); |
| 558 CPDFSDK_Annot* AddAnnot(IXFA_Widget* pPDFAnnot); | 558 CPDFSDK_Annot* AddAnnot(IXFA_Widget* pPDFAnnot); |
| 559 FX_BOOL DeleteAnnot(CPDFSDK_Annot* pAnnot); | 559 FX_BOOL DeleteAnnot(CPDFSDK_Annot* pAnnot); |
| 560 int CountAnnots() const; | 560 size_t CountAnnots() const; |
| 561 CPDFSDK_Annot* GetAnnot(size_t nIndex); | 561 CPDFSDK_Annot* GetAnnot(size_t nIndex); |
| 562 CPDFSDK_Annot* GetAnnotByDict(CPDF_Dictionary* pDict); | 562 CPDFSDK_Annot* GetAnnotByDict(CPDF_Dictionary* pDict); |
| 563 CPDFSDK_Annot* GetAnnotByXFAWidget(IXFA_Widget* hWidget); | 563 CPDFSDK_Annot* GetAnnotByXFAWidget(IXFA_Widget* hWidget); |
| 564 CPDFXFA_Page* GetPDFXFAPage() { return m_page; } | 564 CPDFXFA_Page* GetPDFXFAPage() { return m_page; } |
| 565 CPDF_Page* GetPDFPage(); | 565 CPDF_Page* GetPDFPage(); |
| 566 CPDF_Document* GetPDFDocument(); | 566 CPDF_Document* GetPDFDocument(); |
| 567 CPDFSDK_Document* GetSDKDocument() { return m_pSDKDoc; } | 567 CPDFSDK_Document* GetSDKDocument() { return m_pSDKDoc; } |
| 568 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_UINT nFlag); | 568 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_UINT nFlag); |
| 569 FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_UINT nFlag); | 569 FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_UINT nFlag); |
| 570 FX_BOOL OnRButtonDown(const CPDF_Point& point, FX_UINT nFlag); | 570 FX_BOOL OnRButtonDown(const CPDF_Point& point, FX_UINT nFlag); |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 } | 677 } |
| 678 | 678 |
| 679 if (nStartPos < m) | 679 if (nStartPos < m) |
| 680 QuickSort(nStartPos, m, bAscend, pCompare); | 680 QuickSort(nStartPos, m, bAscend, pCompare); |
| 681 if (nStopPos > m) | 681 if (nStopPos > m) |
| 682 QuickSort(m, nStopPos, bAscend, pCompare); | 682 QuickSort(m, nStopPos, bAscend, pCompare); |
| 683 } | 683 } |
| 684 }; | 684 }; |
| 685 | 685 |
| 686 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ | 686 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ |
| OLD | NEW |