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 _REFLOWED_TEXT_PAGE_H | 7 #ifndef CORE_SRC_REFLOW_REFLOWEDTEXTPAGE_H_ |
8 #define _REFLOWED_TEXT_PAGE_H | 8 #define CORE_SRC_REFLOW_REFLOWEDTEXTPAGE_H_ |
| 9 |
9 #include "../../include/reflow/reflowengine.h" | 10 #include "../../include/reflow/reflowengine.h" |
10 #include "../../src/reflow/reflowedpage.h" | 11 #include "../../src/reflow/reflowedpage.h" |
| 12 |
11 typedef CFX_SegmentedArray<CRF_CharData*> CRF_CharDataPtrArray; | 13 typedef CFX_SegmentedArray<CRF_CharData*> CRF_CharDataPtrArray; |
12 typedef CFX_SegmentedArray<FX_INT32> CFX_CountBSINT32Array; | 14 typedef CFX_SegmentedArray<FX_INT32> CFX_CountBSINT32Array; |
13 class CRF_TextPage : public IPDF_TextPage | 15 class CRF_TextPage : public IPDF_TextPage |
14 { | 16 { |
15 public: | 17 public: |
16 CRF_TextPage(IPDF_ReflowedPage* pRefPage); | 18 CRF_TextPage(IPDF_ReflowedPage* pRefPage); |
17 | 19 |
18 virtual ~CRF_TextPage() ; | 20 virtual ~CRF_TextPage() ; |
19 FX_BOOL ParseTextPage(); | 21 FX_BOOL ParseTextPage(); |
20 void NormalizeObjects(FX_BOOL bNormalize) | 22 void NormalizeObjects(FX_BOOL bNormalize) |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 63 |
62 int GetWordBreak(int index, int direction) const; | 64 int GetWordBreak(int index, int direction) const; |
63 | 65 |
64 CFX_WideString GetPageText(int start, int nCount = -1 ) const; | 66 CFX_WideString GetPageText(int start, int nCount = -1 ) const; |
65 private: | 67 private: |
66 CPDF_ReflowedPage* m_pRefPage; | 68 CPDF_ReflowedPage* m_pRefPage; |
67 CRF_CharDataPtrArray* m_pDataList; | 69 CRF_CharDataPtrArray* m_pDataList; |
68 CFX_RectArray m_rectArray; | 70 CFX_RectArray m_rectArray; |
69 CFX_CountBSINT32Array* m_CountBSArray; | 71 CFX_CountBSINT32Array* m_CountBSArray; |
70 }; | 72 }; |
71 #endif | 73 |
| 74 #endif // CORE_SRC_REFLOW_REFLOWEDTEXTPAGE_H_ |
OLD | NEW |