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_FSDK_MGR_H_ | 7 #ifndef FPDFSDK_INCLUDE_FSDK_MGR_H_ |
8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_ | 8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 std::unique_ptr<IJS_Runtime> m_pJSRuntime; | 221 std::unique_ptr<IJS_Runtime> m_pJSRuntime; |
222 FPDF_FORMFILLINFO* const m_pInfo; | 222 FPDF_FORMFILLINFO* const m_pInfo; |
223 CPDFSDK_Document* m_pSDKDoc; | 223 CPDFSDK_Document* m_pSDKDoc; |
224 UnderlyingDocumentType* const m_pUnderlyingDoc; | 224 UnderlyingDocumentType* const m_pUnderlyingDoc; |
225 std::unique_ptr<CFFL_IFormFiller> m_pIFormFiller; | 225 std::unique_ptr<CFFL_IFormFiller> m_pIFormFiller; |
226 std::unique_ptr<IFX_SystemHandler> m_pSysHandler; | 226 std::unique_ptr<IFX_SystemHandler> m_pSysHandler; |
227 }; | 227 }; |
228 | 228 |
229 class CPDFSDK_Document { | 229 class CPDFSDK_Document { |
230 public: | 230 public: |
| 231 static CPDFSDK_Document* FromFPDFFormHandle(FPDF_FORMHANDLE hHandle); |
| 232 |
231 CPDFSDK_Document(UnderlyingDocumentType* pDoc, CPDFDoc_Environment* pEnv); | 233 CPDFSDK_Document(UnderlyingDocumentType* pDoc, CPDFDoc_Environment* pEnv); |
232 ~CPDFSDK_Document(); | 234 ~CPDFSDK_Document(); |
233 | 235 |
234 CPDFSDK_InterForm* GetInterForm(); | 236 CPDFSDK_InterForm* GetInterForm(); |
235 | 237 |
236 // Gets the document object for the next layer down; for master this is | 238 // Gets the document object for the next layer down; for master this is |
237 // a CPDF_Document, but for XFA it is a CPDFXFA_Document. | 239 // a CPDF_Document, but for XFA it is a CPDFXFA_Document. |
238 UnderlyingDocumentType* GetUnderlyingDocument() const { | 240 UnderlyingDocumentType* GetUnderlyingDocument() const { |
239 return GetPDFDocument(); | 241 return GetPDFDocument(); |
240 } | 242 } |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 } | 435 } |
434 | 436 |
435 if (nStartPos < m) | 437 if (nStartPos < m) |
436 QuickSort(nStartPos, m, bAscend, pCompare); | 438 QuickSort(nStartPos, m, bAscend, pCompare); |
437 if (nStopPos > m) | 439 if (nStopPos > m) |
438 QuickSort(m, nStopPos, bAscend, pCompare); | 440 QuickSort(m, nStopPos, bAscend, pCompare); |
439 } | 441 } |
440 }; | 442 }; |
441 | 443 |
442 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ | 444 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ |
OLD | NEW |