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

Side by Side Diff: xfa/src/fgas/src/layout/fx_rtfbreak.h

Issue 1577723004: XFA: Fix compilation warnings introduced at b9bc6b7 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 4 years, 11 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 | no next file » | 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 _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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 CFX_RTFPieceArray m_LinePieces; 59 CFX_RTFPieceArray m_LinePieces;
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 void Release() override { delete this; }
70 void SetLineBoundary(FX_FLOAT fLineStart, FX_FLOAT fLineEnd) override final; 70 void SetLineBoundary(FX_FLOAT fLineStart, FX_FLOAT fLineEnd) override final;
71 void SetLineStartPos(FX_FLOAT fLinePos) override final; 71 void SetLineStartPos(FX_FLOAT fLinePos) override final;
72 virtual FX_DWORD GetLayoutStyles() const { return m_dwLayoutStyles; } 72 FX_DWORD GetLayoutStyles() const override { return m_dwLayoutStyles; }
73 virtual void SetLayoutStyles(FX_DWORD dwLayoutStyles); 73 void SetLayoutStyles(FX_DWORD dwLayoutStyles) override;
74 virtual void SetFont(IFX_Font* pFont); 74 void SetFont(IFX_Font* pFont) override;
75 virtual void SetFontSize(FX_FLOAT fFontSize); 75 void SetFontSize(FX_FLOAT fFontSize) override;
76 virtual void SetTabWidth(FX_FLOAT fTabWidth); 76 void SetTabWidth(FX_FLOAT fTabWidth) override;
77 virtual void AddPositionedTab(FX_FLOAT fTabPos); 77 void AddPositionedTab(FX_FLOAT fTabPos) override;
78 virtual void SetPositionedTabs(const CFX_FloatArray& tabs); 78 void SetPositionedTabs(const CFX_FloatArray& tabs) override;
79 virtual void ClearPositionedTabs(); 79 void ClearPositionedTabs() override;
80 virtual void SetDefaultChar(FX_WCHAR wch); 80 void SetDefaultChar(FX_WCHAR wch) override;
81 virtual void SetLineBreakChar(FX_WCHAR wch); 81 void SetLineBreakChar(FX_WCHAR wch) override;
82 virtual void SetLineBreakTolerance(FX_FLOAT fTolerance); 82 void SetLineBreakTolerance(FX_FLOAT fTolerance) override;
83 virtual void SetHorizontalScale(int32_t iScale); 83 void SetHorizontalScale(int32_t iScale) override;
84 virtual void SetVerticalScale(int32_t iScale); 84 void SetVerticalScale(int32_t iScale) override;
85 virtual void SetCharRotation(int32_t iCharRotation); 85 void SetCharRotation(int32_t iCharRotation) override;
86 virtual void SetCharSpace(FX_FLOAT fCharSpace); 86 void SetCharSpace(FX_FLOAT fCharSpace) override;
87 virtual void SetWordSpace(FX_BOOL bDefault, FX_FLOAT fWordSpace); 87 void SetWordSpace(FX_BOOL bDefault, FX_FLOAT fWordSpace) override;
88 virtual void SetReadingOrder(FX_BOOL bRTL = FALSE); 88 void SetReadingOrder(FX_BOOL bRTL = FALSE) override;
89 virtual void SetAlignment(int32_t iAlignment = FX_RTFLINEALIGNMENT_Left); 89 void SetAlignment(int32_t iAlignment = FX_RTFLINEALIGNMENT_Left) override;
90 virtual void SetUserData(IFX_Unknown* pUserData); 90 void SetUserData(IFX_Unknown* pUserData) override;
91 virtual FX_DWORD AppendChar(FX_WCHAR wch); 91 FX_DWORD AppendChar(FX_WCHAR wch) override;
92 virtual FX_DWORD EndBreak(FX_DWORD dwStatus = FX_RTFBREAK_PieceBreak); 92 FX_DWORD EndBreak(FX_DWORD dwStatus = FX_RTFBREAK_PieceBreak) override;
93 virtual int32_t CountBreakPieces() const; 93 int32_t CountBreakPieces() const override;
94 virtual const CFX_RTFPiece* GetBreakPiece(int32_t index) const; 94 const CFX_RTFPiece* GetBreakPiece(int32_t index) const override;
95 virtual void GetLineRect(CFX_RectF& rect) const; 95 void GetLineRect(CFX_RectF& rect) const override;
96 virtual void ClearBreakPieces(); 96 void ClearBreakPieces() override;
97 virtual void Reset(); 97 void Reset() override;
98 virtual int32_t GetDisplayPos( 98 int32_t GetDisplayPos(
99 FX_LPCRTFTEXTOBJ pText, 99 FX_LPCRTFTEXTOBJ pText,
100 FXTEXT_CHARPOS* pCharPos, 100 FXTEXT_CHARPOS* pCharPos,
101 FX_BOOL bCharCode = FALSE, 101 FX_BOOL bCharCode = FALSE,
102 CFX_WideString* pWSForms = NULL, 102 CFX_WideString* pWSForms = NULL,
103 FX_AdjustCharDisplayPos pAdjustPos = NULL) const; 103 FX_AdjustCharDisplayPos pAdjustPos = NULL) const override;
104 virtual int32_t GetCharRects(FX_LPCRTFTEXTOBJ pText, 104 int32_t GetCharRects(FX_LPCRTFTEXTOBJ pText,
105 CFX_RectFArray& rtArray, 105 CFX_RectFArray& rtArray,
106 FX_BOOL bCharBBox = FALSE) const; 106 FX_BOOL bCharBBox = FALSE) const override;
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;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698