| 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_CFDE_TXTEDTBUF_H_ |   7 #ifndef XFA_FDE_CFDE_TXTEDTBUF_H_ | 
|   8 #define XFA_FDE_CFDE_TXTEDTBUF_H_ |   8 #define XFA_FDE_CFDE_TXTEDTBUF_H_ | 
|   9  |   9  | 
|  10 #include "core/fxcrt/include/fx_basic.h" |  10 #include "core/fxcrt/include/fx_basic.h" | 
|  11 #include "core/fxcrt/include/fx_system.h" |  11 #include "core/fxcrt/include/fx_system.h" | 
|  12  |  12  | 
|  13 class IFX_MemoryAllocator; |  13 class IFX_MemoryAllocator; | 
|  14 class IFX_Pause; |  14 class IFX_Pause; | 
|  15  |  15  | 
|  16 class CFDE_TxtEdtBuf { |  16 class CFDE_TxtEdtBuf { | 
|  17  public: |  17  public: | 
|  18   CFDE_TxtEdtBuf(); |  18   CFDE_TxtEdtBuf(); | 
|  19   ~CFDE_TxtEdtBuf(); |  19   ~CFDE_TxtEdtBuf(); | 
|  20  |  20  | 
|  21   FX_BOOL SetChunkSize(int32_t nChunkSize); |  | 
|  22   int32_t GetChunkSize() const; |  21   int32_t GetChunkSize() const; | 
|  23   int32_t GetTextLength() const; |  22   int32_t GetTextLength() const; | 
|  24   void SetText(const CFX_WideString& wsText); |  23   void SetText(const CFX_WideString& wsText); | 
|  25   void GetText(CFX_WideString& wsText) const; |  24   void GetText(CFX_WideString& wsText) const; | 
|  26   FX_WCHAR GetCharByIndex(int32_t nIndex) const; |  25   FX_WCHAR GetCharByIndex(int32_t nIndex) const; | 
|  27   void GetRange(CFX_WideString& wsText, |  26   void GetRange(CFX_WideString& wsText, | 
|  28                 int32_t nBegin, |  27                 int32_t nBegin, | 
|  29                 int32_t nCount = -1) const; |  28                 int32_t nCount = -1) const; | 
|  30  |  29  | 
|  31   void Insert(int32_t nPos, const FX_WCHAR* lpText, int32_t nLength = 1); |  30   void Insert(int32_t nPos, const FX_WCHAR* lpText, int32_t nLength = 1); | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
|  53  |  52  | 
|  54   int32_t m_nChunkSize; |  53   int32_t m_nChunkSize; | 
|  55  |  54  | 
|  56   int32_t m_nTotal; |  55   int32_t m_nTotal; | 
|  57   FX_BOOL m_bChanged; |  56   FX_BOOL m_bChanged; | 
|  58   CFX_ArrayTemplate<FDE_CHUNKHEADER*> m_Chunks; |  57   CFX_ArrayTemplate<FDE_CHUNKHEADER*> m_Chunks; | 
|  59   IFX_MemoryAllocator* m_pAllocator; |  58   IFX_MemoryAllocator* m_pAllocator; | 
|  60 }; |  59 }; | 
|  61  |  60  | 
|  62 #endif  // XFA_FDE_CFDE_TXTEDTBUF_H_ |  61 #endif  // XFA_FDE_CFDE_TXTEDTBUF_H_ | 
| OLD | NEW |