From 5c529e6318d46121a5ea38d3edb42c8d9f580fe8 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 21 Mar 2017 11:31:25 -0400 Subject: Combine more RTF and TXT Break code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This Cl conbines several more methods from RTFBreak and TXTBreak into the common Break baseclass. Change-Id: Ibe2236eb4fd30faab239e7c9c8b578164014eb39 Reviewed-on: https://pdfium-review.googlesource.com/3108 Reviewed-by: Nicolás Peña Commit-Queue: dsinclair --- xfa/fgas/layout/fgas_textbreak.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'xfa/fgas/layout/fgas_textbreak.h') diff --git a/xfa/fgas/layout/fgas_textbreak.h b/xfa/fgas/layout/fgas_textbreak.h index 439a7ee15b..81aaf58219 100644 --- a/xfa/fgas/layout/fgas_textbreak.h +++ b/xfa/fgas/layout/fgas_textbreak.h @@ -64,9 +64,6 @@ class CFX_TxtBreak : public CFX_Break { void SetAlignment(int32_t iAlignment); void SetCombWidth(float fCombWidth); CFX_BreakType EndBreak(CFX_BreakType dwStatus); - int32_t CountBreakPieces() const; - const CFX_BreakPiece* GetBreakPiece(int32_t index) const; - void ClearBreakPieces(); int32_t GetDisplayPos(const FX_TXTRUN* pTxtRun, FXTEXT_CHARPOS* pCharPos, @@ -84,10 +81,6 @@ class CFX_TxtBreak : public CFX_Break { CFX_BreakType AppendChar_Arabic(CFX_Char* pCurChar); CFX_BreakType AppendChar_Others(CFX_Char* pCurChar); - void SetBreakStatus() override; - CFX_Char* GetLastChar(int32_t index, bool bOmitChar = true) const; - bool HasTxtLine() const { return m_iReadyLineIndex >= 0; } - FX_CHARTYPE GetUnifiedCharType(FX_CHARTYPE dwType) const; void ResetContextCharStyles(); bool EndBreak_SplitLine(CFX_BreakLine* pNextLine, bool bAllChars); void EndBreak_BidiLine(std::deque* tpos, CFX_BreakType dwStatus); -- cgit v1.2.3