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