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

Side by Side Diff: xfa/src/fee/include/ifde_txtedtengine.h

Issue 1087053002: Merge to XFA: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 8 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/include/fxgraphics/fx_graphics.h ('k') | xfa/src/fee/src/fee/fde_txtedtblock.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 _IFDE_TXTEDTENGINE_H 7 #ifndef _IFDE_TXTEDTENGINE_H
8 #define _IFDE_TXTEDTENGINE_H 8 #define _IFDE_TXTEDTENGINE_H
9 class IFDE_TxtEdtBuf; 9 class IFDE_TxtEdtBuf;
10 class IFDE_TxtEdtPage; 10 class IFDE_TxtEdtPage;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 FDE_TXTEDT_MODIFY_RET_S_Part = 2, 72 FDE_TXTEDT_MODIFY_RET_S_Part = 2,
73 FDE_TXTEDT_MODIFY_RET_S_Empty = 3, 73 FDE_TXTEDT_MODIFY_RET_S_Empty = 3,
74 FDE_TXTEDT_MODIFY_RET_T_Tab = 4, 74 FDE_TXTEDT_MODIFY_RET_T_Tab = 4,
75 }; 75 };
76 enum FDE_TXTEDIT_LINEEND { 76 enum FDE_TXTEDIT_LINEEND {
77 FDE_TXTEDIT_LINEEND_Auto, 77 FDE_TXTEDIT_LINEEND_Auto,
78 FDE_TXTEDIT_LINEEND_CRLF, 78 FDE_TXTEDIT_LINEEND_CRLF,
79 FDE_TXTEDIT_LINEEND_CR, 79 FDE_TXTEDIT_LINEEND_CR,
80 FDE_TXTEDIT_LINEEND_LF, 80 FDE_TXTEDIT_LINEEND_LF,
81 }; 81 };
82 struct _FDE_TXTEDTPARAMS : public CFX_Object { 82 struct _FDE_TXTEDTPARAMS {
83 _FDE_TXTEDTPARAMS() 83 _FDE_TXTEDTPARAMS()
84 : fPlateWidth(0) 84 : fPlateWidth(0)
85 , fPlateHeight(0) 85 , fPlateHeight(0)
86 , nLineCount(0) 86 , nLineCount(0)
87 , dwLayoutStyles(0) 87 , dwLayoutStyles(0)
88 , dwAlignment(0) 88 , dwAlignment(0)
89 , dwMode(0) 89 , dwMode(0)
90 , pFont(NULL) 90 , pFont(NULL)
91 , fFontSize(10.0f) 91 , fFontSize(10.0f)
92 , dwFontColor(0xff000000) 92 , dwFontColor(0xff000000)
(...skipping 29 matching lines...) Expand all
122 FX_FLOAT fCharSpace; 122 FX_FLOAT fCharSpace;
123 IFDE_TxtEdtEventSink * pEventSink; 123 IFDE_TxtEdtEventSink * pEventSink;
124 }; 124 };
125 typedef _FDE_TXTEDTPARAMS FDE_TXTEDTPARAMS; 125 typedef _FDE_TXTEDTPARAMS FDE_TXTEDTPARAMS;
126 typedef _FDE_TXTEDTPARAMS* FDE_LPTXTEDTPARAMS; 126 typedef _FDE_TXTEDTPARAMS* FDE_LPTXTEDTPARAMS;
127 enum FDE_TXTEDT_TEXTCHANGE_TYPE { 127 enum FDE_TXTEDT_TEXTCHANGE_TYPE {
128 FDE_TXTEDT_TEXTCHANGE_TYPE_Insert = 0 , 128 FDE_TXTEDT_TEXTCHANGE_TYPE_Insert = 0 ,
129 FDE_TXTEDT_TEXTCHANGE_TYPE_Delete , 129 FDE_TXTEDT_TEXTCHANGE_TYPE_Delete ,
130 FDE_TXTEDT_TEXTCHANGE_TYPE_Replace , 130 FDE_TXTEDT_TEXTCHANGE_TYPE_Replace ,
131 }; 131 };
132 struct _FDE_TXTEDT_TEXTCHANGE_INFO : public CFX_Object { 132 struct _FDE_TXTEDT_TEXTCHANGE_INFO {
133 FX_INT32 nChangeType; 133 FX_INT32 nChangeType;
134 CFX_WideString wsInsert; 134 CFX_WideString wsInsert;
135 CFX_WideString wsDelete; 135 CFX_WideString wsDelete;
136 CFX_WideString wsPrevText; 136 CFX_WideString wsPrevText;
137 }; 137 };
138 typedef _FDE_TXTEDT_TEXTCHANGE_INFO FDE_TXTEDT_TEXTCHANGE_INFO; 138 typedef _FDE_TXTEDT_TEXTCHANGE_INFO FDE_TXTEDT_TEXTCHANGE_INFO;
139 typedef _FDE_TXTEDT_TEXTCHANGE_INFO* FDE_LPTXTEDT_TEXTCHANGE_INFO; 139 typedef _FDE_TXTEDT_TEXTCHANGE_INFO* FDE_LPTXTEDT_TEXTCHANGE_INFO;
140 class IFDE_TxtEdtEventSink 140 class IFDE_TxtEdtEventSink
141 { 141 {
142 public: 142 public:
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 }; 224 };
225 class IFDE_TxtEdtParag 225 class IFDE_TxtEdtParag
226 { 226 {
227 public: 227 public:
228 virtual FX_INT32 GetTextLength() const = 0; 228 virtual FX_INT32 GetTextLength() const = 0;
229 virtual FX_INT32 GetStartIndex() const = 0; 229 virtual FX_INT32 GetStartIndex() const = 0;
230 virtual FX_INT32 CountLines() const = 0; 230 virtual FX_INT32 CountLines() const = 0;
231 virtual void GetLineRange(FX_INT32 nLineIndex , FX_INT32& nStart, FX_INT32& nCount) const = 0; 231 virtual void GetLineRange(FX_INT32 nLineIndex , FX_INT32& nStart, FX_INT32& nCount) const = 0;
232 }; 232 };
233 #endif 233 #endif
OLDNEW
« no previous file with comments | « xfa/include/fxgraphics/fx_graphics.h ('k') | xfa/src/fee/src/fee/fde_txtedtblock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698