OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |