Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Unified Diff: core/src/reflow/reflowedtextpage.h

Issue 453133004: clang-format all code (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: core/src/reflow/reflowedtextpage.h
diff --git a/core/src/reflow/reflowedtextpage.h b/core/src/reflow/reflowedtextpage.h
index 397428d178c442725e3781798a70261657cac491..a86f97ddc0c47ef6f06fb5e6ef88dc4431b21b16 100644
--- a/core/src/reflow/reflowedtextpage.h
+++ b/core/src/reflow/reflowedtextpage.h
@@ -1,7 +1,7 @@
// 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 _REFLOWED_TEXT_PAGE_H
@@ -10,62 +10,69 @@
#include "../../src/reflow/reflowedpage.h"
typedef CFX_SegmentedArray<CRF_CharData*> CRF_CharDataPtrArray;
typedef CFX_SegmentedArray<FX_INT32> 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;
+class CRF_TextPage : public IPDF_TextPage {
+ public:
+ CRF_TextPage(IPDF_ReflowedPage* pRefPage);
- int TextIndexFromCharIndex(int CharIndex) const;
+ virtual ~CRF_TextPage();
+ FX_BOOL ParseTextPage();
+ void NormalizeObjects(FX_BOOL bNormalize) { return; };
+ FX_BOOL IsParsered() const;
- int CountChars() const;
+ public:
+ int CharIndexFromTextIndex(int TextIndex) const;
- virtual void GetCharInfo(int index, FPDF_CHAR_INFO & info) const;
+ int TextIndexFromCharIndex(int CharIndex) const;
- void GetRectArray(int start, int nCount, CFX_RectArray& rectArray) const;
+ int CountChars() const;
+ virtual void GetCharInfo(int index, FPDF_CHAR_INFO& info) const;
- int GetIndexAtPos(CPDF_Point point, FX_FLOAT xTorelance, FX_FLOAT yTorelance) const;
+ void GetRectArray(int start, int nCount, CFX_RectArray& rectArray) const;
- int GetIndexAtPos(FX_FLOAT x, FX_FLOAT y, FX_FLOAT xTorelance, FX_FLOAT yTorelance) const;
+ int GetIndexAtPos(CPDF_Point point,
+ FX_FLOAT xTorelance,
+ FX_FLOAT yTorelance) const;
- virtual int GetOrderByDirection(int index, int direction) const;
+ int GetIndexAtPos(FX_FLOAT x,
+ FX_FLOAT y,
+ FX_FLOAT xTorelance,
+ FX_FLOAT yTorelance) const;
- CFX_WideString GetTextByRect(CFX_FloatRect rect) const;
+ virtual int GetOrderByDirection(int index, int direction) const;
- void GetRectsArrayByRect(CFX_FloatRect rect, CFX_RectArray& resRectArray) const;
+ CFX_WideString GetTextByRect(CFX_FloatRect rect) const;
+ void GetRectsArrayByRect(CFX_FloatRect rect,
+ CFX_RectArray& resRectArray) const;
- int CountRects(int start, int nCount);
+ 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 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 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;
+ virtual void GetBoundedSegment(int index, int& start, int& count) const;
+ int GetWordBreak(int index, int direction) const;
- int GetWordBreak(int index, int direction) const;
+ CFX_WideString GetPageText(int start, int nCount = -1) 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;
+ private:
+ CPDF_ReflowedPage* m_pRefPage;
+ CRF_CharDataPtrArray* m_pDataList;
+ CFX_RectArray m_rectArray;
+ CFX_CountBSINT32Array* m_CountBSArray;
};
#endif

Powered by Google App Engine
This is Rietveld 408576698