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

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

Issue 2567503002: Replace CFX_FloatArray with std::vector (Closed)
Patch Set: One less pointer Created 4 years 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 | « core/fxcrt/fx_basic.h ('k') | xfa/fgas/layout/fgas_rtfbreak.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_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 <vector>
11
10 #include "core/fxcrt/fx_basic.h" 12 #include "core/fxcrt/fx_basic.h"
11 #include "core/fxcrt/fx_ucd.h" 13 #include "core/fxcrt/fx_ucd.h"
12 #include "xfa/fgas/crt/fgas_memory.h" 14 #include "xfa/fgas/crt/fgas_memory.h"
13 #include "xfa/fgas/crt/fgas_utils.h" 15 #include "xfa/fgas/crt/fgas_utils.h"
14 #include "xfa/fgas/layout/fgas_textbreak.h" 16 #include "xfa/fgas/layout/fgas_textbreak.h"
15 #include "xfa/fgas/layout/fgas_unicode.h" 17 #include "xfa/fgas/layout/fgas_unicode.h"
16 18
17 class CFGAS_GEFont; 19 class CFGAS_GEFont;
18 20
19 #define FX_RTFBREAKPOLICY_None 0x00 21 #define FX_RTFBREAKPOLICY_None 0x00
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 ~CFX_RTFBreak(); 219 ~CFX_RTFBreak();
218 220
219 void SetLineBoundary(FX_FLOAT fLineStart, FX_FLOAT fLineEnd); 221 void SetLineBoundary(FX_FLOAT fLineStart, FX_FLOAT fLineEnd);
220 void SetLineStartPos(FX_FLOAT fLinePos); 222 void SetLineStartPos(FX_FLOAT fLinePos);
221 uint32_t GetLayoutStyles() const { return m_dwLayoutStyles; } 223 uint32_t GetLayoutStyles() const { return m_dwLayoutStyles; }
222 void SetLayoutStyles(uint32_t dwLayoutStyles); 224 void SetLayoutStyles(uint32_t dwLayoutStyles);
223 void SetFont(CFGAS_GEFont* pFont); 225 void SetFont(CFGAS_GEFont* pFont);
224 void SetFontSize(FX_FLOAT fFontSize); 226 void SetFontSize(FX_FLOAT fFontSize);
225 void SetTabWidth(FX_FLOAT fTabWidth); 227 void SetTabWidth(FX_FLOAT fTabWidth);
226 void AddPositionedTab(FX_FLOAT fTabPos); 228 void AddPositionedTab(FX_FLOAT fTabPos);
227 void SetPositionedTabs(const CFX_FloatArray& tabs); 229 void SetPositionedTabs(const std::vector<FX_FLOAT>& tabs);
228 void ClearPositionedTabs(); 230 void ClearPositionedTabs();
229 void SetDefaultChar(FX_WCHAR wch); 231 void SetDefaultChar(FX_WCHAR wch);
230 void SetLineBreakChar(FX_WCHAR wch); 232 void SetLineBreakChar(FX_WCHAR wch);
231 void SetLineBreakTolerance(FX_FLOAT fTolerance); 233 void SetLineBreakTolerance(FX_FLOAT fTolerance);
232 void SetHorizontalScale(int32_t iScale); 234 void SetHorizontalScale(int32_t iScale);
233 void SetVerticalScale(int32_t iScale); 235 void SetVerticalScale(int32_t iScale);
234 void SetCharRotation(int32_t iCharRotation); 236 void SetCharRotation(int32_t iCharRotation);
235 void SetCharSpace(FX_FLOAT fCharSpace); 237 void SetCharSpace(FX_FLOAT fCharSpace);
236 void SetWordSpace(bool bDefault, FX_FLOAT fWordSpace); 238 void SetWordSpace(bool bDefault, FX_FLOAT fWordSpace);
237 void SetReadingOrder(bool bRTL = false); 239 void SetReadingOrder(bool bRTL = false);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 FX_CHARTYPE m_eCharType; 317 FX_CHARTYPE m_eCharType;
316 uint32_t m_dwIdentity; 318 uint32_t m_dwIdentity;
317 CFX_RTFLine m_RTFLine1; 319 CFX_RTFLine m_RTFLine1;
318 CFX_RTFLine m_RTFLine2; 320 CFX_RTFLine m_RTFLine2;
319 CFX_RTFLine* m_pCurLine; 321 CFX_RTFLine* m_pCurLine;
320 int32_t m_iReady; 322 int32_t m_iReady;
321 int32_t m_iTolerance; 323 int32_t m_iTolerance;
322 }; 324 };
323 325
324 #endif // XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_ 326 #endif // XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_
OLDNEW
« no previous file with comments | « core/fxcrt/fx_basic.h ('k') | xfa/fgas/layout/fgas_rtfbreak.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698