| 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/cfx_fxgedevice.h" | 13 #include "core/fxge/cfx_fxgedevice.h" |
| 14 #include "core/fxge/cfx_renderdevice.h" | 14 #include "core/fxge/cfx_renderdevice.h" |
| 15 #include "core/fxge/fx_dib.h" | 15 #include "core/fxge/fx_dib.h" |
| 16 #include "xfa/fde/fde_object.h" | 16 #include "xfa/fde/fde_object.h" |
| 17 #include "xfa/fgas/crt/fgas_utils.h" | 17 #include "xfa/fgas/crt/fgas_utils.h" |
| 18 #include "xfa/fgas/font/cfgas_fontmgr.h" | 18 #include "xfa/fgas/font/cfgas_fontmgr.h" |
| 19 | 19 |
| 20 #define FDE_TTOSTYLE_Underline 0x0001 | 20 #define FDE_TTOSTYLE_Underline 0x0001 |
| 21 #define FDE_TTOSTYLE_Strikeout 0x0002 | 21 #define FDE_TTOSTYLE_Strikeout 0x0002 |
| 22 #define FDE_TTOSTYLE_VerticalLayout 0x0004 | 22 #define FDE_TTOSTYLE_VerticalLayout 0x0004 |
| 23 #define FDE_TTOSTYLE_SingleLine 0x0010 | 23 #define FDE_TTOSTYLE_SingleLine 0x0010 |
| 24 #define FDE_TTOSTYLE_ExpandTab 0x0020 | 24 #define FDE_TTOSTYLE_ExpandTab 0x0020 |
| 25 #define FDE_TTOSTYLE_HotKey 0x0040 | 25 #define FDE_TTOSTYLE_HotKey 0x0040 |
| 26 #define FDE_TTOSTYLE_Ellipsis 0x0080 | 26 #define FDE_TTOSTYLE_Ellipsis 0x0080 |
| 27 #define FDE_TTOSTYLE_LineWrap 0x0100 | 27 #define FDE_TTOSTYLE_LineWrap 0x0100 |
| 28 #define FDE_TTOSTYLE_ArabicShapes 0x0200 | 28 #define FDE_TTOSTYLE_ArabicShapes 0x0200 |
| 29 #define FDE_TTOSTYLE_RTL 0x0400 | |
| 30 #define FDE_TTOSTYLE_ArabicContext 0x0800 | 29 #define FDE_TTOSTYLE_ArabicContext 0x0800 |
| 31 #define FDE_TTOSTYLE_LastLineHeight 0x1000 | 30 #define FDE_TTOSTYLE_LastLineHeight 0x1000 |
| 32 #define FDE_TTOALIGNMENT_TopLeft 0 | 31 #define FDE_TTOALIGNMENT_TopLeft 0 |
| 33 #define FDE_TTOALIGNMENT_TopCenter 1 | 32 #define FDE_TTOALIGNMENT_TopCenter 1 |
| 34 #define FDE_TTOALIGNMENT_TopRight 2 | 33 #define FDE_TTOALIGNMENT_TopRight 2 |
| 35 #define FDE_TTOALIGNMENT_TopAuto 3 | 34 #define FDE_TTOALIGNMENT_TopAuto 3 |
| 36 #define FDE_TTOALIGNMENT_CenterLeft 4 | 35 #define FDE_TTOALIGNMENT_CenterLeft 4 |
| 37 #define FDE_TTOALIGNMENT_Center 5 | 36 #define FDE_TTOALIGNMENT_Center 5 |
| 38 #define FDE_TTOALIGNMENT_CenterRight 6 | 37 #define FDE_TTOALIGNMENT_CenterRight 6 |
| 39 #define FDE_TTOALIGNMENT_CenterAuto 7 | 38 #define FDE_TTOALIGNMENT_CenterAuto 7 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 int32_t m_iCurLine; | 177 int32_t m_iCurLine; |
| 179 int32_t m_iCurPiece; | 178 int32_t m_iCurPiece; |
| 180 int32_t m_iTotalLines; | 179 int32_t m_iTotalLines; |
| 181 std::vector<FXTEXT_CHARPOS> m_CharPos; | 180 std::vector<FXTEXT_CHARPOS> m_CharPos; |
| 182 std::unique_ptr<CFDE_RenderDevice> m_pRenderDevice; | 181 std::unique_ptr<CFDE_RenderDevice> m_pRenderDevice; |
| 183 CFX_Int32Array m_hotKeys; | 182 CFX_Int32Array m_hotKeys; |
| 184 CFX_RectFArray m_rectArray; | 183 CFX_RectFArray m_rectArray; |
| 185 }; | 184 }; |
| 186 | 185 |
| 187 #endif // XFA_FDE_TTO_FDE_TEXTOUT_H_ | 186 #endif // XFA_FDE_TTO_FDE_TEXTOUT_H_ |
| OLD | NEW |