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

Side by Side Diff: xfa/fee/ifde_txtedtbuf.h

Issue 1825953002: Move core/include/fxcrt to core/fxcrt/include. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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/fee/fx_wordbreak/fx_wordbreak_impl.h ('k') | xfa/fgas/crt/fgas_algorithm.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_FEE_IFDE_TXTEDTBUF_H_ 7 #ifndef XFA_FEE_IFDE_TXTEDTBUF_H_
8 #define XFA_FEE_IFDE_TXTEDTBUF_H_ 8 #define XFA_FEE_IFDE_TXTEDTBUF_H_
9 9
10 #include "core/include/fxcrt/fx_basic.h" 10 #include "core/fxcrt/include/fx_basic.h"
11 11
12 #define FDE_DEFCHUNKLENGTH (1024) 12 #define FDE_DEFCHUNKLENGTH (1024)
13 13
14 class IFDE_TxtEdtBuf { 14 class IFDE_TxtEdtBuf {
15 public: 15 public:
16 virtual ~IFDE_TxtEdtBuf() {} 16 virtual ~IFDE_TxtEdtBuf() {}
17 virtual void Release() = 0; 17 virtual void Release() = 0;
18 18
19 virtual FX_BOOL SetChunkSize(int32_t nChunkSize) = 0; 19 virtual FX_BOOL SetChunkSize(int32_t nChunkSize) = 0;
20 virtual int32_t GetChunkSize() const = 0; 20 virtual int32_t GetChunkSize() const = 0;
21 virtual int32_t GetTextLength() const = 0; 21 virtual int32_t GetTextLength() const = 0;
22 virtual void SetText(const CFX_WideString& wsText) = 0; 22 virtual void SetText(const CFX_WideString& wsText) = 0;
23 virtual void GetText(CFX_WideString& wsText) const = 0; 23 virtual void GetText(CFX_WideString& wsText) const = 0;
24 virtual FX_WCHAR GetCharByIndex(int32_t nIndex) const = 0; 24 virtual FX_WCHAR GetCharByIndex(int32_t nIndex) const = 0;
25 virtual void GetRange(CFX_WideString& wsText, 25 virtual void GetRange(CFX_WideString& wsText,
26 int32_t nBegin, 26 int32_t nBegin,
27 int32_t nCount = -1) const = 0; 27 int32_t nCount = -1) const = 0;
28 28
29 virtual void Insert(int32_t nPos, 29 virtual void Insert(int32_t nPos,
30 const FX_WCHAR* lpText, 30 const FX_WCHAR* lpText,
31 int32_t nLength = 1) = 0; 31 int32_t nLength = 1) = 0;
32 virtual void Delete(int32_t nIndex, int32_t nLength = 1) = 0; 32 virtual void Delete(int32_t nIndex, int32_t nLength = 1) = 0;
33 33
34 virtual void Clear(FX_BOOL bRelease = TRUE) = 0; 34 virtual void Clear(FX_BOOL bRelease = TRUE) = 0;
35 35
36 virtual FX_BOOL Optimize(IFX_Pause* pPause = NULL) = 0; 36 virtual FX_BOOL Optimize(IFX_Pause* pPause = NULL) = 0;
37 }; 37 };
38 38
39 #endif // XFA_FEE_IFDE_TXTEDTBUF_H_ 39 #endif // XFA_FEE_IFDE_TXTEDTBUF_H_
OLDNEW
« no previous file with comments | « xfa/fee/fx_wordbreak/fx_wordbreak_impl.h ('k') | xfa/fgas/crt/fgas_algorithm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698