• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef XFA_FGAS_LAYOUT_CFX_BREAKLINE_H_
8 #define XFA_FGAS_LAYOUT_CFX_BREAKLINE_H_
9 
10 #include <vector>
11 
12 #include "core/fxcrt/cfx_char.h"
13 #include "xfa/fgas/layout/cfx_breakpiece.h"
14 
15 class CFX_BreakLine {
16  public:
17   CFX_BreakLine();
18   ~CFX_BreakLine();
19 
20   int32_t CountChars() const;
21   CFX_Char* GetChar(int32_t index);
22   const CFX_Char* GetChar(int32_t index) const;
23 
24   int32_t CountPieces() const;
25   const CFX_BreakPiece* GetPiece(int32_t index) const;
26 
27   int32_t GetLineEnd() const;
28 
29   void Clear();
30 
31   std::vector<CFX_Char> m_LineChars;
32   std::vector<CFX_BreakPiece> m_LinePieces;
33   int32_t m_iStart;
34   int32_t m_iWidth;
35   int32_t m_iArabicChars;
36 };
37 
38 #endif  // XFA_FGAS_LAYOUT_CFX_BREAKLINE_H_
39