| 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_SRC_FEE_INCLUDE_IFDE_TXTEDTENGINE_H_ | 7 #ifndef XFA_SRC_FEE_INCLUDE_IFDE_TXTEDTENGINE_H_ |
| 8 #define XFA_SRC_FEE_INCLUDE_IFDE_TXTEDTENGINE_H_ | 8 #define XFA_SRC_FEE_INCLUDE_IFDE_TXTEDTENGINE_H_ |
| 9 | 9 |
| 10 #include "core/include/fxge/fx_dib.h" | 10 #include "core/include/fxge/fx_dib.h" |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 virtual int32_t Insert(int32_t nStart, | 221 virtual int32_t Insert(int32_t nStart, |
| 222 const FX_WCHAR* lpText, | 222 const FX_WCHAR* lpText, |
| 223 int32_t nLength) = 0; | 223 int32_t nLength) = 0; |
| 224 virtual int32_t Delete(int32_t nStart, FX_BOOL bBackspace = FALSE) = 0; | 224 virtual int32_t Delete(int32_t nStart, FX_BOOL bBackspace = FALSE) = 0; |
| 225 virtual int32_t DeleteRange(int32_t nStart, int32_t nCount = -1) = 0; | 225 virtual int32_t DeleteRange(int32_t nStart, int32_t nCount = -1) = 0; |
| 226 virtual int32_t Replace(int32_t nStart, | 226 virtual int32_t Replace(int32_t nStart, |
| 227 int32_t nLength, | 227 int32_t nLength, |
| 228 const CFX_WideString& wsReplace) = 0; | 228 const CFX_WideString& wsReplace) = 0; |
| 229 virtual void SetLimit(int32_t nLimit) = 0; | 229 virtual void SetLimit(int32_t nLimit) = 0; |
| 230 virtual void SetAliasChar(FX_WCHAR wAlias) = 0; | 230 virtual void SetAliasChar(FX_WCHAR wAlias) = 0; |
| 231 virtual void SetFormatBlock(int32_t nIndex, | |
| 232 const CFX_WideString& wsBlockFormat) = 0; | |
| 233 virtual int32_t CountEditBlocks() const = 0; | |
| 234 virtual void GetEditBlockText(int32_t nIndex, | |
| 235 CFX_WideString& wsBlockText) const = 0; | |
| 236 virtual int32_t CountEditFields(int32_t nBlockIndex) const = 0; | |
| 237 virtual void GetEditFieldText(int32_t nBlockIndex, | |
| 238 int32_t nFieldIndex, | |
| 239 CFX_WideString& wsFieldText) const = 0; | |
| 240 virtual void StartEdit() = 0; | |
| 241 virtual void EndEdit() = 0; | |
| 242 virtual void AddSelRange(int32_t nStart, int32_t nCount = -1) = 0; | 231 virtual void AddSelRange(int32_t nStart, int32_t nCount = -1) = 0; |
| 243 virtual int32_t CountSelRanges() = 0; | 232 virtual int32_t CountSelRanges() = 0; |
| 244 virtual int32_t GetSelRange(int32_t nIndex, int32_t& nStart) = 0; | 233 virtual int32_t GetSelRange(int32_t nIndex, int32_t& nStart) = 0; |
| 245 virtual void ClearSelection() = 0; | 234 virtual void ClearSelection() = 0; |
| 246 | 235 |
| 247 virtual FX_BOOL Redo(const CFX_ByteStringC& bsRedo) = 0; | 236 virtual FX_BOOL Redo(const CFX_ByteStringC& bsRedo) = 0; |
| 248 virtual FX_BOOL Undo(const CFX_ByteStringC& bsUndo) = 0; | 237 virtual FX_BOOL Undo(const CFX_ByteStringC& bsUndo) = 0; |
| 249 | 238 |
| 250 virtual int32_t StartLayout() = 0; | 239 virtual int32_t StartLayout() = 0; |
| 251 virtual int32_t DoLayout(IFX_Pause* pPause) = 0; | 240 virtual int32_t DoLayout(IFX_Pause* pPause) = 0; |
| 252 virtual void EndLayout() = 0; | 241 virtual void EndLayout() = 0; |
| 253 | 242 |
| 254 virtual FX_BOOL Optimize(IFX_Pause* pPause = NULL) = 0; | 243 virtual FX_BOOL Optimize(IFX_Pause* pPause = NULL) = 0; |
| 255 virtual int32_t CountParags() const = 0; | 244 virtual int32_t CountParags() const = 0; |
| 256 virtual IFDE_TxtEdtParag* GetParag(int32_t nParagIndex) const = 0; | 245 virtual IFDE_TxtEdtParag* GetParag(int32_t nParagIndex) const = 0; |
| 257 virtual IFX_CharIter* CreateCharIter() = 0; | 246 virtual IFX_CharIter* CreateCharIter() = 0; |
| 258 }; | 247 }; |
| 259 class IFDE_TxtEdtParag { | 248 class IFDE_TxtEdtParag { |
| 260 public: | 249 public: |
| 261 virtual ~IFDE_TxtEdtParag() {} | 250 virtual ~IFDE_TxtEdtParag() {} |
| 262 virtual int32_t GetTextLength() const = 0; | 251 virtual int32_t GetTextLength() const = 0; |
| 263 virtual int32_t GetStartIndex() const = 0; | 252 virtual int32_t GetStartIndex() const = 0; |
| 264 virtual int32_t CountLines() const = 0; | 253 virtual int32_t CountLines() const = 0; |
| 265 virtual void GetLineRange(int32_t nLineIndex, | 254 virtual void GetLineRange(int32_t nLineIndex, |
| 266 int32_t& nStart, | 255 int32_t& nStart, |
| 267 int32_t& nCount) const = 0; | 256 int32_t& nCount) const = 0; |
| 268 }; | 257 }; |
| 269 | 258 |
| 270 #endif // XFA_SRC_FEE_INCLUDE_IFDE_TXTEDTENGINE_H_ | 259 #endif // XFA_SRC_FEE_INCLUDE_IFDE_TXTEDTENGINE_H_ |
| OLD | NEW |