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