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

Side by Side Diff: xfa/src/fgas/include/fx_rbk.h

Issue 1573893002: Fix an assertion failure in CFX_RTFBreak::SetLineWidth() (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: nit Created 4 years, 11 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 | « no previous file | xfa/src/fgas/src/layout/fx_rtfbreak.h » ('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 _FX_RTFBREAK 7 #ifndef _FX_RTFBREAK
8 #define _FX_RTFBREAK 8 #define _FX_RTFBREAK
9 class IFX_Unknown; 9 class IFX_Unknown;
10 class IFX_Font; 10 class IFX_Font;
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 FX_DWORD m_dwIdentity; 180 FX_DWORD m_dwIdentity;
181 CFX_RTFCharArray* m_pChars; 181 CFX_RTFCharArray* m_pChars;
182 IFX_Unknown* m_pUserData; 182 IFX_Unknown* m_pUserData;
183 }; 183 };
184 typedef CFX_BaseArrayTemplate<CFX_RTFPiece> CFX_RTFPieceArray; 184 typedef CFX_BaseArrayTemplate<CFX_RTFPiece> CFX_RTFPieceArray;
185 class IFX_RTFBreak { 185 class IFX_RTFBreak {
186 public: 186 public:
187 static IFX_RTFBreak* Create(FX_DWORD dwPolicies); 187 static IFX_RTFBreak* Create(FX_DWORD dwPolicies);
188 virtual ~IFX_RTFBreak() {} 188 virtual ~IFX_RTFBreak() {}
189 virtual void Release() = 0; 189 virtual void Release() = 0;
190 virtual void SetLineWidth(FX_FLOAT fLineStart, FX_FLOAT fLineEnd) = 0; 190 virtual void SetLineBoundary(FX_FLOAT fLineStart, FX_FLOAT fLineEnd) = 0;
191 virtual void SetLinePos(FX_FLOAT fLinePos) = 0; 191 virtual void SetLineStartPos(FX_FLOAT fLinePos) = 0;
192 virtual FX_DWORD GetLayoutStyles() const = 0; 192 virtual FX_DWORD GetLayoutStyles() const = 0;
193 virtual void SetLayoutStyles(FX_DWORD dwLayoutStyles) = 0; 193 virtual void SetLayoutStyles(FX_DWORD dwLayoutStyles) = 0;
194 virtual void SetFont(IFX_Font* pFont) = 0; 194 virtual void SetFont(IFX_Font* pFont) = 0;
195 virtual void SetFontSize(FX_FLOAT fFontSize) = 0; 195 virtual void SetFontSize(FX_FLOAT fFontSize) = 0;
196 virtual void SetTabWidth(FX_FLOAT fTabWidth) = 0; 196 virtual void SetTabWidth(FX_FLOAT fTabWidth) = 0;
197 virtual void AddPositionedTab(FX_FLOAT fTabPos) = 0; 197 virtual void AddPositionedTab(FX_FLOAT fTabPos) = 0;
198 virtual void SetPositionedTabs(const CFX_FloatArray& tabs) = 0; 198 virtual void SetPositionedTabs(const CFX_FloatArray& tabs) = 0;
199 virtual void ClearPositionedTabs() = 0; 199 virtual void ClearPositionedTabs() = 0;
200 virtual void SetDefaultChar(FX_WCHAR wch) = 0; 200 virtual void SetDefaultChar(FX_WCHAR wch) = 0;
201 virtual void SetLineBreakChar(FX_WCHAR wch) = 0; 201 virtual void SetLineBreakChar(FX_WCHAR wch) = 0;
(...skipping 17 matching lines...) Expand all
219 FX_LPCRTFTEXTOBJ pText, 219 FX_LPCRTFTEXTOBJ pText,
220 FXTEXT_CHARPOS* pCharPos, 220 FXTEXT_CHARPOS* pCharPos,
221 FX_BOOL bCharCode = FALSE, 221 FX_BOOL bCharCode = FALSE,
222 CFX_WideString* pWSForms = NULL, 222 CFX_WideString* pWSForms = NULL,
223 FX_AdjustCharDisplayPos pAdjustPos = NULL) const = 0; 223 FX_AdjustCharDisplayPos pAdjustPos = NULL) const = 0;
224 virtual int32_t GetCharRects(FX_LPCRTFTEXTOBJ pText, 224 virtual int32_t GetCharRects(FX_LPCRTFTEXTOBJ pText,
225 CFX_RectFArray& rtArray, 225 CFX_RectFArray& rtArray,
226 FX_BOOL bCharBBox = FALSE) const = 0; 226 FX_BOOL bCharBBox = FALSE) const = 0;
227 }; 227 };
228 #endif 228 #endif
OLDNEW
« no previous file with comments | « no previous file | xfa/src/fgas/src/layout/fx_rtfbreak.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698