diff options
author | dsinclair <dsinclair@chromium.org> | 2016-05-18 11:09:47 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-18 11:09:47 -0700 |
commit | 653951828cf934afb48b57989089a99b38620d02 (patch) | |
tree | 8a91b6f3ffac3d992e47e5d6fd4da31245597ff9 /xfa/fee/fde_txtedtparag.h | |
parent | 3b093630d55ad97807bcc710227b03819944605b (diff) | |
download | pdfium-653951828cf934afb48b57989089a99b38620d02.tar.xz |
Split xfa/fee files into individual class files.
This CL splits the xfa/fee files into individual class files and moves them
into the xfa/fde directory where they belong.
Review-Url: https://codereview.chromium.org/1994693002
Diffstat (limited to 'xfa/fee/fde_txtedtparag.h')
-rw-r--r-- | xfa/fee/fde_txtedtparag.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/xfa/fee/fde_txtedtparag.h b/xfa/fee/fde_txtedtparag.h deleted file mode 100644 index 24ecbc7bf0..0000000000 --- a/xfa/fee/fde_txtedtparag.h +++ /dev/null @@ -1,43 +0,0 @@ -// 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 XFA_FEE_FDE_TXTEDTPARAG_H_ -#define XFA_FEE_FDE_TXTEDTPARAG_H_ - -#include <stdint.h> - -class CFDE_TxtEdtEngine; - -class CFDE_TxtEdtParag { - public: - explicit CFDE_TxtEdtParag(CFDE_TxtEdtEngine* pEngine); - ~CFDE_TxtEdtParag(); - - int32_t GetTextLength() const { return m_nCharCount; } - int32_t GetStartIndex() const { return m_nCharStart; } - int32_t GetLineCount() const { return m_nLineCount; } - - void SetTextLength(int32_t len) { m_nCharCount = len; } - void IncrementTextLength(int32_t len) { m_nCharCount += len; } - void SetStartIndex(int32_t idx) { m_nCharStart = idx; } - void IncrementStartIndex(int32_t val) { m_nCharStart += val; } - void DecrementStartIndex(int32_t val) { m_nCharStart -= val; } - void SetLineCount(int32_t count) { m_nLineCount = count; } - - void GetLineRange(int32_t nLineIndex, int32_t& nStart, int32_t& nCount) const; - void LoadParag(); - void UnloadParag(); - void CalcLines(); - - private: - int32_t m_nCharStart; - int32_t m_nCharCount; - int32_t m_nLineCount; - void* m_lpData; - CFDE_TxtEdtEngine* m_pEngine; -}; - -#endif // XFA_FEE_FDE_TXTEDTPARAG_H_ |