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

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

Issue 1864973005: Move remaining xfa/include/fxfa files (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master 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/include/fxfa/xfa_ffapp.h ('k') | xfa/include/fxfa/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
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef XFA_INCLUDE_FXFA_XFA_FFDOC_H_
8 #define XFA_INCLUDE_FXFA_XFA_FFDOC_H_
9
10 #include "xfa/fxfa/parser/xfa_document.h"
11 #include "xfa/include/fxfa/fxfa.h"
12
13 class CXFA_ChecksumContext;
14 class CXFA_FFApp;
15 class CXFA_FFNotify;
16 class CXFA_FFDocView;
17
18 struct FX_IMAGEDIB_AND_DPI {
19 CFX_DIBSource* pDibSource;
20 int32_t iImageXDpi;
21 int32_t iImageYDpi;
22 };
23
24 class CXFA_FFDoc {
25 public:
26 CXFA_FFDoc(CXFA_FFApp* pApp, IXFA_DocProvider* pDocProvider);
27 ~CXFA_FFDoc();
28 IXFA_DocProvider* GetDocProvider() { return m_pDocProvider; }
29 uint32_t GetDocType();
30 int32_t StartLoad();
31 int32_t DoLoad(IFX_Pause* pPause = NULL);
32 void StopLoad();
33 CXFA_FFDocView* CreateDocView(uint32_t dwView = 0);
34 FX_BOOL OpenDoc(IFX_FileRead* pStream, FX_BOOL bTakeOverFile);
35 FX_BOOL OpenDoc(CPDF_Document* pPDFDoc);
36 FX_BOOL CloseDoc();
37 void SetDocType(uint32_t dwType);
38 CXFA_Document* GetXFADoc() { return m_pDocument; }
39 CXFA_FFApp* GetApp() { return m_pApp; }
40 CXFA_FFDocView* GetDocView(CXFA_LayoutProcessor* pLayout);
41 CXFA_FFDocView* GetDocView();
42 CPDF_Document* GetPDFDoc();
43 CFX_DIBitmap* GetPDFNamedImage(const CFX_WideStringC& wsName,
44 int32_t& iImageXDpi,
45 int32_t& iImageYDpi);
46 CFDE_XMLElement* GetPackageData(const CFX_WideStringC& wsPackage);
47 FX_BOOL SavePackage(const CFX_WideStringC& wsPackage,
48 IFX_FileWrite* pFile,
49 CXFA_ChecksumContext* pCSContext = NULL);
50 FX_BOOL ImportData(IFX_FileRead* pStream, FX_BOOL bXDP = TRUE);
51
52 protected:
53 IXFA_DocProvider* m_pDocProvider;
54 CXFA_Document* m_pDocument;
55 IFX_FileRead* m_pStream;
56 CXFA_FFApp* m_pApp;
57 CXFA_FFNotify* m_pNotify;
58 CPDF_Document* m_pPDFDoc;
59 CFX_MapPtrToPtr m_mapNamedImages;
60 CFX_MapPtrToPtr m_mapTypeToDocView;
61 uint32_t m_dwDocType;
62 FX_BOOL m_bOwnStream;
63 };
64
65 #endif // XFA_INCLUDE_FXFA_XFA_FFDOC_H_
OLDNEW
« no previous file with comments | « xfa/include/fxfa/xfa_ffapp.h ('k') | xfa/include/fxfa/xfa_ffdochandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698