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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
201 CFX_WideString& csSubject, | 201 CFX_WideString& csSubject, |
202 CFX_WideString& csMsg); | 202 CFX_WideString& csMsg); |
203 FX_BOOL _ExportSubmitFile(FPDF_FILEHANDLER* ppFileHandler, | 203 FX_BOOL _ExportSubmitFile(FPDF_FILEHANDLER* ppFileHandler, |
204 int fileType, | 204 int fileType, |
205 FPDF_DWORD encodeType, | 205 FPDF_DWORD encodeType, |
206 FPDF_DWORD flag = 0x01111111); | 206 FPDF_DWORD flag = 0x01111111); |
207 void _ToXFAContentFlags(CFX_WideString csSrcContent, FPDF_DWORD& flag); | 207 void _ToXFAContentFlags(CFX_WideString csSrcContent, FPDF_DWORD& flag); |
208 void _ClearChangeMark(); | 208 void _ClearChangeMark(); |
209 | 209 |
210 private: | 210 private: |
211 enum LOADSTATUS { | |
Tom Sepez
2016/03/17 16:16:43
nit: I hate to be picky, but let's call this LoadS
Jim Wang
2016/03/18 01:12:25
Done.
| |
212 FXFA_LOADSTATUS_PRELOAD = 0, | |
213 FXFA_LOADSTATUS_LOADING, | |
214 FXFA_LOADSTATUS_LOADED, | |
215 FXFA_LOADSTATUS_CLOSING, | |
216 FXFA_LOADSTATUS_CLOSED | |
217 }; | |
211 void CloseXFADoc(IXFA_DocHandler* pDoc) { | 218 void CloseXFADoc(IXFA_DocHandler* pDoc) { |
212 if (pDoc) { | 219 if (pDoc) { |
213 pDoc->CloseDoc(m_pXFADoc); | 220 pDoc->CloseDoc(m_pXFADoc); |
214 pDoc->ReleaseDoc(m_pXFADoc); | 221 pDoc->ReleaseDoc(m_pXFADoc); |
215 m_pXFADoc = NULL; | 222 m_pXFADoc = NULL; |
216 m_pXFADocView = NULL; | 223 m_pXFADocView = NULL; |
217 } | 224 } |
218 } | 225 } |
219 | 226 |
220 int m_iDocType; | 227 int m_iDocType; |
221 CPDF_Document* m_pPDFDoc; | 228 CPDF_Document* m_pPDFDoc; |
222 CPDFSDK_Document* m_pSDKDoc; | 229 CPDFSDK_Document* m_pSDKDoc; |
223 IXFA_Doc* m_pXFADoc; | 230 IXFA_Doc* m_pXFADoc; |
224 IXFA_DocView* m_pXFADocView; | 231 IXFA_DocView* m_pXFADocView; |
225 CPDFXFA_App* m_pApp; | 232 CPDFXFA_App* m_pApp; |
226 IJS_Context* m_pJSContext; | 233 IJS_Context* m_pJSContext; |
227 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; | 234 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; |
235 int m_nLoadStatus; | |
Tom Sepez
2016/03/17 16:16:42
This should be LoadStatus m_nLoadStatus, not int.
Jim Wang
2016/03/18 01:12:25
Done.
| |
236 int m_nPageCount; | |
228 }; | 237 }; |
229 | 238 |
230 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ | 239 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ |
OLD | NEW |