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_SRC_FPDFTEXT_TEXT_INT_H_ | 7 #ifndef CORE_SRC_FPDFTEXT_TEXT_INT_H_ |
8 #define CORE_SRC_FPDFTEXT_TEXT_INT_H_ | 8 #define CORE_SRC_FPDFTEXT_TEXT_INT_H_ |
9 | 9 |
10 #include "../../include/fpdftext/fpdf_text.h" | 10 #include "../../include/fpdftext/fpdf_text.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 class CPDF_TextPage : public IPDF_TextPage { | 53 class CPDF_TextPage : public IPDF_TextPage { |
54 public: | 54 public: |
55 CPDF_TextPage(const CPDF_Page* pPage, int flags = 0); | 55 CPDF_TextPage(const CPDF_Page* pPage, int flags = 0); |
56 CPDF_TextPage(const CPDF_PageObjects* pPage, int flags = 0); | 56 CPDF_TextPage(const CPDF_PageObjects* pPage, int flags = 0); |
57 CPDF_TextPage(const CPDF_Page* pPage, CPDFText_ParseOptions ParserOptions); | 57 CPDF_TextPage(const CPDF_Page* pPage, CPDFText_ParseOptions ParserOptions); |
58 ~CPDF_TextPage() override {} | 58 ~CPDF_TextPage() override {} |
59 | 59 |
60 // IPDF_TextPage | 60 // IPDF_TextPage |
61 FX_BOOL ParseTextPage() override; | 61 FX_BOOL ParseTextPage() override; |
62 void NormalizeObjects(FX_BOOL bNormalize) override; | 62 void NormalizeObjects(FX_BOOL bNormalize) override; |
63 FX_BOOL IsParsered() const override { return m_IsParsered; } | 63 bool IsParsed() const override { return m_IsParsered; } |
64 int CharIndexFromTextIndex(int TextIndex) const override; | 64 int CharIndexFromTextIndex(int TextIndex) const override; |
65 int TextIndexFromCharIndex(int CharIndex) const override; | 65 int TextIndexFromCharIndex(int CharIndex) const override; |
66 int CountChars() const override; | 66 int CountChars() const override; |
67 void GetCharInfo(int index, FPDF_CHAR_INFO& info) const override; | 67 void GetCharInfo(int index, FPDF_CHAR_INFO& info) const override; |
68 void GetRectArray(int start, | 68 void GetRectArray(int start, |
69 int nCount, | 69 int nCount, |
70 CFX_RectArray& rectArray) const override; | 70 CFX_RectArray& rectArray) const override; |
71 int GetIndexAtPos(CPDF_Point point, | 71 int GetIndexAtPos(CPDF_Point point, |
72 FX_FLOAT xTolerance, | 72 FX_FLOAT xTolerance, |
73 FX_FLOAT yTolerance) const override; | 73 FX_FLOAT yTolerance) const override; |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 238 |
239 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst); | 239 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst); |
240 void NormalizeString(CFX_WideString& str); | 240 void NormalizeString(CFX_WideString& str); |
241 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest); | 241 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest); |
242 void GetTextStream_Unicode(CFX_WideTextBuf& buffer, | 242 void GetTextStream_Unicode(CFX_WideTextBuf& buffer, |
243 CPDF_PageObjects* pPage, | 243 CPDF_PageObjects* pPage, |
244 FX_BOOL bUseLF, | 244 FX_BOOL bUseLF, |
245 CFX_PtrArray* pObjArray); | 245 CFX_PtrArray* pObjArray); |
246 | 246 |
247 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ | 247 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ |
OLD | NEW |