OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 CORE_FPDFTEXT_INCLUDE_IPDF_TEXTPAGE_H_ | 7 #ifndef CORE_FPDFTEXT_INCLUDE_IPDF_TEXTPAGE_H_ |
8 #define CORE_FPDFTEXT_INCLUDE_IPDF_TEXTPAGE_H_ | 8 #define CORE_FPDFTEXT_INCLUDE_IPDF_TEXTPAGE_H_ |
9 | 9 |
10 #include "core/include/fxcrt/fx_coordinates.h" | 10 #include "core/fxcrt/include/fx_coordinates.h" |
11 #include "core/include/fxcrt/fx_system.h" | 11 #include "core/fxcrt/include/fx_system.h" |
12 | 12 |
13 class CPDF_TextObject; | 13 class CPDF_TextObject; |
14 class CPDF_Page; | 14 class CPDF_Page; |
15 | 15 |
16 struct FPDF_CHAR_INFO { | 16 struct FPDF_CHAR_INFO { |
17 FX_WCHAR m_Unicode; | 17 FX_WCHAR m_Unicode; |
18 FX_WCHAR m_Charcode; | 18 FX_WCHAR m_Charcode; |
19 int32_t m_Flag; | 19 int32_t m_Flag; |
20 FX_FLOAT m_FontSize; | 20 FX_FLOAT m_FontSize; |
21 FX_FLOAT m_OriginX; | 21 FX_FLOAT m_OriginX; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 FX_FLOAT top, | 61 FX_FLOAT top, |
62 FX_FLOAT right, | 62 FX_FLOAT right, |
63 FX_FLOAT bottom, | 63 FX_FLOAT bottom, |
64 FX_BOOL bContains = FALSE) = 0; | 64 FX_BOOL bContains = FALSE) = 0; |
65 virtual void GetBoundedSegment(int index, int& start, int& count) const = 0; | 65 virtual void GetBoundedSegment(int index, int& start, int& count) const = 0; |
66 virtual int GetWordBreak(int index, int direction) const = 0; | 66 virtual int GetWordBreak(int index, int direction) const = 0; |
67 virtual CFX_WideString GetPageText(int start = 0, int nCount = -1) const = 0; | 67 virtual CFX_WideString GetPageText(int start = 0, int nCount = -1) const = 0; |
68 }; | 68 }; |
69 | 69 |
70 #endif // CORE_FPDFTEXT_INCLUDE_IPDF_TEXTPAGE_H_ | 70 #endif // CORE_FPDFTEXT_INCLUDE_IPDF_TEXTPAGE_H_ |
OLD | NEW |