Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(517)

Side by Side Diff: xfa/fde/tto/fde_textout.h

Issue 2037563002: Replace IFGAS_Font with underlying concrete type (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fde/ifde_txtedtengine.h ('k') | xfa/fde/tto/fde_textout.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(IFGAS_Font* pFont); 78 void SetFont(CFGAS_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
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 IFGAS_Font* m_pFont; 154 CFGAS_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
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_
OLDNEW
« no previous file with comments | « xfa/fde/ifde_txtedtengine.h ('k') | xfa/fde/tto/fde_textout.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698