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 XFA_FDE_TTO_FDE_TEXTOUT_H_ | 7 #ifndef XFA_FDE_TTO_FDE_TEXTOUT_H_ |
8 #define XFA_FDE_TTO_FDE_TEXTOUT_H_ | 8 #define XFA_FDE_TTO_FDE_TEXTOUT_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
| 13 #include "core/fxge/include/cfx_fxgedevice.h" |
| 14 #include "core/fxge/include/cfx_renderdevice.h" |
13 #include "core/fxge/include/fx_dib.h" | 15 #include "core/fxge/include/fx_dib.h" |
14 #include "core/fxge/include/fx_ge.h" | |
15 #include "xfa/fde/fde_object.h" | 16 #include "xfa/fde/fde_object.h" |
16 #include "xfa/fgas/crt/fgas_utils.h" | 17 #include "xfa/fgas/crt/fgas_utils.h" |
17 #include "xfa/fgas/font/fgas_font.h" | 18 #include "xfa/fgas/font/fgas_font.h" |
18 | 19 |
19 #define FDE_TTOSTYLE_Underline 0x0001 | 20 #define FDE_TTOSTYLE_Underline 0x0001 |
20 #define FDE_TTOSTYLE_Strikeout 0x0002 | 21 #define FDE_TTOSTYLE_Strikeout 0x0002 |
21 #define FDE_TTOSTYLE_VerticalLayout 0x0004 | 22 #define FDE_TTOSTYLE_VerticalLayout 0x0004 |
22 #define FDE_TTOSTYLE_SingleLine 0x0010 | 23 #define FDE_TTOSTYLE_SingleLine 0x0010 |
23 #define FDE_TTOSTYLE_ExpandTab 0x0020 | 24 #define FDE_TTOSTYLE_ExpandTab 0x0020 |
24 #define FDE_TTOSTYLE_HotKey 0x0040 | 25 #define FDE_TTOSTYLE_HotKey 0x0040 |
(...skipping 10 matching lines...) Expand all Loading... |
35 #define FDE_TTOALIGNMENT_CenterLeft 4 | 36 #define FDE_TTOALIGNMENT_CenterLeft 4 |
36 #define FDE_TTOALIGNMENT_Center 5 | 37 #define FDE_TTOALIGNMENT_Center 5 |
37 #define FDE_TTOALIGNMENT_CenterRight 6 | 38 #define FDE_TTOALIGNMENT_CenterRight 6 |
38 #define FDE_TTOALIGNMENT_CenterAuto 7 | 39 #define FDE_TTOALIGNMENT_CenterAuto 7 |
39 #define FDE_TTOALIGNMENT_BottomLeft 8 | 40 #define FDE_TTOALIGNMENT_BottomLeft 8 |
40 #define FDE_TTOALIGNMENT_BottomCenter 9 | 41 #define FDE_TTOALIGNMENT_BottomCenter 9 |
41 #define FDE_TTOALIGNMENT_BottomRight 10 | 42 #define FDE_TTOALIGNMENT_BottomRight 10 |
42 #define FDE_TTOALIGNMENT_BottomAuto 11 | 43 #define FDE_TTOALIGNMENT_BottomAuto 11 |
43 | 44 |
44 class CFDE_RenderDevice; | 45 class CFDE_RenderDevice; |
| 46 class CFX_RenderDevice; |
45 class CFX_TxtBreak; | 47 class CFX_TxtBreak; |
46 struct FX_TXTRUN; | 48 struct FX_TXTRUN; |
47 | 49 |
48 struct FDE_TTOPIECE { | 50 struct FDE_TTOPIECE { |
49 int32_t iStartChar; | 51 int32_t iStartChar; |
50 int32_t iChars; | 52 int32_t iChars; |
51 uint32_t dwCharStyles; | 53 uint32_t dwCharStyles; |
52 CFX_RectF rtPiece; | 54 CFX_RectF rtPiece; |
53 }; | 55 }; |
54 typedef CFX_MassArrayTemplate<FDE_TTOPIECE> CFDE_TTOPieceArray; | 56 typedef CFX_MassArrayTemplate<FDE_TTOPIECE> CFDE_TTOPieceArray; |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 int32_t m_iCurLine; | 180 int32_t m_iCurLine; |
179 int32_t m_iCurPiece; | 181 int32_t m_iCurPiece; |
180 int32_t m_iTotalLines; | 182 int32_t m_iTotalLines; |
181 std::vector<FXTEXT_CHARPOS> m_CharPos; | 183 std::vector<FXTEXT_CHARPOS> m_CharPos; |
182 std::unique_ptr<CFDE_RenderDevice> m_pRenderDevice; | 184 std::unique_ptr<CFDE_RenderDevice> m_pRenderDevice; |
183 CFX_Int32Array m_hotKeys; | 185 CFX_Int32Array m_hotKeys; |
184 CFX_RectFArray m_rectArray; | 186 CFX_RectFArray m_rectArray; |
185 }; | 187 }; |
186 | 188 |
187 #endif // XFA_FDE_TTO_FDE_TEXTOUT_H_ | 189 #endif // XFA_FDE_TTO_FDE_TEXTOUT_H_ |
OLD | NEW |