diff options
author | Lei Zhang <thestig@chromium.org> | 2015-06-13 00:44:09 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-06-13 00:44:09 -0700 |
commit | bef3c6d1fe83c0d1a84ace5c501932ed39651a74 (patch) | |
tree | f86b0e93eb19de0d79f4562cc3b1d032cd909bae /core/src/reflow/reflowedtextpage.h | |
parent | 60f507ba36893edccb53aa13d7282144a1dd2499 (diff) | |
download | pdfium-bef3c6d1fe83c0d1a84ace5c501932ed39651a74.tar.xz |
Merge to XFA: Remove unused reflow code.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1181803002.
(cherry picked from commit f25db681003f0247e97bfef22be56a8aa02b7595)
Review URL: https://codereview.chromium.org/1182993002.
Diffstat (limited to 'core/src/reflow/reflowedtextpage.h')
-rw-r--r-- | core/src/reflow/reflowedtextpage.h | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/core/src/reflow/reflowedtextpage.h b/core/src/reflow/reflowedtextpage.h deleted file mode 100644 index bb6e24a9cd..0000000000 --- a/core/src/reflow/reflowedtextpage.h +++ /dev/null @@ -1,74 +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 CORE_SRC_REFLOW_REFLOWEDTEXTPAGE_H_ -#define CORE_SRC_REFLOW_REFLOWEDTEXTPAGE_H_ - -#include "../../include/reflow/reflowengine.h" -#include "../../src/reflow/reflowedpage.h" - -typedef CFX_SegmentedArray<CRF_CharData*> CRF_CharDataPtrArray; -typedef CFX_SegmentedArray<int32_t> CFX_CountBSINT32Array; -class CRF_TextPage : public IPDF_TextPage -{ -public: - CRF_TextPage(IPDF_ReflowedPage* pRefPage); - - virtual ~CRF_TextPage() ; - FX_BOOL ParseTextPage(); - void NormalizeObjects(FX_BOOL bNormalize) - { - return; - }; - - FX_BOOL IsParsered() const; -public: - - int CharIndexFromTextIndex(int TextIndex) const; - - int TextIndexFromCharIndex(int CharIndex) const; - - - int CountChars() const; - - virtual void GetCharInfo(int index, FPDF_CHAR_INFO & info) const; - - void GetRectArray(int start, int nCount, CFX_RectArray& rectArray) const; - - - int GetIndexAtPos(CPDF_Point point, FX_FLOAT xTorelance, FX_FLOAT yTorelance) const; - - int GetIndexAtPos(FX_FLOAT x, FX_FLOAT y, FX_FLOAT xTorelance, FX_FLOAT yTorelance) const; - - virtual int GetOrderByDirection(int index, int direction) const; - - CFX_WideString GetTextByRect(CFX_FloatRect rect) const; - - void GetRectsArrayByRect(CFX_FloatRect rect, CFX_RectArray& resRectArray) const; - - - int CountRects(int start, int nCount); - - virtual void GetRect(int rectIndex, FX_FLOAT& left, FX_FLOAT& top, FX_FLOAT& right, FX_FLOAT &bottom) const; - virtual FX_BOOL GetBaselineRotate(int rectIndex, int& Rotate); - virtual FX_BOOL GetBaselineRotate(CFX_FloatRect rect, int& Rotate); - - virtual int CountBoundedSegments(FX_FLOAT left, FX_FLOAT top, FX_FLOAT right, FX_FLOAT bottom, FX_BOOL bContains = FALSE); - - virtual void GetBoundedSegment(int index, int& start, int& count) const; - - - int GetWordBreak(int index, int direction) const; - - CFX_WideString GetPageText(int start, int nCount = -1 ) const; -private: - CPDF_ReflowedPage* m_pRefPage; - CRF_CharDataPtrArray* m_pDataList; - CFX_RectArray m_rectArray; - CFX_CountBSINT32Array* m_CountBSArray; -}; - -#endif // CORE_SRC_REFLOW_REFLOWEDTEXTPAGE_H_ |