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 "../fpdfapi/fpdf_page.h" | 10 #include "../fpdfapi/fpdf_page.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 void PDF_GetTextStream_Unicode(CFX_WideTextBuf& buffer, CPDF_Document* pDoc, CPD
F_Dictionary* pPage, | 29 void PDF_GetTextStream_Unicode(CFX_WideTextBuf& buffer, CPDF_Document* pDoc, CPD
F_Dictionary* pPage, |
30 FX_DWORD flags); | 30 FX_DWORD flags); |
31 CFX_WideString PDF_GetFirstTextLine_Unicode(CPDF_Document* pDoc, CPDF_Dictionary
* pPage); | 31 CFX_WideString PDF_GetFirstTextLine_Unicode(CPDF_Document* pDoc, CPDF_Dictionary
* pPage); |
32 #define CHAR_ERROR -1 | 32 #define CHAR_ERROR -1 |
33 #define CHAR_NORMAL 0 | 33 #define CHAR_NORMAL 0 |
34 #define CHAR_GENERATED 1 | 34 #define CHAR_GENERATED 1 |
35 #define CHAR_UNUNICODE 2 | 35 #define CHAR_UNUNICODE 2 |
36 typedef struct { | 36 typedef struct { |
37 FX_WCHAR m_Unicode; | 37 FX_WCHAR m_Unicode; |
38 FX_WCHAR m_Charcode; | 38 FX_WCHAR m_Charcode; |
39 FX_INT32» » » m_Flag; | 39 int32_t» » » m_Flag; |
40 FX_FLOAT m_FontSize; | 40 FX_FLOAT m_FontSize; |
41 FX_FLOAT m_OriginX; | 41 FX_FLOAT m_OriginX; |
42 FX_FLOAT m_OriginY; | 42 FX_FLOAT m_OriginY; |
43 CFX_FloatRect m_CharBox; | 43 CFX_FloatRect m_CharBox; |
44 CPDF_TextObject* m_pTextObj; | 44 CPDF_TextObject* m_pTextObj; |
45 CFX_AffineMatrix m_Matrix; | 45 CFX_AffineMatrix m_Matrix; |
46 } FPDF_CHAR_INFO; | 46 } FPDF_CHAR_INFO; |
47 typedef CFX_ArrayTemplate<CFX_FloatRect> CFX_RectArray; | 47 typedef CFX_ArrayTemplate<CFX_FloatRect> CFX_RectArray; |
48 #define FPDFTEXT_LRTB 0 | 48 #define FPDFTEXT_LRTB 0 |
49 #define FPDFTEXT_RLTB 1 | 49 #define FPDFTEXT_RLTB 1 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 virtual int CountLinks() const = 0; | 162 virtual int CountLinks() const = 0; |
163 | 163 |
164 virtual CFX_WideString GetURL(int index) const = 0; | 164 virtual CFX_WideString GetURL(int index) const = 0; |
165 | 165 |
166 virtual void GetBoundedSegment(int index, int
& start, int& count) const = 0; | 166 virtual void GetBoundedSegment(int index, int
& start, int& count) const = 0; |
167 | 167 |
168 virtual void GetRects(int index, CFX_RectArra
y& rects) const = 0; | 168 virtual void GetRects(int index, CFX_RectArra
y& rects) const = 0; |
169 }; | 169 }; |
170 | 170 |
171 #endif // CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ | 171 #endif // CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ |
OLD | NEW |