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_parser.h" | 10 #include "../fpdfapi/fpdf_parser.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 public: | 69 public: |
70 CPDFText_ParseOptions(); | 70 CPDFText_ParseOptions(); |
71 FX_BOOL m_bGetCharCodeOnly; | 71 FX_BOOL m_bGetCharCodeOnly; |
72 FX_BOOL m_bNormalizeObjs; | 72 FX_BOOL m_bNormalizeObjs; |
73 FX_BOOL m_bOutputHyphen; | 73 FX_BOOL m_bOutputHyphen; |
74 }; | 74 }; |
75 | 75 |
76 class IPDF_TextPage { | 76 class IPDF_TextPage { |
77 public: | 77 public: |
78 static IPDF_TextPage* CreateTextPage(const CPDF_Page* pPage, int flags = 0); | 78 static IPDF_TextPage* CreateTextPage(const CPDF_Page* pPage, int flags = 0); |
| 79 #ifdef PDF_ENABLE_XFA |
| 80 static IPDF_TextPage* CreateTextPage(const CPDF_Page* pPage, |
| 81 CPDFText_ParseOptions ParserOptions); |
| 82 static IPDF_TextPage* CreateTextPage(const CPDF_PageObjects* pObjs, |
| 83 int flags = 0); |
| 84 #endif |
79 static IPDF_TextPage* CreateReflowTextPage(IPDF_ReflowedPage* pRefPage); | 85 static IPDF_TextPage* CreateReflowTextPage(IPDF_ReflowedPage* pRefPage); |
80 | 86 |
81 virtual ~IPDF_TextPage() {} | 87 virtual ~IPDF_TextPage() {} |
82 | 88 |
83 virtual void NormalizeObjects(FX_BOOL bNormalize) = 0; | 89 virtual void NormalizeObjects(FX_BOOL bNormalize) = 0; |
84 | 90 |
85 virtual FX_BOOL ParseTextPage() = 0; | 91 virtual FX_BOOL ParseTextPage() = 0; |
86 | 92 |
87 virtual bool IsParsed() const = 0; | 93 virtual bool IsParsed() const = 0; |
88 | 94 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 virtual int CountLinks() const = 0; | 179 virtual int CountLinks() const = 0; |
174 | 180 |
175 virtual CFX_WideString GetURL(int index) const = 0; | 181 virtual CFX_WideString GetURL(int index) const = 0; |
176 | 182 |
177 virtual void GetBoundedSegment(int index, int& start, int& count) const = 0; | 183 virtual void GetBoundedSegment(int index, int& start, int& count) const = 0; |
178 | 184 |
179 virtual void GetRects(int index, CFX_RectArray& rects) const = 0; | 185 virtual void GetRects(int index, CFX_RectArray& rects) const = 0; |
180 }; | 186 }; |
181 | 187 |
182 #endif // CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ | 188 #endif // CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ |
OLD | NEW |