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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 } | 301 } |
302 FX_BOOL KillFocusAnnot(FX_UINT nFlag = 0) { | 302 FX_BOOL KillFocusAnnot(FX_UINT nFlag = 0) { |
303 return m_pSDKDoc->KillFocusAnnot(nFlag); | 303 return m_pSDKDoc->KillFocusAnnot(nFlag); |
304 } | 304 } |
305 FX_BOOL Annot_HasAppearance(CPDF_Annot* pAnnot); | 305 FX_BOOL Annot_HasAppearance(CPDF_Annot* pAnnot); |
306 | 306 |
307 CPDFSDK_Annot* AddAnnot(CPDF_Dictionary* pDict); | 307 CPDFSDK_Annot* AddAnnot(CPDF_Dictionary* pDict); |
308 CPDFSDK_Annot* AddAnnot(const FX_CHAR* lpSubType, CPDF_Dictionary* pDict); | 308 CPDFSDK_Annot* AddAnnot(const FX_CHAR* lpSubType, CPDF_Dictionary* pDict); |
309 CPDFSDK_Annot* AddAnnot(CPDF_Annot* pPDFAnnot); | 309 CPDFSDK_Annot* AddAnnot(CPDF_Annot* pPDFAnnot); |
310 FX_BOOL DeleteAnnot(CPDFSDK_Annot* pAnnot); | 310 FX_BOOL DeleteAnnot(CPDFSDK_Annot* pAnnot); |
311 int CountAnnots() const; | 311 size_t CountAnnots() const; |
312 CPDFSDK_Annot* GetAnnot(size_t nIndex); | 312 CPDFSDK_Annot* GetAnnot(size_t nIndex); |
313 CPDFSDK_Annot* GetAnnotByDict(CPDF_Dictionary* pDict); | 313 CPDFSDK_Annot* GetAnnotByDict(CPDF_Dictionary* pDict); |
314 CPDF_Page* GetPDFPage() { return m_page; } | 314 CPDF_Page* GetPDFPage() { return m_page; } |
315 CPDF_Document* GetPDFDocument(); | 315 CPDF_Document* GetPDFDocument(); |
316 CPDFSDK_Document* GetSDKDocument() { return m_pSDKDoc; } | 316 CPDFSDK_Document* GetSDKDocument() { return m_pSDKDoc; } |
317 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_UINT nFlag); | 317 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_UINT nFlag); |
318 FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_UINT nFlag); | 318 FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_UINT nFlag); |
319 FX_BOOL OnChar(int nChar, FX_UINT nFlag); | 319 FX_BOOL OnChar(int nChar, FX_UINT nFlag); |
320 FX_BOOL OnKeyDown(int nKeyCode, int nFlag); | 320 FX_BOOL OnKeyDown(int nKeyCode, int nFlag); |
321 FX_BOOL OnKeyUp(int nKeyCode, int nFlag); | 321 FX_BOOL OnKeyUp(int nKeyCode, int nFlag); |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 } | 426 } |
427 | 427 |
428 if (nStartPos < m) | 428 if (nStartPos < m) |
429 QuickSort(nStartPos, m, bAscend, pCompare); | 429 QuickSort(nStartPos, m, bAscend, pCompare); |
430 if (nStopPos > m) | 430 if (nStopPos > m) |
431 QuickSort(m, nStopPos, bAscend, pCompare); | 431 QuickSort(m, nStopPos, bAscend, pCompare); |
432 } | 432 } |
433 }; | 433 }; |
434 | 434 |
435 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ | 435 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ |
OLD | NEW |