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

Side by Side Diff: xfa/fxfa/app/xfa_ffdoc.h

Issue 1835703002: Remove FX_DWORD from XFA, part 2 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « xfa/fxfa/app/xfa_ffchoicelist.h ('k') | xfa/fxfa/app/xfa_ffdochandler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 XFA_FXFA_APP_XFA_FFDOC_H_ 7 #ifndef XFA_FXFA_APP_XFA_FFDOC_H_
8 #define XFA_FXFA_APP_XFA_FFDOC_H_ 8 #define XFA_FXFA_APP_XFA_FFDOC_H_
9 9
10 #include "xfa/fxfa/parser/xfa_document.h" 10 #include "xfa/fxfa/parser/xfa_document.h"
11 #include "xfa/include/fxfa/fxfa.h" 11 #include "xfa/include/fxfa/fxfa.h"
12 12
13 class CXFA_FFApp; 13 class CXFA_FFApp;
14 class CXFA_FFNotify; 14 class CXFA_FFNotify;
15 class CXFA_FFDocView; 15 class CXFA_FFDocView;
16 16
17 struct FX_IMAGEDIB_AND_DPI { 17 struct FX_IMAGEDIB_AND_DPI {
18 CFX_DIBSource* pDibSource; 18 CFX_DIBSource* pDibSource;
19 int32_t iImageXDpi; 19 int32_t iImageXDpi;
20 int32_t iImageYDpi; 20 int32_t iImageYDpi;
21 }; 21 };
22 22
23 class CXFA_FFDoc : public IXFA_Doc { 23 class CXFA_FFDoc : public IXFA_Doc {
24 public: 24 public:
25 CXFA_FFDoc(CXFA_FFApp* pApp, IXFA_DocProvider* pDocProvider); 25 CXFA_FFDoc(CXFA_FFApp* pApp, IXFA_DocProvider* pDocProvider);
26 ~CXFA_FFDoc(); 26 ~CXFA_FFDoc();
27 IXFA_DocProvider* GetDocProvider() { return m_pDocProvider; } 27 IXFA_DocProvider* GetDocProvider() { return m_pDocProvider; }
28 FX_DWORD GetDocType(); 28 uint32_t GetDocType();
29 int32_t StartLoad(); 29 int32_t StartLoad();
30 int32_t DoLoad(IFX_Pause* pPause = NULL); 30 int32_t DoLoad(IFX_Pause* pPause = NULL);
31 void StopLoad(); 31 void StopLoad();
32 IXFA_DocView* CreateDocView(FX_DWORD dwView = 0); 32 IXFA_DocView* CreateDocView(uint32_t dwView = 0);
33 FX_BOOL OpenDoc(IFX_FileRead* pStream, FX_BOOL bTakeOverFile); 33 FX_BOOL OpenDoc(IFX_FileRead* pStream, FX_BOOL bTakeOverFile);
34 FX_BOOL OpenDoc(CPDF_Document* pPDFDoc); 34 FX_BOOL OpenDoc(CPDF_Document* pPDFDoc);
35 FX_BOOL CloseDoc(); 35 FX_BOOL CloseDoc();
36 void SetDocType(FX_DWORD dwType); 36 void SetDocType(uint32_t dwType);
37 CXFA_Document* GetXFADoc() { return m_pDocument; } 37 CXFA_Document* GetXFADoc() { return m_pDocument; }
38 CXFA_FFApp* GetApp() { return m_pApp; } 38 CXFA_FFApp* GetApp() { return m_pApp; }
39 CXFA_FFDocView* GetDocView(IXFA_DocLayout* pLayout); 39 CXFA_FFDocView* GetDocView(IXFA_DocLayout* pLayout);
40 CXFA_FFDocView* GetDocView(); 40 CXFA_FFDocView* GetDocView();
41 CPDF_Document* GetPDFDoc(); 41 CPDF_Document* GetPDFDoc();
42 CFX_DIBitmap* GetPDFNamedImage(const CFX_WideStringC& wsName, 42 CFX_DIBitmap* GetPDFNamedImage(const CFX_WideStringC& wsName,
43 int32_t& iImageXDpi, 43 int32_t& iImageXDpi,
44 int32_t& iImageYDpi); 44 int32_t& iImageYDpi);
45 IFDE_XMLElement* GetPackageData(const CFX_WideStringC& wsPackage); 45 IFDE_XMLElement* GetPackageData(const CFX_WideStringC& wsPackage);
46 FX_BOOL SavePackage(const CFX_WideStringC& wsPackage, 46 FX_BOOL SavePackage(const CFX_WideStringC& wsPackage,
47 IFX_FileWrite* pFile, 47 IFX_FileWrite* pFile,
48 IXFA_ChecksumContext* pCSContext = NULL); 48 IXFA_ChecksumContext* pCSContext = NULL);
49 FX_BOOL ImportData(IFX_FileRead* pStream, FX_BOOL bXDP = TRUE); 49 FX_BOOL ImportData(IFX_FileRead* pStream, FX_BOOL bXDP = TRUE);
50 50
51 protected: 51 protected:
52 IXFA_DocProvider* m_pDocProvider; 52 IXFA_DocProvider* m_pDocProvider;
53 CXFA_Document* m_pDocument; 53 CXFA_Document* m_pDocument;
54 IFX_FileRead* m_pStream; 54 IFX_FileRead* m_pStream;
55 CXFA_FFApp* m_pApp; 55 CXFA_FFApp* m_pApp;
56 CXFA_FFNotify* m_pNotify; 56 CXFA_FFNotify* m_pNotify;
57 CPDF_Document* m_pPDFDoc; 57 CPDF_Document* m_pPDFDoc;
58 CFX_MapPtrToPtr m_mapNamedImages; 58 CFX_MapPtrToPtr m_mapNamedImages;
59 CFX_MapPtrToPtr m_mapTypeToDocView; 59 CFX_MapPtrToPtr m_mapTypeToDocView;
60 FX_DWORD m_dwDocType; 60 uint32_t m_dwDocType;
61 FX_BOOL m_bOwnStream; 61 FX_BOOL m_bOwnStream;
62 }; 62 };
63 63
64 #endif // XFA_FXFA_APP_XFA_FFDOC_H_ 64 #endif // XFA_FXFA_APP_XFA_FFDOC_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffchoicelist.h ('k') | xfa/fxfa/app/xfa_ffdochandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698