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

Side by Side Diff: xfa/fgas/layout/fgas_textbreak.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/fgas/layout/fgas_rtfbreak.cpp ('k') | xfa/fgas/layout/fgas_textbreak.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_FGAS_LAYOUT_FGAS_TEXTBREAK_H_ 7 #ifndef XFA_FGAS_LAYOUT_FGAS_TEXTBREAK_H_
8 #define XFA_FGAS_LAYOUT_FGAS_TEXTBREAK_H_ 8 #define XFA_FGAS_LAYOUT_FGAS_TEXTBREAK_H_
9 9
10 #include "core/fxcrt/include/fx_ucd.h" 10 #include "core/fxcrt/include/fx_ucd.h"
11 #include "core/fxge/include/fx_ge.h" 11 #include "core/fxge/include/fx_ge.h"
12 #include "xfa/fgas/crt/fgas_utils.h" 12 #include "xfa/fgas/crt/fgas_utils.h"
13 #include "xfa/fgas/layout/fgas_unicode.h" 13 #include "xfa/fgas/layout/fgas_unicode.h"
14 14
15 class CFX_Char; 15 class CFX_Char;
16 class CFGAS_GEFont;
16 class CFX_TxtChar; 17 class CFX_TxtChar;
17 class CFX_TxtPiece; 18 class CFX_TxtPiece;
18 class IFGAS_Font;
19 class IFX_TxtAccess; 19 class IFX_TxtAccess;
20 20
21 #define FX_TXTBREAKPOLICY_None 0x00 21 #define FX_TXTBREAKPOLICY_None 0x00
22 #define FX_TXTBREAKPOLICY_Pagination 0x01 22 #define FX_TXTBREAKPOLICY_Pagination 0x01
23 #define FX_TXTBREAKPOLICY_SpaceBreak 0x02 23 #define FX_TXTBREAKPOLICY_SpaceBreak 0x02
24 #define FX_TXTBREAKPOLICY_NumberBreak 0x04 24 #define FX_TXTBREAKPOLICY_NumberBreak 0x04
25 #define FX_TXTBREAK_None 0x00 25 #define FX_TXTBREAK_None 0x00
26 #define FX_TXTBREAK_PieceBreak 0x01 26 #define FX_TXTBREAK_PieceBreak 0x01
27 #define FX_TXTBREAK_LineBreak 0x02 27 #define FX_TXTBREAK_LineBreak 0x02
28 #define FX_TXTBREAK_ParagraphBreak 0x03 28 #define FX_TXTBREAK_ParagraphBreak 0x03
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 dwCharStyles(0), 96 dwCharStyles(0),
97 pRect(nullptr), 97 pRect(nullptr),
98 wLineBreakChar(L'\n'), 98 wLineBreakChar(L'\n'),
99 bSkipSpace(TRUE) {} 99 bSkipSpace(TRUE) {}
100 100
101 IFX_TxtAccess* pAccess; 101 IFX_TxtAccess* pAccess;
102 const FDE_TEXTEDITPIECE* pIdentity; 102 const FDE_TEXTEDITPIECE* pIdentity;
103 CFX_WideString wsStr; 103 CFX_WideString wsStr;
104 int32_t* pWidths; 104 int32_t* pWidths;
105 int32_t iLength; 105 int32_t iLength;
106 IFGAS_Font* pFont; 106 CFGAS_GEFont* pFont;
107 FX_FLOAT fFontSize; 107 FX_FLOAT fFontSize;
108 uint32_t dwStyles; 108 uint32_t dwStyles;
109 int32_t iHorizontalScale; 109 int32_t iHorizontalScale;
110 int32_t iVerticalScale; 110 int32_t iVerticalScale;
111 int32_t iCharRotation; 111 int32_t iCharRotation;
112 uint32_t dwCharStyles; 112 uint32_t dwCharStyles;
113 const CFX_RectF* pRect; 113 const CFX_RectF* pRect;
114 FX_WCHAR wLineBreakChar; 114 FX_WCHAR wLineBreakChar;
115 FX_BOOL bSkipSpace; 115 FX_BOOL bSkipSpace;
116 }; 116 };
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 class CFX_TxtBreak { 226 class CFX_TxtBreak {
227 public: 227 public:
228 CFX_TxtBreak(uint32_t dwPolicies); 228 CFX_TxtBreak(uint32_t dwPolicies);
229 ~CFX_TxtBreak(); 229 ~CFX_TxtBreak();
230 230
231 void SetLineWidth(FX_FLOAT fLineWidth); 231 void SetLineWidth(FX_FLOAT fLineWidth);
232 void SetLinePos(FX_FLOAT fLinePos); 232 void SetLinePos(FX_FLOAT fLinePos);
233 uint32_t GetLayoutStyles() const { return m_dwLayoutStyles; } 233 uint32_t GetLayoutStyles() const { return m_dwLayoutStyles; }
234 void SetLayoutStyles(uint32_t dwLayoutStyles); 234 void SetLayoutStyles(uint32_t dwLayoutStyles);
235 void SetFont(IFGAS_Font* pFont); 235 void SetFont(CFGAS_GEFont* pFont);
236 void SetFontSize(FX_FLOAT fFontSize); 236 void SetFontSize(FX_FLOAT fFontSize);
237 void SetTabWidth(FX_FLOAT fTabWidth, FX_BOOL bEquidistant); 237 void SetTabWidth(FX_FLOAT fTabWidth, FX_BOOL bEquidistant);
238 void SetDefaultChar(FX_WCHAR wch); 238 void SetDefaultChar(FX_WCHAR wch);
239 void SetParagraphBreakChar(FX_WCHAR wch); 239 void SetParagraphBreakChar(FX_WCHAR wch);
240 void SetLineBreakTolerance(FX_FLOAT fTolerance); 240 void SetLineBreakTolerance(FX_FLOAT fTolerance);
241 void SetHorizontalScale(int32_t iScale); 241 void SetHorizontalScale(int32_t iScale);
242 void SetVerticalScale(int32_t iScale); 242 void SetVerticalScale(int32_t iScale);
243 void SetCharRotation(int32_t iCharRotation); 243 void SetCharRotation(int32_t iCharRotation);
244 void SetCharSpace(FX_FLOAT fCharSpace); 244 void SetCharSpace(FX_FLOAT fCharSpace);
245 void SetAlignment(int32_t iAlignment); 245 void SetAlignment(int32_t iAlignment);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 int32_t m_iLineWidth; 299 int32_t m_iLineWidth;
300 uint32_t m_dwLayoutStyles; 300 uint32_t m_dwLayoutStyles;
301 FX_BOOL m_bVertical; 301 FX_BOOL m_bVertical;
302 FX_BOOL m_bArabicContext; 302 FX_BOOL m_bArabicContext;
303 FX_BOOL m_bArabicShapes; 303 FX_BOOL m_bArabicShapes;
304 FX_BOOL m_bRTL; 304 FX_BOOL m_bRTL;
305 FX_BOOL m_bSingleLine; 305 FX_BOOL m_bSingleLine;
306 FX_BOOL m_bCombText; 306 FX_BOOL m_bCombText;
307 int32_t m_iArabicContext; 307 int32_t m_iArabicContext;
308 int32_t m_iCurArabicContext; 308 int32_t m_iCurArabicContext;
309 IFGAS_Font* m_pFont; 309 CFGAS_GEFont* m_pFont;
310 int32_t m_iFontSize; 310 int32_t m_iFontSize;
311 FX_BOOL m_bEquidistant; 311 FX_BOOL m_bEquidistant;
312 int32_t m_iTabWidth; 312 int32_t m_iTabWidth;
313 FX_WCHAR m_wDefChar; 313 FX_WCHAR m_wDefChar;
314 FX_WCHAR m_wParagBreakChar; 314 FX_WCHAR m_wParagBreakChar;
315 int32_t m_iDefChar; 315 int32_t m_iDefChar;
316 int32_t m_iLineRotation; 316 int32_t m_iLineRotation;
317 int32_t m_iCharRotation; 317 int32_t m_iCharRotation;
318 int32_t m_iRotation; 318 int32_t m_iRotation;
319 int32_t m_iAlignment; 319 int32_t m_iAlignment;
320 uint32_t m_dwContextCharStyles; 320 uint32_t m_dwContextCharStyles;
321 int32_t m_iCombWidth; 321 int32_t m_iCombWidth;
322 void* m_pUserData; 322 void* m_pUserData;
323 FX_CHARTYPE m_eCharType; 323 FX_CHARTYPE m_eCharType;
324 FX_BOOL m_bCurRTL; 324 FX_BOOL m_bCurRTL;
325 int32_t m_iCurAlignment; 325 int32_t m_iCurAlignment;
326 FX_BOOL m_bArabicNumber; 326 FX_BOOL m_bArabicNumber;
327 FX_BOOL m_bArabicComma; 327 FX_BOOL m_bArabicComma;
328 CFX_TxtLine* m_pTxtLine1; 328 CFX_TxtLine* m_pTxtLine1;
329 CFX_TxtLine* m_pTxtLine2; 329 CFX_TxtLine* m_pTxtLine2;
330 CFX_TxtLine* m_pCurLine; 330 CFX_TxtLine* m_pCurLine;
331 int32_t m_iReady; 331 int32_t m_iReady;
332 int32_t m_iTolerance; 332 int32_t m_iTolerance;
333 int32_t m_iHorScale; 333 int32_t m_iHorScale;
334 int32_t m_iVerScale; 334 int32_t m_iVerScale;
335 int32_t m_iCharSpace; 335 int32_t m_iCharSpace;
336 }; 336 };
337 337
338 #endif // XFA_FGAS_LAYOUT_FGAS_TEXTBREAK_H_ 338 #endif // XFA_FGAS_LAYOUT_FGAS_TEXTBREAK_H_
OLDNEW
« no previous file with comments | « xfa/fgas/layout/fgas_rtfbreak.cpp ('k') | xfa/fgas/layout/fgas_textbreak.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698