| 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_IMP | 7 #ifndef _FX_RTFBREAK_IMP |
| 8 #define _FX_RTFBREAK_IMP | 8 #define _FX_RTFBREAK_IMP |
| 9 | 9 |
| 10 #include "core/include/fxcrt/fx_arb.h" | 10 #include "core/include/fxcrt/fx_arb.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 int32_t m_iStart; | 60 int32_t m_iStart; |
| 61 int32_t m_iWidth; | 61 int32_t m_iWidth; |
| 62 int32_t m_iArabicChars; | 62 int32_t m_iArabicChars; |
| 63 int32_t m_iMBCSChars; | 63 int32_t m_iMBCSChars; |
| 64 }; | 64 }; |
| 65 class CFX_RTFBreak : public IFX_RTFBreak { | 65 class CFX_RTFBreak : public IFX_RTFBreak { |
| 66 public: | 66 public: |
| 67 CFX_RTFBreak(FX_DWORD dwPolicies); | 67 CFX_RTFBreak(FX_DWORD dwPolicies); |
| 68 ~CFX_RTFBreak(); | 68 ~CFX_RTFBreak(); |
| 69 virtual void Release() { delete this; } | 69 virtual void Release() { delete this; } |
| 70 virtual void SetLineWidth(FX_FLOAT fLineStart, FX_FLOAT fLineEnd); | 70 void SetLineBoundary(FX_FLOAT fLineStart, FX_FLOAT fLineEnd) override final; |
| 71 virtual void SetLinePos(FX_FLOAT fLinePos); | 71 void SetLineStartPos(FX_FLOAT fLinePos) override final; |
| 72 virtual FX_DWORD GetLayoutStyles() const { return m_dwLayoutStyles; } | 72 virtual FX_DWORD GetLayoutStyles() const { return m_dwLayoutStyles; } |
| 73 virtual void SetLayoutStyles(FX_DWORD dwLayoutStyles); | 73 virtual void SetLayoutStyles(FX_DWORD dwLayoutStyles); |
| 74 virtual void SetFont(IFX_Font* pFont); | 74 virtual void SetFont(IFX_Font* pFont); |
| 75 virtual void SetFontSize(FX_FLOAT fFontSize); | 75 virtual void SetFontSize(FX_FLOAT fFontSize); |
| 76 virtual void SetTabWidth(FX_FLOAT fTabWidth); | 76 virtual void SetTabWidth(FX_FLOAT fTabWidth); |
| 77 virtual void AddPositionedTab(FX_FLOAT fTabPos); | 77 virtual void AddPositionedTab(FX_FLOAT fTabPos); |
| 78 virtual void SetPositionedTabs(const CFX_FloatArray& tabs); | 78 virtual void SetPositionedTabs(const CFX_FloatArray& tabs); |
| 79 virtual void ClearPositionedTabs(); | 79 virtual void ClearPositionedTabs(); |
| 80 virtual void SetDefaultChar(FX_WCHAR wch); | 80 virtual void SetDefaultChar(FX_WCHAR wch); |
| 81 virtual void SetLineBreakChar(FX_WCHAR wch); | 81 virtual void SetLineBreakChar(FX_WCHAR wch); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 107 FX_DWORD AppendChar_CharCode(FX_WCHAR wch); | 107 FX_DWORD AppendChar_CharCode(FX_WCHAR wch); |
| 108 FX_DWORD AppendChar_Combination(CFX_RTFChar* pCurChar, int32_t iRotation); | 108 FX_DWORD AppendChar_Combination(CFX_RTFChar* pCurChar, int32_t iRotation); |
| 109 FX_DWORD AppendChar_Tab(CFX_RTFChar* pCurChar, int32_t iRotation); | 109 FX_DWORD AppendChar_Tab(CFX_RTFChar* pCurChar, int32_t iRotation); |
| 110 FX_DWORD AppendChar_Control(CFX_RTFChar* pCurChar, int32_t iRotation); | 110 FX_DWORD AppendChar_Control(CFX_RTFChar* pCurChar, int32_t iRotation); |
| 111 FX_DWORD AppendChar_Arabic(CFX_RTFChar* pCurChar, int32_t iRotation); | 111 FX_DWORD AppendChar_Arabic(CFX_RTFChar* pCurChar, int32_t iRotation); |
| 112 FX_DWORD AppendChar_Others(CFX_RTFChar* pCurChar, int32_t iRotation); | 112 FX_DWORD AppendChar_Others(CFX_RTFChar* pCurChar, int32_t iRotation); |
| 113 | 113 |
| 114 protected: | 114 protected: |
| 115 FX_DWORD m_dwPolicies; | 115 FX_DWORD m_dwPolicies; |
| 116 IFX_ArabicChar* m_pArabicChar; | 116 IFX_ArabicChar* m_pArabicChar; |
| 117 int32_t m_iLineStart; | 117 int32_t m_iBoundaryStart; |
| 118 int32_t m_iLineEnd; | 118 int32_t m_iBoundaryEnd; |
| 119 FX_DWORD m_dwLayoutStyles; | 119 FX_DWORD m_dwLayoutStyles; |
| 120 FX_BOOL m_bPagination; | 120 FX_BOOL m_bPagination; |
| 121 FX_BOOL m_bVertical; | 121 FX_BOOL m_bVertical; |
| 122 FX_BOOL m_bSingleLine; | 122 FX_BOOL m_bSingleLine; |
| 123 FX_BOOL m_bCharCode; | 123 FX_BOOL m_bCharCode; |
| 124 IFX_Font* m_pFont; | 124 IFX_Font* m_pFont; |
| 125 int32_t m_iFontHeight; | 125 int32_t m_iFontHeight; |
| 126 int32_t m_iFontSize; | 126 int32_t m_iFontSize; |
| 127 int32_t m_iTabWidth; | 127 int32_t m_iTabWidth; |
| 128 CFX_Int32Array m_PositionedTabs; | 128 CFX_Int32Array m_PositionedTabs; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 FX_BOOL bAllChars = FALSE); | 165 FX_BOOL bAllChars = FALSE); |
| 166 FX_BOOL EndBreak_SplitLine(CFX_RTFLine* pNextLine, | 166 FX_BOOL EndBreak_SplitLine(CFX_RTFLine* pNextLine, |
| 167 FX_BOOL bAllChars, | 167 FX_BOOL bAllChars, |
| 168 FX_DWORD dwStatus); | 168 FX_DWORD dwStatus); |
| 169 void EndBreak_BidiLine(CFX_TPOArray& tpos, FX_DWORD dwStatus); | 169 void EndBreak_BidiLine(CFX_TPOArray& tpos, FX_DWORD dwStatus); |
| 170 void EndBreak_Alignment(CFX_TPOArray& tpos, | 170 void EndBreak_Alignment(CFX_TPOArray& tpos, |
| 171 FX_BOOL bAllChars, | 171 FX_BOOL bAllChars, |
| 172 FX_DWORD dwStatus); | 172 FX_DWORD dwStatus); |
| 173 }; | 173 }; |
| 174 #endif | 174 #endif |
| OLD | NEW |