| 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_TTO_FDE_TEXTOUT_H_ | 7 #ifndef XFA_FDE_TTO_FDE_TEXTOUT_H_ |
| 8 #define XFA_FDE_TTO_FDE_TEXTOUT_H_ | 8 #define XFA_FDE_TTO_FDE_TEXTOUT_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 protected: | 68 protected: |
| 69 int32_t m_iPieceCount; | 69 int32_t m_iPieceCount; |
| 70 }; | 70 }; |
| 71 typedef CFX_ObjectMassArrayTemplate<CFDE_TTOLine> CFDE_TTOLineArray; | 71 typedef CFX_ObjectMassArrayTemplate<CFDE_TTOLine> CFDE_TTOLineArray; |
| 72 | 72 |
| 73 class CFDE_TextOut : public CFX_Target { | 73 class CFDE_TextOut : public CFX_Target { |
| 74 public: | 74 public: |
| 75 CFDE_TextOut(); | 75 CFDE_TextOut(); |
| 76 ~CFDE_TextOut() override; | 76 ~CFDE_TextOut() override; |
| 77 | 77 |
| 78 void SetFont(IFX_Font* pFont); | 78 void SetFont(CFX_GEFont* pFont); |
| 79 void SetFontSize(FX_FLOAT fFontSize); | 79 void SetFontSize(FX_FLOAT fFontSize); |
| 80 void SetTextColor(FX_ARGB color); | 80 void SetTextColor(FX_ARGB color); |
| 81 void SetStyles(uint32_t dwStyles); | 81 void SetStyles(uint32_t dwStyles); |
| 82 void SetTabWidth(FX_FLOAT fTabWidth); | 82 void SetTabWidth(FX_FLOAT fTabWidth); |
| 83 void SetEllipsisString(const CFX_WideString& wsEllipsis); | 83 void SetEllipsisString(const CFX_WideString& wsEllipsis); |
| 84 void SetParagraphBreakChar(FX_WCHAR wch); | 84 void SetParagraphBreakChar(FX_WCHAR wch); |
| 85 void SetAlignment(int32_t iAlignment); | 85 void SetAlignment(int32_t iAlignment); |
| 86 void SetLineSpace(FX_FLOAT fLineSpace); | 86 void SetLineSpace(FX_FLOAT fLineSpace); |
| 87 void SetDIBitmap(CFX_DIBitmap* pDIB); | 87 void SetDIBitmap(CFX_DIBitmap* pDIB); |
| 88 void SetRenderDevice(CFX_RenderDevice* pDevice); | 88 void SetRenderDevice(CFX_RenderDevice* pDevice); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 void ReplaceWidthEllipsis(); | 144 void ReplaceWidthEllipsis(); |
| 145 void DoAlignment(const CFX_RectF& rect); | 145 void DoAlignment(const CFX_RectF& rect); |
| 146 void OnDraw(const CFX_RectF& rtClip); | 146 void OnDraw(const CFX_RectF& rtClip); |
| 147 int32_t GetDisplayPos(FDE_TTOPIECE* pPiece); | 147 int32_t GetDisplayPos(FDE_TTOPIECE* pPiece); |
| 148 int32_t GetCharRects(const FDE_TTOPIECE* pPiece); | 148 int32_t GetCharRects(const FDE_TTOPIECE* pPiece); |
| 149 | 149 |
| 150 FX_TXTRUN ToTextRun(const FDE_TTOPIECE* pPiece); | 150 FX_TXTRUN ToTextRun(const FDE_TTOPIECE* pPiece); |
| 151 void DrawLine(const FDE_TTOPIECE* pPiece, CFDE_Pen*& pPen); | 151 void DrawLine(const FDE_TTOPIECE* pPiece, CFDE_Pen*& pPen); |
| 152 | 152 |
| 153 CFX_TxtBreak* m_pTxtBreak; | 153 CFX_TxtBreak* m_pTxtBreak; |
| 154 IFX_Font* m_pFont; | 154 CFX_GEFont* m_pFont; |
| 155 FX_FLOAT m_fFontSize; | 155 FX_FLOAT m_fFontSize; |
| 156 FX_FLOAT m_fLineSpace; | 156 FX_FLOAT m_fLineSpace; |
| 157 FX_FLOAT m_fLinePos; | 157 FX_FLOAT m_fLinePos; |
| 158 FX_FLOAT m_fTolerance; | 158 FX_FLOAT m_fTolerance; |
| 159 int32_t m_iAlignment; | 159 int32_t m_iAlignment; |
| 160 int32_t m_iTxtBkAlignment; | 160 int32_t m_iTxtBkAlignment; |
| 161 int32_t* m_pCharWidths; | 161 int32_t* m_pCharWidths; |
| 162 int32_t m_iChars; | 162 int32_t m_iChars; |
| 163 int32_t* m_pEllCharWidths; | 163 int32_t* m_pEllCharWidths; |
| 164 int32_t m_iEllChars; | 164 int32_t m_iEllChars; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 178 int32_t m_iCurPiece; | 178 int32_t m_iCurPiece; |
| 179 int32_t m_iTotalLines; | 179 int32_t m_iTotalLines; |
| 180 FXTEXT_CHARPOS* m_pCharPos; | 180 FXTEXT_CHARPOS* m_pCharPos; |
| 181 int32_t m_iCharPosSize; | 181 int32_t m_iCharPosSize; |
| 182 std::unique_ptr<CFDE_RenderDevice> m_pRenderDevice; | 182 std::unique_ptr<CFDE_RenderDevice> m_pRenderDevice; |
| 183 CFX_Int32Array m_hotKeys; | 183 CFX_Int32Array m_hotKeys; |
| 184 CFX_RectFArray m_rectArray; | 184 CFX_RectFArray m_rectArray; |
| 185 }; | 185 }; |
| 186 | 186 |
| 187 #endif // XFA_FDE_TTO_FDE_TEXTOUT_H_ | 187 #endif // XFA_FDE_TTO_FDE_TEXTOUT_H_ |
| OLD | NEW |