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

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

Issue 1398703009: Next round of XFA changes to match master (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: remove arg Created 5 years, 2 months 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 17 matching lines...) Expand all
28 class CPDFSDK_Annot; 28 class CPDFSDK_Annot;
29 class CPDFSDK_Document; 29 class CPDFSDK_Document;
30 class CPDFSDK_InterForm; 30 class CPDFSDK_InterForm;
31 class CPDFSDK_PageView; 31 class CPDFSDK_PageView;
32 class CPDFSDK_Widget; 32 class CPDFSDK_Widget;
33 class IFX_SystemHandler; 33 class IFX_SystemHandler;
34 34
35 class CPDFDoc_Environment final { 35 class CPDFDoc_Environment final {
36 public: 36 public:
37 CPDFDoc_Environment(CPDFXFA_Document* pDoc, FPDF_FORMFILLINFO* pFFinfo); 37 CPDFDoc_Environment(CPDFXFA_Document* pDoc, FPDF_FORMFILLINFO* pFFinfo);
38 virtual ~CPDFDoc_Environment(); 38 ~CPDFDoc_Environment();
39 39
40 virtual void Release() { 40 void Release() {
41 if (m_pInfo && m_pInfo->Release) 41 if (m_pInfo && m_pInfo->Release)
42 m_pInfo->Release(m_pInfo); 42 m_pInfo->Release(m_pInfo);
43 delete this; 43 delete this;
44 } 44 }
45 45
46 void FFI_Invalidate(FPDF_PAGE page, 46 void FFI_Invalidate(FPDF_PAGE page,
47 double left, 47 double left,
48 double top, 48 double top,
49 double right, 49 double right,
50 double bottom) { 50 double bottom) {
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 FX_BOOL KillFocusAnnot(FX_UINT nFlag = 0) { 544 FX_BOOL KillFocusAnnot(FX_UINT nFlag = 0) {
545 return m_pSDKDoc->KillFocusAnnot(nFlag); 545 return m_pSDKDoc->KillFocusAnnot(nFlag);
546 } 546 }
547 FX_BOOL Annot_HasAppearance(CPDF_Annot* pAnnot); 547 FX_BOOL Annot_HasAppearance(CPDF_Annot* pAnnot);
548 548
549 CPDFSDK_Annot* AddAnnot(CPDF_Dictionary* pDict); 549 CPDFSDK_Annot* AddAnnot(CPDF_Dictionary* pDict);
550 CPDFSDK_Annot* AddAnnot(const FX_CHAR* lpSubType, CPDF_Dictionary* pDict); 550 CPDFSDK_Annot* AddAnnot(const FX_CHAR* lpSubType, CPDF_Dictionary* pDict);
551 CPDFSDK_Annot* AddAnnot(CPDF_Annot* pPDFAnnot); 551 CPDFSDK_Annot* AddAnnot(CPDF_Annot* pPDFAnnot);
552 CPDFSDK_Annot* AddAnnot(IXFA_Widget* pPDFAnnot); 552 CPDFSDK_Annot* AddAnnot(IXFA_Widget* pPDFAnnot);
553 FX_BOOL DeleteAnnot(CPDFSDK_Annot* pAnnot); 553 FX_BOOL DeleteAnnot(CPDFSDK_Annot* pAnnot);
554
555 int CountAnnots(); 554 int CountAnnots();
556 CPDFSDK_Annot* GetAnnot(int nIndex); 555 CPDFSDK_Annot* GetAnnot(int nIndex);
557 CPDFSDK_Annot* GetAnnotByDict(CPDF_Dictionary* pDict); 556 CPDFSDK_Annot* GetAnnotByDict(CPDF_Dictionary* pDict);
558 CPDFSDK_Annot* GetAnnotByXFAWidget(IXFA_Widget* hWidget); 557 CPDFSDK_Annot* GetAnnotByXFAWidget(IXFA_Widget* hWidget);
559 CPDFXFA_Page* GetPDFXFAPage() { return m_page; } 558 CPDFXFA_Page* GetPDFXFAPage() { return m_page; }
560 CPDF_Page* GetPDFPage(); 559 CPDF_Page* GetPDFPage();
561 CPDF_Document* GetPDFDocument(); 560 CPDF_Document* GetPDFDocument();
562 CPDFSDK_Document* GetSDKDocument() { return m_pSDKDoc; } 561 CPDFSDK_Document* GetSDKDocument() { return m_pSDKDoc; }
563 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_UINT nFlag); 562 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_UINT nFlag);
564 FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_UINT nFlag); 563 FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_UINT nFlag);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 } 669 }
671 670
672 if (nStartPos < m) 671 if (nStartPos < m)
673 QuickSort(nStartPos, m, bAscend, pCompare); 672 QuickSort(nStartPos, m, bAscend, pCompare);
674 if (nStopPos > m) 673 if (nStopPos > m)
675 QuickSort(m, nStopPos, bAscend, pCompare); 674 QuickSort(m, nStopPos, bAscend, pCompare);
676 } 675 }
677 }; 676 };
678 677
679 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ 678 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698