| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 CORE_FPDFAPI_FPDF_FONT_CPDF_TYPE3CHAR_H_ | 7 #ifndef CORE_FPDFAPI_FONT_CPDF_TYPE3CHAR_H_ |
| 8 #define CORE_FPDFAPI_FPDF_FONT_CPDF_TYPE3CHAR_H_ | 8 #define CORE_FPDFAPI_FONT_CPDF_TYPE3CHAR_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "core/fxcrt/fx_coordinates.h" | 12 #include "core/fxcrt/fx_coordinates.h" |
| 13 #include "core/fxcrt/fx_system.h" | 13 #include "core/fxcrt/fx_system.h" |
| 14 | 14 |
| 15 class CFX_DIBitmap; | 15 class CFX_DIBitmap; |
| 16 class CPDF_Form; | 16 class CPDF_Form; |
| 17 class CPDF_RenderContext; | 17 class CPDF_RenderContext; |
| 18 | 18 |
| 19 class CPDF_Type3Char { | 19 class CPDF_Type3Char { |
| 20 public: | 20 public: |
| 21 // Takes ownership of |pForm|. | 21 // Takes ownership of |pForm|. |
| 22 explicit CPDF_Type3Char(CPDF_Form* pForm); | 22 explicit CPDF_Type3Char(CPDF_Form* pForm); |
| 23 ~CPDF_Type3Char(); | 23 ~CPDF_Type3Char(); |
| 24 | 24 |
| 25 FX_BOOL LoadBitmap(CPDF_RenderContext* pContext); | 25 FX_BOOL LoadBitmap(CPDF_RenderContext* pContext); |
| 26 | 26 |
| 27 std::unique_ptr<CPDF_Form> m_pForm; | 27 std::unique_ptr<CPDF_Form> m_pForm; |
| 28 std::unique_ptr<CFX_DIBitmap> m_pBitmap; | 28 std::unique_ptr<CFX_DIBitmap> m_pBitmap; |
| 29 FX_BOOL m_bColored; | 29 FX_BOOL m_bColored; |
| 30 int m_Width; | 30 int m_Width; |
| 31 CFX_Matrix m_ImageMatrix; | 31 CFX_Matrix m_ImageMatrix; |
| 32 FX_RECT m_BBox; | 32 FX_RECT m_BBox; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 #endif // CORE_FPDFAPI_FPDF_FONT_CPDF_TYPE3CHAR_H_ | 35 #endif // CORE_FPDFAPI_FONT_CPDF_TYPE3CHAR_H_ |
| OLD | NEW |