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_FPDFXFA_FPDFXFA_DOC_H_ | 7 #ifndef FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ |
8 #define FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ | 8 #define FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 22 matching lines...) Expand all Loading... |
33 IXFA_DocView* GetXFADocView() { return m_pXFADocView; } | 33 IXFA_DocView* GetXFADocView() { return m_pXFADocView; } |
34 | 34 |
35 int GetPageCount(); | 35 int GetPageCount(); |
36 CPDFXFA_Page* GetPage(int page_index); | 36 CPDFXFA_Page* GetPage(int page_index); |
37 CPDFXFA_Page* GetPage(IXFA_PageView* pPage); | 37 CPDFXFA_Page* GetPage(IXFA_PageView* pPage); |
38 void RemovePage(CPDFXFA_Page* page); | 38 void RemovePage(CPDFXFA_Page* page); |
39 int GetDocType() { return m_iDocType; } | 39 int GetDocType() { return m_iDocType; } |
40 | 40 |
41 CPDFSDK_Document* GetSDKDocument(CPDFDoc_Environment* pFormFillEnv); | 41 CPDFSDK_Document* GetSDKDocument(CPDFDoc_Environment* pFormFillEnv); |
42 | 42 |
43 void FXRect2PDFRect(const CFX_RectF& fxRectF, CPDF_Rect& pdfRect); | 43 void FXRect2PDFRect(const CFX_RectF& fxRectF, CFX_FloatRect& pdfRect); |
44 | 44 |
45 virtual void SetChangeMark(IXFA_Doc* hDoc); | 45 virtual void SetChangeMark(IXFA_Doc* hDoc); |
46 virtual FX_BOOL GetChangeMark(IXFA_Doc* hDoc); | 46 virtual FX_BOOL GetChangeMark(IXFA_Doc* hDoc); |
47 // used in dynamic xfa, dwFlags refer to XFA_INVALIDATE_XXX macros. | 47 // used in dynamic xfa, dwFlags refer to XFA_INVALIDATE_XXX macros. |
48 virtual void InvalidateRect(IXFA_PageView* pPageView, | 48 virtual void InvalidateRect(IXFA_PageView* pPageView, |
49 const CFX_RectF& rt, | 49 const CFX_RectF& rt, |
50 FX_DWORD dwFlags = 0); | 50 FX_DWORD dwFlags = 0); |
51 // used in static xfa, dwFlags refer to XFA_INVALIDATE_XXX macros. | 51 // used in static xfa, dwFlags refer to XFA_INVALIDATE_XXX macros. |
52 virtual void InvalidateRect(IXFA_Widget* hWidget, FX_DWORD dwFlags = 0); | 52 virtual void InvalidateRect(IXFA_Widget* hWidget, FX_DWORD dwFlags = 0); |
53 // show or hide caret | 53 // show or hide caret |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 CPDF_Document* m_pPDFDoc; | 221 CPDF_Document* m_pPDFDoc; |
222 CPDFSDK_Document* m_pSDKDoc; | 222 CPDFSDK_Document* m_pSDKDoc; |
223 IXFA_Doc* m_pXFADoc; | 223 IXFA_Doc* m_pXFADoc; |
224 IXFA_DocView* m_pXFADocView; | 224 IXFA_DocView* m_pXFADocView; |
225 CPDFXFA_App* m_pApp; | 225 CPDFXFA_App* m_pApp; |
226 IJS_Context* m_pJSContext; | 226 IJS_Context* m_pJSContext; |
227 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; | 227 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; |
228 }; | 228 }; |
229 | 229 |
230 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ | 230 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ |
OLD | NEW |