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_REFLOW_REFLOWENGINE_H_ | 7 #ifndef CORE_INCLUDE_REFLOW_REFLOWENGINE_H_ |
8 #define CORE_INCLUDE_REFLOW_REFLOWENGINE_H_ | 8 #define CORE_INCLUDE_REFLOW_REFLOWENGINE_H_ |
9 | 9 |
10 #include "../fpdfapi/fpdf_pageobj.h" | 10 #include "../fpdfapi/fpdf_pageobj.h" |
11 #include "../fpdfapi/fpdf_render.h" | 11 #include "../fpdfapi/fpdf_render.h" |
12 #include "../fpdfdoc/fpdf_tagged.h" | 12 #include "../fpdfdoc/fpdf_tagged.h" |
13 #include "../fpdftext/fpdf_text.h" | 13 #include "../fpdftext/fpdf_text.h" |
14 #include "fpdf_layout.h" | 14 #include "fpdf_layout.h" |
15 | 15 |
16 class IPDF_ReflowedPage | 16 class IPDF_ReflowedPage |
17 { | 17 { |
18 public: | 18 public: |
19 static IPDF_ReflowedPage* Create(); | 19 static IPDF_ReflowedPage* Create(); |
20 | 20 |
21 virtual ~IPDF_ReflowedPage() {} | 21 virtual ~IPDF_ReflowedPage() {} |
22 virtual CFX_PrivateData* GetPrivateDataCtrl() = 0; | 22 virtual CFX_PrivateData* GetPrivateDataCtrl() = 0; |
23 | 23 |
24 | 24 |
25 virtual void» » GetDisplayMatrix(CFX_AffineMatrix& matrix, FX_IN
T32 xPos, FX_INT32 yPos, FX_INT32 xSize, FX_INT32 ySize, FX_INT32 iRotate, const
CFX_AffineMatrix* pPageMatrix) = 0; | 25 virtual void» » GetDisplayMatrix(CFX_AffineMatrix& matrix, int32
_t xPos, int32_t yPos, int32_t xSize, int32_t ySize, int32_t iRotate, const CFX_
AffineMatrix* pPageMatrix) = 0; |
26 virtual FX_FLOAT GetPageHeight() = 0; | 26 virtual FX_FLOAT GetPageHeight() = 0; |
27 virtual FX_FLOAT GetPageWidth() = 0; | 27 virtual FX_FLOAT GetPageWidth() = 0; |
28 virtual void» » FocusGetData(const CFX_AffineMatrix matrix, FX_I
NT32 x, FX_INT32 y, CFX_ByteString& str) = 0; | 28 virtual void» » FocusGetData(const CFX_AffineMatrix matrix, int3
2_t x, int32_t y, CFX_ByteString& str) = 0; |
29 virtual FX_BOOL» » FocusGetPosition(const CFX_AffineMatrix matrix,
CFX_ByteString str, FX_INT32& x, FX_INT32& y) = 0; | 29 virtual FX_BOOL» » FocusGetPosition(const CFX_AffineMatrix matrix,
CFX_ByteString str, int32_t& x, int32_t& y) = 0; |
30 }; | 30 }; |
31 typedef struct _RF_ParseStyle { | 31 typedef struct _RF_ParseStyle { |
32 _RF_ParseStyle() | 32 _RF_ParseStyle() |
33 { | 33 { |
34 m_LineSpace = 0; | 34 m_LineSpace = 0; |
35 }; | 35 }; |
36 FX_FLOAT m_LineSpace; | 36 FX_FLOAT m_LineSpace; |
37 } RF_ParseStyle; | 37 } RF_ParseStyle; |
38 class IPDF_ProgressiveReflowPageParser | 38 class IPDF_ProgressiveReflowPageParser |
39 { | 39 { |
(...skipping 30 matching lines...) Expand all Loading... |
70 virtual int GetPosition() = 0; | 70 virtual int GetPosition() = 0; |
71 | 71 |
72 | 72 |
73 virtual void Clear() = 0; | 73 virtual void Clear() = 0; |
74 }; | 74 }; |
75 IPDF_ReflowedPage* Create_ReflowPage(); | 75 IPDF_ReflowedPage* Create_ReflowPage(); |
76 IPDF_ProgressiveReflowPageParser* Create_ReflowPageParser(); | 76 IPDF_ProgressiveReflowPageParser* Create_ReflowPageParser(); |
77 IPDF_ProgressiveReflowPageRender* Create_ReflowPageRender(); | 77 IPDF_ProgressiveReflowPageRender* Create_ReflowPageRender(); |
78 | 78 |
79 #endif // CORE_INCLUDE_REFLOW_REFLOWENGINE_H_ | 79 #endif // CORE_INCLUDE_REFLOW_REFLOWENGINE_H_ |
OLD | NEW |