summaryrefslogtreecommitdiff
path: root/xfa/src/fee/include/ifde_txtedtbuf.h
diff options
context:
space:
mode:
authorBo Xu <bo_xu@foxitsoftware.com>2014-10-28 23:03:33 -0700
committerBo Xu <bo_xu@foxitsoftware.com>2014-11-03 11:10:11 -0800
commitfdc00a7042d912aafaabddae4d9c84199921ef23 (patch)
tree32ab8ac91cc68d2cd15b9168782a71b3f3f5e7b9 /xfa/src/fee/include/ifde_txtedtbuf.h
parente9b38fa38de2c95d8260be31c57d9272c4d127ed (diff)
downloadpdfium-fdc00a7042d912aafaabddae4d9c84199921ef23.tar.xz
Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
Diffstat (limited to 'xfa/src/fee/include/ifde_txtedtbuf.h')
-rw-r--r--xfa/src/fee/include/ifde_txtedtbuf.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/xfa/src/fee/include/ifde_txtedtbuf.h b/xfa/src/fee/include/ifde_txtedtbuf.h
new file mode 100644
index 0000000000..6cfc3ec977
--- /dev/null
+++ b/xfa/src/fee/include/ifde_txtedtbuf.h
@@ -0,0 +1,31 @@
+// Copyright 2014 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#ifndef _IFDE_TXTEDTBUF_H
+#define _IFDE_TXTEDTBUF_H
+#define FDE_DEFCHUNKLENGTH (1024)
+class IFDE_TxtEdtBuf;
+class IFDE_TxtEdtBuf
+{
+public:
+ virtual void Release() = 0;
+
+ virtual FX_BOOL SetChunkSize(FX_INT32 nChunkSize) = 0;
+ virtual FX_INT32 GetChunkSize() const = 0;
+ virtual FX_INT32 GetTextLength() const = 0;
+ virtual void SetText(const CFX_WideString &wsText) = 0;
+ virtual void GetText(CFX_WideString &wsText) const = 0;
+ virtual FX_WCHAR GetCharByIndex(FX_INT32 nIndex) const = 0;
+ virtual void GetRange(CFX_WideString &wsText, FX_INT32 nBegin, FX_INT32 nCount = - 1) const = 0;
+
+ virtual void Insert(FX_INT32 nPos, FX_LPCWSTR lpText, FX_INT32 nLength = 1) = 0;
+ virtual void Delete(FX_INT32 nIndex, FX_INT32 nLength = 1) = 0;
+
+ virtual void Clear(FX_BOOL bRelease = TRUE) = 0;
+
+ virtual FX_BOOL Optimize(IFX_Pause * pPause = NULL) = 0;
+};
+#endif