• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016 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 CORE_FPDFDOC_CLINE_H_
8 #define CORE_FPDFDOC_CLINE_H_
9 
10 #include "core/fpdfdoc/cpvt_lineinfo.h"
11 #include "core/fpdfdoc/cpvt_wordplace.h"
12 
13 class CLine {
14  public:
15   CLine();
16   explicit CLine(const CPVT_LineInfo& lineinfo);
17   ~CLine();
18 
19   CPVT_WordPlace GetBeginWordPlace() const;
20   CPVT_WordPlace GetEndWordPlace() const;
21   CPVT_WordPlace GetPrevWordPlace(const CPVT_WordPlace& place) const;
22   CPVT_WordPlace GetNextWordPlace(const CPVT_WordPlace& place) const;
23   CPVT_WordPlace LinePlace;
24   CPVT_LineInfo m_LineInfo;
25 };
26 
27 #endif  // CORE_FPDFDOC_CLINE_H_
28