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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 } | 598 } |
599 | 599 |
600 int GetPageIndex() const; | 600 int GetPageIndex() const; |
601 void LoadFXAnnots(); | 601 void LoadFXAnnots(); |
602 void ClearFXAnnots(); | 602 void ClearFXAnnots(); |
603 void SetValid(FX_BOOL bValid) { m_bValid = bValid; } | 603 void SetValid(FX_BOOL bValid) { m_bValid = bValid; } |
604 FX_BOOL IsValid() { return m_bValid; } | 604 FX_BOOL IsValid() { return m_bValid; } |
605 void SetLock(FX_BOOL bLocked) { m_bLocked = bLocked; } | 605 void SetLock(FX_BOOL bLocked) { m_bLocked = bLocked; } |
606 FX_BOOL IsLocked() { return m_bLocked; } | 606 FX_BOOL IsLocked() { return m_bLocked; } |
607 #ifndef PDF_ENABLE_XFA | 607 #ifndef PDF_ENABLE_XFA |
608 void TakeOverPage() { m_bTakeOverPage = TRUE; } | 608 bool OwnsPage() const { return m_bOwnsPage; } |
| 609 void TakePageOwnership() { m_bOwnsPage = true; } |
609 #endif // PDF_ENABLE_XFA | 610 #endif // PDF_ENABLE_XFA |
610 | 611 |
611 private: | 612 private: |
612 int GetPageIndexForStaticPDF() const; | 613 int GetPageIndexForStaticPDF() const; |
613 | 614 |
614 CFX_Matrix m_curMatrix; | 615 CFX_Matrix m_curMatrix; |
615 UnderlyingPageType* const m_page; | 616 UnderlyingPageType* const m_page; |
616 std::unique_ptr<CPDF_AnnotList> m_pAnnotList; | 617 std::unique_ptr<CPDF_AnnotList> m_pAnnotList; |
617 std::vector<CPDFSDK_Annot*> m_fxAnnotArray; | 618 std::vector<CPDFSDK_Annot*> m_fxAnnotArray; |
618 CPDFSDK_Document* const m_pSDKDoc; | 619 CPDFSDK_Document* const m_pSDKDoc; |
619 CPDFSDK_Annot* m_CaptureWidget; | 620 CPDFSDK_Annot* m_CaptureWidget; |
620 #ifndef PDF_ENABLE_XFA | 621 #ifndef PDF_ENABLE_XFA |
621 FX_BOOL m_bTakeOverPage; | 622 bool m_bOwnsPage; |
622 #endif // PDF_ENABLE_XFA | 623 #endif // PDF_ENABLE_XFA |
623 FX_BOOL m_bEnterWidget; | 624 FX_BOOL m_bEnterWidget; |
624 FX_BOOL m_bExitWidget; | 625 FX_BOOL m_bExitWidget; |
625 FX_BOOL m_bOnWidget; | 626 FX_BOOL m_bOnWidget; |
626 FX_BOOL m_bValid; | 627 FX_BOOL m_bValid; |
627 FX_BOOL m_bLocked; | 628 FX_BOOL m_bLocked; |
628 }; | 629 }; |
629 | 630 |
630 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ | 631 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ |
OLD | NEW |