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