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_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_ | 7 #ifndef FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_ |
8 #define FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_ | 8 #define FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 virtual FX_BOOL CheckWord(CXFA_FFDoc* hDoc, const CFX_ByteStringC& sWord) { | 157 virtual FX_BOOL CheckWord(CXFA_FFDoc* hDoc, const CFX_ByteStringC& sWord) { |
158 return FALSE; | 158 return FALSE; |
159 } | 159 } |
160 virtual FX_BOOL GetSuggestWords(CXFA_FFDoc* hDoc, | 160 virtual FX_BOOL GetSuggestWords(CXFA_FFDoc* hDoc, |
161 const CFX_ByteStringC& sWord, | 161 const CFX_ByteStringC& sWord, |
162 std::vector<CFX_ByteString>& sSuggest) { | 162 std::vector<CFX_ByteString>& sSuggest) { |
163 return FALSE; | 163 return FALSE; |
164 } | 164 } |
165 | 165 |
166 // Get PDF javascript object, set the object to hValue. | 166 // Get PDF javascript object, set the object to pValue. |
167 virtual FX_BOOL GetPDFScriptObject(CXFA_FFDoc* hDoc, | 167 virtual FX_BOOL GetPDFScriptObject(CXFA_FFDoc* hDoc, |
168 const CFX_ByteStringC& utf8Name, | 168 const CFX_ByteStringC& utf8Name, |
169 FXJSE_HVALUE hValue); | 169 CFXJSE_Value* pValue); |
170 | 170 |
171 virtual FX_BOOL GetGlobalProperty(CXFA_FFDoc* hDoc, | 171 virtual FX_BOOL GetGlobalProperty(CXFA_FFDoc* hDoc, |
172 const CFX_ByteStringC& szPropName, | 172 const CFX_ByteStringC& szPropName, |
173 FXJSE_HVALUE hValue); | 173 CFXJSE_Value* pValue); |
174 virtual FX_BOOL SetGlobalProperty(CXFA_FFDoc* hDoc, | 174 virtual FX_BOOL SetGlobalProperty(CXFA_FFDoc* hDoc, |
175 const CFX_ByteStringC& szPropName, | 175 const CFX_ByteStringC& szPropName, |
176 FXJSE_HVALUE hValue); | 176 CFXJSE_Value* pValue); |
177 virtual CPDF_Document* OpenPDF(CXFA_FFDoc* hDoc, | 177 virtual CPDF_Document* OpenPDF(CXFA_FFDoc* hDoc, |
178 IFX_FileRead* pFile, | 178 IFX_FileRead* pFile, |
179 FX_BOOL bTakeOverFile) { | 179 FX_BOOL bTakeOverFile) { |
180 return NULL; | 180 return NULL; |
181 } | 181 } |
182 | 182 |
183 virtual IFX_FileRead* OpenLinkedFile(CXFA_FFDoc* hDoc, | 183 virtual IFX_FileRead* OpenLinkedFile(CXFA_FFDoc* hDoc, |
184 const CFX_WideString& wsLink); | 184 const CFX_WideString& wsLink); |
185 | 185 |
186 FX_BOOL _GetHValueByName(const CFX_ByteStringC& utf8Name, | |
187 FXJSE_HVALUE hValue, | |
188 IJS_Runtime* runTime); | |
189 FX_BOOL _OnBeforeNotifySumbit(); | 186 FX_BOOL _OnBeforeNotifySumbit(); |
190 void _OnAfterNotifySumbit(); | 187 void _OnAfterNotifySumbit(); |
191 FX_BOOL _NotifySubmit(FX_BOOL bPrevOrPost); | 188 FX_BOOL _NotifySubmit(FX_BOOL bPrevOrPost); |
192 FX_BOOL _SubmitData(CXFA_FFDoc* hDoc, CXFA_Submit submit); | 189 FX_BOOL _SubmitData(CXFA_FFDoc* hDoc, CXFA_Submit submit); |
193 FX_BOOL _MailToInfo(CFX_WideString& csURL, | 190 FX_BOOL _MailToInfo(CFX_WideString& csURL, |
194 CFX_WideString& csToAddress, | 191 CFX_WideString& csToAddress, |
195 CFX_WideString& csCCAddress, | 192 CFX_WideString& csCCAddress, |
196 CFX_WideString& csBCCAddress, | 193 CFX_WideString& csBCCAddress, |
197 CFX_WideString& csSubject, | 194 CFX_WideString& csSubject, |
198 CFX_WideString& csMsg); | 195 CFX_WideString& csMsg); |
(...skipping 28 matching lines...) Expand all Loading... |
227 CXFA_FFDoc* m_pXFADoc; | 224 CXFA_FFDoc* m_pXFADoc; |
228 CXFA_FFDocView* m_pXFADocView; | 225 CXFA_FFDocView* m_pXFADocView; |
229 CPDFXFA_App* m_pApp; | 226 CPDFXFA_App* m_pApp; |
230 IJS_Context* m_pJSContext; | 227 IJS_Context* m_pJSContext; |
231 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; | 228 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; |
232 LoadStatus m_nLoadStatus; | 229 LoadStatus m_nLoadStatus; |
233 int m_nPageCount; | 230 int m_nPageCount; |
234 }; | 231 }; |
235 | 232 |
236 #endif // FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_ | 233 #endif // FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_ |
OLD | NEW |