Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Side by Side Diff: fpdfsdk/include/fsdk_mgr.h

Issue 1519693002: Merge to XFA: Remove CFX_AffineMatrix/CPDF_Matrix (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: XFA-specific changes Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 FX_BOOL m_bChangeMask; 560 FX_BOOL m_bChangeMask;
561 FX_BOOL m_bBeingDestroyed; 561 FX_BOOL m_bBeingDestroyed;
562 }; 562 };
563 class CPDFSDK_PageView final { 563 class CPDFSDK_PageView final {
564 public: 564 public:
565 CPDFSDK_PageView(CPDFSDK_Document* pSDKDoc, UnderlyingPageType* page); 565 CPDFSDK_PageView(CPDFSDK_Document* pSDKDoc, UnderlyingPageType* page);
566 ~CPDFSDK_PageView(); 566 ~CPDFSDK_PageView();
567 567
568 #ifdef PDF_ENABLE_XFA 568 #ifdef PDF_ENABLE_XFA
569 void PageView_OnDraw(CFX_RenderDevice* pDevice, 569 void PageView_OnDraw(CFX_RenderDevice* pDevice,
570 CPDF_Matrix* pUser2Device, 570 CFX_Matrix* pUser2Device,
571 CPDF_RenderOptions* pOptions, 571 CPDF_RenderOptions* pOptions,
572 const FX_RECT& pClip); 572 const FX_RECT& pClip);
573 #else // PDF_ENABLE_XFA 573 #else // PDF_ENABLE_XFA
574 void PageView_OnDraw(CFX_RenderDevice* pDevice, 574 void PageView_OnDraw(CFX_RenderDevice* pDevice,
575 CPDF_Matrix* pUser2Device, 575 CFX_Matrix* pUser2Device,
576 CPDF_RenderOptions* pOptions); 576 CPDF_RenderOptions* pOptions);
577 #endif // PDF_ENABLE_XFA 577 #endif // PDF_ENABLE_XFA
578 578
579 const CPDF_Annot* GetPDFAnnotAtPoint(FX_FLOAT pageX, FX_FLOAT pageY); 579 const CPDF_Annot* GetPDFAnnotAtPoint(FX_FLOAT pageX, FX_FLOAT pageY);
580 CPDFSDK_Annot* GetFXAnnotAtPoint(FX_FLOAT pageX, FX_FLOAT pageY); 580 CPDFSDK_Annot* GetFXAnnotAtPoint(FX_FLOAT pageX, FX_FLOAT pageY);
581 const CPDF_Annot* GetPDFWidgetAtPoint(FX_FLOAT pageX, FX_FLOAT pageY); 581 const CPDF_Annot* GetPDFWidgetAtPoint(FX_FLOAT pageX, FX_FLOAT pageY);
582 CPDFSDK_Annot* GetFXWidgetAtPoint(FX_FLOAT pageX, FX_FLOAT pageY); 582 CPDFSDK_Annot* GetFXWidgetAtPoint(FX_FLOAT pageX, FX_FLOAT pageY);
583 CPDFSDK_Annot* GetFocusAnnot(); 583 CPDFSDK_Annot* GetFocusAnnot();
584 void SetFocusAnnot(CPDFSDK_Annot* pSDKAnnot, FX_UINT nFlag = 0) { 584 void SetFocusAnnot(CPDFSDK_Annot* pSDKAnnot, FX_UINT nFlag = 0) {
585 m_pSDKDoc->SetFocusAnnot(pSDKAnnot, nFlag); 585 m_pSDKDoc->SetFocusAnnot(pSDKAnnot, nFlag);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 FX_BOOL OnChar(int nChar, FX_UINT nFlag); 619 FX_BOOL OnChar(int nChar, FX_UINT nFlag);
620 FX_BOOL OnKeyDown(int nKeyCode, int nFlag); 620 FX_BOOL OnKeyDown(int nKeyCode, int nFlag);
621 FX_BOOL OnKeyUp(int nKeyCode, int nFlag); 621 FX_BOOL OnKeyUp(int nKeyCode, int nFlag);
622 622
623 FX_BOOL OnMouseMove(const CPDF_Point& point, int nFlag); 623 FX_BOOL OnMouseMove(const CPDF_Point& point, int nFlag);
624 FX_BOOL OnMouseWheel(double deltaX, 624 FX_BOOL OnMouseWheel(double deltaX,
625 double deltaY, 625 double deltaY,
626 const CPDF_Point& point, 626 const CPDF_Point& point,
627 int nFlag); 627 int nFlag);
628 bool IsValidAnnot(const CPDF_Annot* p) const; 628 bool IsValidAnnot(const CPDF_Annot* p) const;
629 void GetCurrentMatrix(CPDF_Matrix& matrix) { matrix = m_curMatrix; } 629 void GetCurrentMatrix(CFX_Matrix& matrix) { matrix = m_curMatrix; }
630 void UpdateRects(CFX_RectArray& rects); 630 void UpdateRects(CFX_RectArray& rects);
631 void UpdateView(CPDFSDK_Annot* pAnnot); 631 void UpdateView(CPDFSDK_Annot* pAnnot);
632 const std::vector<CPDFSDK_Annot*>& GetAnnotList() const { 632 const std::vector<CPDFSDK_Annot*>& GetAnnotList() const {
633 return m_fxAnnotArray; 633 return m_fxAnnotArray;
634 } 634 }
635 635
636 int GetPageIndex(); 636 int GetPageIndex();
637 void LoadFXAnnots(); 637 void LoadFXAnnots();
638 void SetValid(FX_BOOL bValid) { m_bValid = bValid; } 638 void SetValid(FX_BOOL bValid) { m_bValid = bValid; }
639 FX_BOOL IsValid() { return m_bValid; } 639 FX_BOOL IsValid() { return m_bValid; }
640 void SetLock(FX_BOOL bLocked) { m_bLocked = bLocked; } 640 void SetLock(FX_BOOL bLocked) { m_bLocked = bLocked; }
641 FX_BOOL IsLocked() { return m_bLocked; } 641 FX_BOOL IsLocked() { return m_bLocked; }
642 #ifndef PDF_ENABLE_XFA 642 #ifndef PDF_ENABLE_XFA
643 void TakeOverPage() { m_bTakeOverPage = TRUE; } 643 void TakeOverPage() { m_bTakeOverPage = TRUE; }
644 #endif // PDF_ENABLE_XFA 644 #endif // PDF_ENABLE_XFA
645 645
646 private: 646 private:
647 void PageView_OnHighlightFormFields(CFX_RenderDevice* pDevice, 647 void PageView_OnHighlightFormFields(CFX_RenderDevice* pDevice,
648 CPDFSDK_Widget* pWidget); 648 CPDFSDK_Widget* pWidget);
649 649
650 CPDF_Matrix m_curMatrix; 650 CFX_Matrix m_curMatrix;
651 UnderlyingPageType* m_page; 651 UnderlyingPageType* m_page;
652 nonstd::unique_ptr<CPDF_AnnotList> m_pAnnotList; 652 nonstd::unique_ptr<CPDF_AnnotList> m_pAnnotList;
653 std::vector<CPDFSDK_Annot*> m_fxAnnotArray; 653 std::vector<CPDFSDK_Annot*> m_fxAnnotArray;
654 CPDFSDK_Document* m_pSDKDoc; 654 CPDFSDK_Document* m_pSDKDoc;
655 #ifdef PDF_ENABLE_XFA 655 #ifdef PDF_ENABLE_XFA
656 CPDFSDK_Annot* m_CaptureWidget; 656 CPDFSDK_Annot* m_CaptureWidget;
657 #else // PDF_ENABLE_XFA 657 #else // PDF_ENABLE_XFA
658 CPDFSDK_Widget* m_CaptureWidget; 658 CPDFSDK_Widget* m_CaptureWidget;
659 FX_BOOL m_bTakeOverPage; 659 FX_BOOL m_bTakeOverPage;
660 #endif // PDF_ENABLE_XFA 660 #endif // PDF_ENABLE_XFA
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 } 732 }
733 733
734 if (nStartPos < m) 734 if (nStartPos < m)
735 QuickSort(nStartPos, m, bAscend, pCompare); 735 QuickSort(nStartPos, m, bAscend, pCompare);
736 if (nStopPos > m) 736 if (nStopPos > m)
737 QuickSort(m, nStopPos, bAscend, pCompare); 737 QuickSort(m, nStopPos, bAscend, pCompare);
738 } 738 }
739 }; 739 };
740 740
741 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ 741 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698