| 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 #include "../../include/pdfwindow/PDFWindow.h" | 7 #include "../../include/pdfwindow/PDFWindow.h" |
| 8 #include "../../include/pdfwindow/PWL_Wnd.h" | 8 #include "../../include/pdfwindow/PWL_Wnd.h" |
| 9 #include "../../include/pdfwindow/PWL_FontMap.h" | 9 #include "../../include/pdfwindow/PWL_FontMap.h" |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 { | 34 { |
| 35 m_pSystemHandler = pSystemHandler; | 35 m_pSystemHandler = pSystemHandler; |
| 36 } | 36 } |
| 37 | 37 |
| 38 CPDF_Document* CPWL_FontMap::GetDocument() | 38 CPDF_Document* CPWL_FontMap::GetDocument() |
| 39 { | 39 { |
| 40 if (!m_pPDFDoc) | 40 if (!m_pPDFDoc) |
| 41 { | 41 { |
| 42 if (CPDF_ModuleMgr::Get()) | 42 if (CPDF_ModuleMgr::Get()) |
| 43 { | 43 { |
| 44 » » » m_pPDFDoc = FX_NEW CPDF_Document; | 44 » » » m_pPDFDoc = new CPDF_Document; |
| 45 m_pPDFDoc->CreateNewDoc(); | 45 m_pPDFDoc->CreateNewDoc(); |
| 46 } | 46 } |
| 47 } | 47 } |
| 48 | 48 |
| 49 return m_pPDFDoc; | 49 return m_pPDFDoc; |
| 50 } | 50 } |
| 51 | 51 |
| 52 CPDF_Font* CPWL_FontMap::GetPDFFont(FX_INT32 nFontIndex) | 52 CPDF_Font* CPWL_FontMap::GetPDFFont(FX_INT32 nFontIndex) |
| 53 { | 53 { |
| 54 if (nFontIndex >=0 && nFontIndex < m_aData.GetSize()) | 54 if (nFontIndex >=0 && nFontIndex < m_aData.GetSize()) |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 } | 592 } |
| 593 | 593 |
| 594 CPWL_DocFontMap::~CPWL_DocFontMap() | 594 CPWL_DocFontMap::~CPWL_DocFontMap() |
| 595 { | 595 { |
| 596 } | 596 } |
| 597 | 597 |
| 598 CPDF_Document* CPWL_DocFontMap::GetDocument() | 598 CPDF_Document* CPWL_DocFontMap::GetDocument() |
| 599 { | 599 { |
| 600 return m_pAttachedDoc; | 600 return m_pAttachedDoc; |
| 601 } | 601 } |
| OLD | NEW |