Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Side by Side Diff: xfa/fde/ifde_txtedtengine.h

Issue 2072803002: Make code compile with clang_use_chrome_plugin (final) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fde/fde_object.h ('k') | xfa/fde/tto/fde_textout.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_IFDE_TXTEDTENGINE_H_ 7 #ifndef XFA_FDE_IFDE_TXTEDTENGINE_H_
8 #define XFA_FDE_IFDE_TXTEDTENGINE_H_ 8 #define XFA_FDE_IFDE_TXTEDTENGINE_H_
9 9
10 #include "core/fxge/include/fx_dib.h" 10 #include "core/fxge/include/fx_dib.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 }; 75 };
76 76
77 enum FDE_TXTEDIT_LINEEND { 77 enum FDE_TXTEDIT_LINEEND {
78 FDE_TXTEDIT_LINEEND_Auto, 78 FDE_TXTEDIT_LINEEND_Auto,
79 FDE_TXTEDIT_LINEEND_CRLF, 79 FDE_TXTEDIT_LINEEND_CRLF,
80 FDE_TXTEDIT_LINEEND_CR, 80 FDE_TXTEDIT_LINEEND_CR,
81 FDE_TXTEDIT_LINEEND_LF, 81 FDE_TXTEDIT_LINEEND_LF,
82 }; 82 };
83 83
84 struct FDE_TXTEDTPARAMS { 84 struct FDE_TXTEDTPARAMS {
85 FDE_TXTEDTPARAMS() 85 FDE_TXTEDTPARAMS();
86 : fPlateWidth(0),
87 fPlateHeight(0),
88 nLineCount(0),
89 dwLayoutStyles(0),
90 dwAlignment(0),
91 dwMode(0),
92 pFont(nullptr),
93 fFontSize(10.0f),
94 dwFontColor(0xff000000),
95 fLineSpace(10.0f),
96 fTabWidth(36),
97 bTabEquidistant(FALSE),
98 wDefChar(0xFEFF),
99 wLineBreakChar('\n'),
100 nCharRotation(0),
101 nLineEnd(0),
102 nHorzScale(100),
103 fCharSpace(0),
104 pEventSink(nullptr) {}
105 86
106 FX_FLOAT fPlateWidth; 87 FX_FLOAT fPlateWidth;
107 FX_FLOAT fPlateHeight; 88 FX_FLOAT fPlateHeight;
108 int32_t nLineCount; 89 int32_t nLineCount;
109 uint32_t dwLayoutStyles; 90 uint32_t dwLayoutStyles;
110 uint32_t dwAlignment; 91 uint32_t dwAlignment;
111 uint32_t dwMode; 92 uint32_t dwMode;
112 CFGAS_GEFont* pFont; 93 CFGAS_GEFont* pFont;
113 FX_FLOAT fFontSize; 94 FX_FLOAT fFontSize;
114 FX_ARGB dwFontColor; 95 FX_ARGB dwFontColor;
115 FX_FLOAT fLineSpace; 96 FX_FLOAT fLineSpace;
116 FX_FLOAT fTabWidth; 97 FX_FLOAT fTabWidth;
117 FX_BOOL bTabEquidistant; 98 FX_BOOL bTabEquidistant;
118 FX_WCHAR wDefChar; 99 FX_WCHAR wDefChar;
119 FX_WCHAR wLineBreakChar; 100 FX_WCHAR wLineBreakChar;
120 int32_t nCharRotation; 101 int32_t nCharRotation;
121 int32_t nLineEnd; 102 int32_t nLineEnd;
122 int32_t nHorzScale; 103 int32_t nHorzScale;
123 FX_FLOAT fCharSpace; 104 FX_FLOAT fCharSpace;
124 CFWL_EditImp* pEventSink; 105 CFWL_EditImp* pEventSink;
125 }; 106 };
126 107
127 enum FDE_TXTEDT_TEXTCHANGE_TYPE { 108 enum FDE_TXTEDT_TEXTCHANGE_TYPE {
128 FDE_TXTEDT_TEXTCHANGE_TYPE_Insert = 0, 109 FDE_TXTEDT_TEXTCHANGE_TYPE_Insert = 0,
129 FDE_TXTEDT_TEXTCHANGE_TYPE_Delete, 110 FDE_TXTEDT_TEXTCHANGE_TYPE_Delete,
130 FDE_TXTEDT_TEXTCHANGE_TYPE_Replace, 111 FDE_TXTEDT_TEXTCHANGE_TYPE_Replace,
131 }; 112 };
132 113
133 struct FDE_TXTEDT_TEXTCHANGE_INFO { 114 struct FDE_TXTEDT_TEXTCHANGE_INFO {
115 FDE_TXTEDT_TEXTCHANGE_INFO();
116 ~FDE_TXTEDT_TEXTCHANGE_INFO();
117
134 int32_t nChangeType; 118 int32_t nChangeType;
135 CFX_WideString wsInsert; 119 CFX_WideString wsInsert;
136 CFX_WideString wsDelete; 120 CFX_WideString wsDelete;
137 CFX_WideString wsPrevText; 121 CFX_WideString wsPrevText;
138 }; 122 };
139 123
140 #endif // XFA_FDE_IFDE_TXTEDTENGINE_H_ 124 #endif // XFA_FDE_IFDE_TXTEDTENGINE_H_
OLDNEW
« no previous file with comments | « xfa/fde/fde_object.h ('k') | xfa/fde/tto/fde_textout.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698