1 // Copyright 2014 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef _FDE_TXTEDTPARAG_H 8 #define _FDE_TXTEDTPARAG_H 9 class CFDE_TxtEdtEngine; 10 class CFDE_TxtEdtParag; 11 class CFDE_TxtEdtParag : public IFDE_TxtEdtParag { 12 public: 13 CFDE_TxtEdtParag(CFDE_TxtEdtEngine* pEngine); 14 ~CFDE_TxtEdtParag(); GetTextLength()15 virtual int32_t GetTextLength() const { return m_nCharCount; } GetStartIndex()16 virtual int32_t GetStartIndex() const { return m_nCharStart; } CountLines()17 virtual int32_t CountLines() const { return m_nLineCount; } 18 virtual void GetLineRange(int32_t nLineIndex, 19 int32_t& nStart, 20 int32_t& nCount) const; 21 void LoadParag(); 22 void UnloadParag(); 23 void CalcLines(); 24 int32_t m_nCharStart; 25 int32_t m_nCharCount; 26 int32_t m_nLineCount; 27 28 private: 29 void* m_lpData; 30 CFDE_TxtEdtEngine* m_pEngine; 31 }; 32 #endif 33