OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ | 7 #ifndef CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ |
8 #define CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ | 8 #define CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ |
9 | 9 |
10 #include "core/include/fpdfapi/fpdf_parser.h" | 10 #include "core/include/fpdfapi/fpdf_parser.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #define CHAR_UNUNICODE 2 | 44 #define CHAR_UNUNICODE 2 |
45 typedef struct { | 45 typedef struct { |
46 FX_WCHAR m_Unicode; | 46 FX_WCHAR m_Unicode; |
47 FX_WCHAR m_Charcode; | 47 FX_WCHAR m_Charcode; |
48 int32_t m_Flag; | 48 int32_t m_Flag; |
49 FX_FLOAT m_FontSize; | 49 FX_FLOAT m_FontSize; |
50 FX_FLOAT m_OriginX; | 50 FX_FLOAT m_OriginX; |
51 FX_FLOAT m_OriginY; | 51 FX_FLOAT m_OriginY; |
52 CFX_FloatRect m_CharBox; | 52 CFX_FloatRect m_CharBox; |
53 CPDF_TextObject* m_pTextObj; | 53 CPDF_TextObject* m_pTextObj; |
54 CFX_AffineMatrix m_Matrix; | 54 CFX_Matrix m_Matrix; |
55 } FPDF_CHAR_INFO; | 55 } FPDF_CHAR_INFO; |
56 typedef CFX_ArrayTemplate<CFX_FloatRect> CFX_RectArray; | 56 typedef CFX_ArrayTemplate<CFX_FloatRect> CFX_RectArray; |
57 #define FPDFTEXT_LRTB 0 | 57 #define FPDFTEXT_LRTB 0 |
58 #define FPDFTEXT_RLTB 1 | 58 #define FPDFTEXT_RLTB 1 |
59 #define FPDFTEXT_TBRL 2 | 59 #define FPDFTEXT_TBRL 2 |
60 #define FPDFTEXT_LEFT -1 | 60 #define FPDFTEXT_LEFT -1 |
61 #define FPDFTEXT_RIGHT 1 | 61 #define FPDFTEXT_RIGHT 1 |
62 #define FPDFTEXT_UP -2 | 62 #define FPDFTEXT_UP -2 |
63 #define FPDFTEXT_DOWN 2 | 63 #define FPDFTEXT_DOWN 2 |
64 #define FPDFTEXT_WRITINGMODE_UNKNOW 0 | 64 #define FPDFTEXT_WRITINGMODE_UNKNOW 0 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 virtual int CountLinks() const = 0; | 173 virtual int CountLinks() const = 0; |
174 | 174 |
175 virtual CFX_WideString GetURL(int index) const = 0; | 175 virtual CFX_WideString GetURL(int index) const = 0; |
176 | 176 |
177 virtual void GetBoundedSegment(int index, int& start, int& count) const = 0; | 177 virtual void GetBoundedSegment(int index, int& start, int& count) const = 0; |
178 | 178 |
179 virtual void GetRects(int index, CFX_RectArray& rects) const = 0; | 179 virtual void GetRects(int index, CFX_RectArray& rects) const = 0; |
180 }; | 180 }; |
181 | 181 |
182 #endif // CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ | 182 #endif // CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ |
OLD | NEW |