| 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 FPDFXFA_DOC_H_ | 7 #ifndef FPDFXFA_DOC_H_ |
| 8 #define FPDFXFA_DOC_H_ | 8 #define FPDFXFA_DOC_H_ |
| 9 | 9 |
| 10 #include "../../../xfa/include/fxfa/fxfa.h" | 10 #include "../../../xfa/include/fxfa/fxfa.h" |
| 11 | 11 |
| 12 class CPDFXFA_App; | 12 class CPDFXFA_App; |
| 13 class CPDFXFA_Document; | 13 class CPDFXFA_Document; |
| 14 class CPDFXFA_Page; | 14 class CPDFXFA_Page; |
| 15 class CPDFSDK_Document; | 15 class CPDFSDK_Document; |
| 16 class CPDFDoc_Environment; | 16 class CPDFDoc_Environment; |
| 17 class IFXJS_Runtime; | 17 class IJS_Runtime; |
| 18 class IFXJS_Context; | 18 class IJS_Context; |
| 19 class IXFA_DocHandler; | 19 class IXFA_DocHandler; |
| 20 | 20 |
| 21 class CPDFXFA_Document : public IXFA_DocProvider { | 21 class CPDFXFA_Document : public IXFA_DocProvider { |
| 22 public: | 22 public: |
| 23 CPDFXFA_Document(CPDF_Document* pPDFDoc, CPDFXFA_App* pProvider); | 23 CPDFXFA_Document(CPDF_Document* pPDFDoc, CPDFXFA_App* pProvider); |
| 24 ~CPDFXFA_Document(); | 24 ~CPDFXFA_Document(); |
| 25 | 25 |
| 26 FX_BOOL LoadXFADoc(); | 26 FX_BOOL LoadXFADoc(); |
| 27 CPDFXFA_App* GetApp() { return m_pApp; } | 27 CPDFXFA_App* GetApp() { return m_pApp; } |
| 28 CPDF_Document* GetPDFDoc() { return m_pPDFDoc; } | 28 CPDF_Document* GetPDFDoc() { return m_pPDFDoc; } |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 IFX_FileRead* pFile, | 180 IFX_FileRead* pFile, |
| 181 FX_BOOL bTakeOverFile) { | 181 FX_BOOL bTakeOverFile) { |
| 182 return NULL; | 182 return NULL; |
| 183 } | 183 } |
| 184 | 184 |
| 185 virtual IFX_FileRead* OpenLinkedFile(IXFA_Doc* hDoc, | 185 virtual IFX_FileRead* OpenLinkedFile(IXFA_Doc* hDoc, |
| 186 const CFX_WideString& wsLink); | 186 const CFX_WideString& wsLink); |
| 187 | 187 |
| 188 FX_BOOL _GetHValueByName(const CFX_ByteStringC& utf8Name, | 188 FX_BOOL _GetHValueByName(const CFX_ByteStringC& utf8Name, |
| 189 FXJSE_HVALUE hValue, | 189 FXJSE_HVALUE hValue, |
| 190 IFXJS_Runtime* runTime); | 190 IJS_Runtime* runTime); |
| 191 FX_BOOL _OnBeforeNotifySumbit(); | 191 FX_BOOL _OnBeforeNotifySumbit(); |
| 192 void _OnAfterNotifySumbit(); | 192 void _OnAfterNotifySumbit(); |
| 193 FX_BOOL _NotifySubmit(FX_BOOL bPrevOrPost); | 193 FX_BOOL _NotifySubmit(FX_BOOL bPrevOrPost); |
| 194 FX_BOOL _SubmitData(IXFA_Doc* hDoc, CXFA_Submit submit); | 194 FX_BOOL _SubmitData(IXFA_Doc* hDoc, CXFA_Submit submit); |
| 195 FX_BOOL _MailToInfo(CFX_WideString& csURL, | 195 FX_BOOL _MailToInfo(CFX_WideString& csURL, |
| 196 CFX_WideString& csToAddress, | 196 CFX_WideString& csToAddress, |
| 197 CFX_WideString& csCCAddress, | 197 CFX_WideString& csCCAddress, |
| 198 CFX_WideString& csBCCAddress, | 198 CFX_WideString& csBCCAddress, |
| 199 CFX_WideString& csSubject, | 199 CFX_WideString& csSubject, |
| 200 CFX_WideString& csMsg); | 200 CFX_WideString& csMsg); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 214 m_pXFADocView = NULL; | 214 m_pXFADocView = NULL; |
| 215 } | 215 } |
| 216 } | 216 } |
| 217 | 217 |
| 218 CPDF_Document* m_pPDFDoc; | 218 CPDF_Document* m_pPDFDoc; |
| 219 IXFA_Doc* m_pXFADoc; | 219 IXFA_Doc* m_pXFADoc; |
| 220 IXFA_DocView* m_pXFADocView; | 220 IXFA_DocView* m_pXFADocView; |
| 221 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; | 221 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; |
| 222 CPDFSDK_Document* m_pSDKDoc; | 222 CPDFSDK_Document* m_pSDKDoc; |
| 223 CPDFXFA_App* m_pApp; | 223 CPDFXFA_App* m_pApp; |
| 224 IFXJS_Context* m_pJSContext; | 224 IJS_Context* m_pJSContext; |
| 225 int m_iDocType; | 225 int m_iDocType; |
| 226 }; | 226 }; |
| 227 | 227 |
| 228 #endif // FPDFXFA_DOC_H_ | 228 #endif // FPDFXFA_DOC_H_ |
| OLD | NEW |