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

Unified Diff: xfa/fxfa/include/xfa_ffdoc.h

Issue 2383593002: Move xfa/fxfa/include to xfa/fxfa (Closed)
Patch Set: Rebase to master Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fxfa/include/xfa_ffapp.h ('k') | xfa/fxfa/include/xfa_ffdochandler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fxfa/include/xfa_ffdoc.h
diff --git a/xfa/fxfa/include/xfa_ffdoc.h b/xfa/fxfa/include/xfa_ffdoc.h
deleted file mode 100644
index 927301893bc0a7f01ed753e10dc25dce000ecadf..0000000000000000000000000000000000000000
--- a/xfa/fxfa/include/xfa_ffdoc.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef XFA_FXFA_INCLUDE_XFA_FFDOC_H_
-#define XFA_FXFA_INCLUDE_XFA_FFDOC_H_
-
-#include <map>
-#include <memory>
-
-#include "xfa/fxfa/include/fxfa.h"
-#include "xfa/fxfa/parser/cxfa_document.h"
-#include "xfa/fxfa/parser/cxfa_document_parser.h"
-
-class CXFA_ChecksumContext;
-class CXFA_FFApp;
-class CXFA_FFNotify;
-class CXFA_FFDocView;
-
-struct FX_IMAGEDIB_AND_DPI {
- CFX_DIBSource* pDibSource;
- int32_t iImageXDpi;
- int32_t iImageYDpi;
-};
-
-class CXFA_FFDoc {
- public:
- CXFA_FFDoc(CXFA_FFApp* pApp, IXFA_DocEnvironment* pDocEnvironment);
- ~CXFA_FFDoc();
- IXFA_DocEnvironment* GetDocEnvironment() const { return m_pDocEnvironment; }
- uint32_t GetDocType();
- int32_t StartLoad();
- int32_t DoLoad(IFX_Pause* pPause = nullptr);
- void StopLoad();
- CXFA_FFDocView* CreateDocView(uint32_t dwView = 0);
- FX_BOOL OpenDoc(IFX_FileRead* pStream, FX_BOOL bTakeOverFile);
- FX_BOOL OpenDoc(CPDF_Document* pPDFDoc);
- FX_BOOL CloseDoc();
- void SetDocType(uint32_t dwType);
- CXFA_Document* GetXFADoc() { return m_pDocumentParser->GetDocument(); }
- CXFA_FFApp* GetApp() { return m_pApp; }
- CXFA_FFDocView* GetDocView(CXFA_LayoutProcessor* pLayout);
- CXFA_FFDocView* GetDocView();
- CPDF_Document* GetPDFDoc();
- CFX_DIBitmap* GetPDFNamedImage(const CFX_WideStringC& wsName,
- int32_t& iImageXDpi,
- int32_t& iImageYDpi);
-
- bool SavePackage(XFA_HashCode code,
- IFX_FileWrite* pFile,
- CXFA_ChecksumContext* pCSContext);
- FX_BOOL ImportData(IFX_FileRead* pStream, FX_BOOL bXDP = TRUE);
-
- protected:
- IXFA_DocEnvironment* const m_pDocEnvironment;
- std::unique_ptr<CXFA_DocumentParser> m_pDocumentParser;
- IFX_FileRead* m_pStream;
- CXFA_FFApp* m_pApp;
- std::unique_ptr<CXFA_FFNotify> m_pNotify;
- CPDF_Document* m_pPDFDoc;
- std::map<uint32_t, FX_IMAGEDIB_AND_DPI> m_HashToDibDpiMap;
- std::map<uint32_t, std::unique_ptr<CXFA_FFDocView>> m_TypeToDocViewMap;
- uint32_t m_dwDocType;
- FX_BOOL m_bOwnStream;
-};
-
-#endif // XFA_FXFA_INCLUDE_XFA_FFDOC_H_
« no previous file with comments | « xfa/fxfa/include/xfa_ffapp.h ('k') | xfa/fxfa/include/xfa_ffdochandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698