| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 CFFL_IFormFiller* m_pIFormFiller; | 222 CFFL_IFormFiller* m_pIFormFiller; |
| 223 IFX_SystemHandler* m_pSysHandler; | 223 IFX_SystemHandler* m_pSysHandler; |
| 224 }; | 224 }; |
| 225 | 225 |
| 226 class CPDFSDK_Document { | 226 class CPDFSDK_Document { |
| 227 public: | 227 public: |
| 228 CPDFSDK_Document(CPDF_Document* pDoc, CPDFDoc_Environment* pEnv); | 228 CPDFSDK_Document(CPDF_Document* pDoc, CPDFDoc_Environment* pEnv); |
| 229 ~CPDFSDK_Document(); | 229 ~CPDFSDK_Document(); |
| 230 | 230 |
| 231 CPDFSDK_InterForm* GetInterForm(); | 231 CPDFSDK_InterForm* GetInterForm(); |
| 232 CPDF_Document* GetDocument() { return m_pDoc; } | 232 |
| 233 // Gets the document object for the next layer down; for master this is |
| 234 // a CPDF_Document, but for XFA it is a CPDFXFA_Document. |
| 235 CPDF_Document* GetDocument() const { return m_pDoc; } |
| 236 |
| 237 // Gets the CPDF_Document, either directly in master, or from the |
| 238 // CPDFXFA_Document for XFA. |
| 239 CPDF_Document* GetPDFDocument() const { return m_pDoc; } |
| 233 | 240 |
| 234 CPDFSDK_PageView* GetPageView(CPDF_Page* pPDFPage, FX_BOOL ReNew = TRUE); | 241 CPDFSDK_PageView* GetPageView(CPDF_Page* pPDFPage, FX_BOOL ReNew = TRUE); |
| 235 CPDFSDK_PageView* GetPageView(int nIndex); | 242 CPDFSDK_PageView* GetPageView(int nIndex); |
| 236 CPDFSDK_PageView* GetCurrentView(); | 243 CPDFSDK_PageView* GetCurrentView(); |
| 237 void ReMovePageView(CPDF_Page* pPDFPage); | 244 void ReMovePageView(CPDF_Page* pPDFPage); |
| 238 void UpdateAllViews(CPDFSDK_PageView* pSender, CPDFSDK_Annot* pAnnot); | 245 void UpdateAllViews(CPDFSDK_PageView* pSender, CPDFSDK_Annot* pAnnot); |
| 239 | 246 |
| 240 CPDFSDK_Annot* GetFocusAnnot(); | 247 CPDFSDK_Annot* GetFocusAnnot(); |
| 241 | 248 |
| 242 IJS_Runtime* GetJsRuntime(); | 249 IJS_Runtime* GetJsRuntime(); |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 } | 423 } |
| 417 | 424 |
| 418 if (nStartPos < m) | 425 if (nStartPos < m) |
| 419 QuickSort(nStartPos, m, bAscend, pCompare); | 426 QuickSort(nStartPos, m, bAscend, pCompare); |
| 420 if (nStopPos > m) | 427 if (nStopPos > m) |
| 421 QuickSort(m, nStopPos, bAscend, pCompare); | 428 QuickSort(m, nStopPos, bAscend, pCompare); |
| 422 } | 429 } |
| 423 }; | 430 }; |
| 424 | 431 |
| 425 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ | 432 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ |
| OLD | NEW |