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

Side by Side Diff: xfa/fgas/layout/fgas_rtfbreak.h

Issue 2003843002: Remove Release() from CFX_RTFBreak (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Consistent use of override. Created 4 years, 7 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/fxfa/app/xfa_textlayout.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 XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_ 7 #ifndef XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_
8 #define XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_ 8 #define XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_
9 9
10 #include "core/fxcrt/include/fx_ucd.h" 10 #include "core/fxcrt/include/fx_ucd.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 int32_t m_iStart; 239 int32_t m_iStart;
240 int32_t m_iWidth; 240 int32_t m_iWidth;
241 int32_t m_iArabicChars; 241 int32_t m_iArabicChars;
242 int32_t m_iMBCSChars; 242 int32_t m_iMBCSChars;
243 }; 243 };
244 244
245 class CFX_RTFBreak { 245 class CFX_RTFBreak {
246 public: 246 public:
247 CFX_RTFBreak(uint32_t dwPolicies); 247 CFX_RTFBreak(uint32_t dwPolicies);
248 ~CFX_RTFBreak(); 248 ~CFX_RTFBreak();
249 void Release() { delete this; } 249
250 void SetLineBoundary(FX_FLOAT fLineStart, FX_FLOAT fLineEnd); 250 void SetLineBoundary(FX_FLOAT fLineStart, FX_FLOAT fLineEnd);
251 void SetLineStartPos(FX_FLOAT fLinePos); 251 void SetLineStartPos(FX_FLOAT fLinePos);
252 uint32_t GetLayoutStyles() const { return m_dwLayoutStyles; } 252 uint32_t GetLayoutStyles() const { return m_dwLayoutStyles; }
253 void SetLayoutStyles(uint32_t dwLayoutStyles); 253 void SetLayoutStyles(uint32_t dwLayoutStyles);
254 void SetFont(IFX_Font* pFont); 254 void SetFont(IFX_Font* pFont);
255 void SetFontSize(FX_FLOAT fFontSize); 255 void SetFontSize(FX_FLOAT fFontSize);
256 void SetTabWidth(FX_FLOAT fTabWidth); 256 void SetTabWidth(FX_FLOAT fTabWidth);
257 void AddPositionedTab(FX_FLOAT fTabPos); 257 void AddPositionedTab(FX_FLOAT fTabPos);
258 void SetPositionedTabs(const CFX_FloatArray& tabs); 258 void SetPositionedTabs(const CFX_FloatArray& tabs);
259 void ClearPositionedTabs(); 259 void ClearPositionedTabs();
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 FX_BOOL EndBreak_SplitLine(CFX_RTFLine* pNextLine, 344 FX_BOOL EndBreak_SplitLine(CFX_RTFLine* pNextLine,
345 FX_BOOL bAllChars, 345 FX_BOOL bAllChars,
346 uint32_t dwStatus); 346 uint32_t dwStatus);
347 void EndBreak_BidiLine(CFX_TPOArray& tpos, uint32_t dwStatus); 347 void EndBreak_BidiLine(CFX_TPOArray& tpos, uint32_t dwStatus);
348 void EndBreak_Alignment(CFX_TPOArray& tpos, 348 void EndBreak_Alignment(CFX_TPOArray& tpos,
349 FX_BOOL bAllChars, 349 FX_BOOL bAllChars,
350 uint32_t dwStatus); 350 uint32_t dwStatus);
351 }; 351 };
352 352
353 #endif // XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_ 353 #endif // XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_
OLDNEW
« no previous file with comments | « no previous file | xfa/fxfa/app/xfa_textlayout.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698