| 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 XFA_FDE_FDE_RENDER_H_ | 7 #ifndef XFA_FDE_FDE_RENDER_H_ |
| 8 #define XFA_FDE_FDE_RENDER_H_ | 8 #define XFA_FDE_FDE_RENDER_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <vector> |
| 11 | 12 |
| 12 #include "core/fxcrt/include/fx_coordinates.h" | 13 #include "core/fxcrt/include/fx_coordinates.h" |
| 13 #include "xfa/fde/fde_gedevice.h" | 14 #include "xfa/fde/fde_gedevice.h" |
| 14 #include "xfa/fde/fde_iterator.h" | 15 #include "xfa/fde/fde_iterator.h" |
| 15 #include "xfa/fde/fde_visualset.h" | 16 #include "xfa/fde/fde_visualset.h" |
| 16 | 17 |
| 17 class CFDE_RenderDevice; | 18 class CFDE_RenderDevice; |
| 18 | 19 |
| 19 enum FDE_RENDERSTATUS { | 20 enum FDE_RENDERSTATUS { |
| 20 FDE_RENDERSTATUS_Reset = 0, | 21 FDE_RENDERSTATUS_Reset = 0, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 33 const CFX_Matrix& tmDoc2Device); | 34 const CFX_Matrix& tmDoc2Device); |
| 34 FDE_RENDERSTATUS GetStatus() const { return m_eStatus; } | 35 FDE_RENDERSTATUS GetStatus() const { return m_eStatus; } |
| 35 FDE_RENDERSTATUS DoRender(IFX_Pause* pPause = nullptr); | 36 FDE_RENDERSTATUS DoRender(IFX_Pause* pPause = nullptr); |
| 36 void StopRender(); | 37 void StopRender(); |
| 37 void RenderText(IFDE_TextSet* pTextSet, FDE_TEXTEDITPIECE* pText); | 38 void RenderText(IFDE_TextSet* pTextSet, FDE_TEXTEDITPIECE* pText); |
| 38 | 39 |
| 39 protected: | 40 protected: |
| 40 FDE_RENDERSTATUS m_eStatus; | 41 FDE_RENDERSTATUS m_eStatus; |
| 41 CFDE_RenderDevice* m_pRenderDevice; | 42 CFDE_RenderDevice* m_pRenderDevice; |
| 42 CFX_Matrix m_Transform; | 43 CFX_Matrix m_Transform; |
| 43 FXTEXT_CHARPOS* m_pCharPos; | 44 std::vector<FXTEXT_CHARPOS> m_CharPos; |
| 44 int32_t m_iCharPosCount; | |
| 45 std::unique_ptr<CFDE_Brush> m_pBrush; | 45 std::unique_ptr<CFDE_Brush> m_pBrush; |
| 46 std::unique_ptr<CFDE_VisualSetIterator> m_pIterator; | 46 std::unique_ptr<CFDE_VisualSetIterator> m_pIterator; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 #endif // XFA_FDE_FDE_RENDER_H_ | 49 #endif // XFA_FDE_FDE_RENDER_H_ |
| OLD | NEW |