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

Side by Side Diff: core/src/fpdftext/text_int.h

Issue 1284193005: Clean: Fix some unneeded semi-colons and bad spacing. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « core/src/fpdfdoc/pdf_vt.h ('k') | core/src/fxcodec/codec/codec_int.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CORE_SRC_FPDFTEXT_TEXT_INT_H_ 7 #ifndef CORE_SRC_FPDFTEXT_TEXT_INT_H_
8 #define CORE_SRC_FPDFTEXT_TEXT_INT_H_ 8 #define CORE_SRC_FPDFTEXT_TEXT_INT_H_
9 9
10 class CPDF_LinkExtract; 10 class CPDF_LinkExtract;
(...skipping 29 matching lines...) Expand all
40 CPDF_TextObject* m_pTextObj; 40 CPDF_TextObject* m_pTextObj;
41 CFX_AffineMatrix m_formMatrix; 41 CFX_AffineMatrix m_formMatrix;
42 } PDFTEXT_Obj; 42 } PDFTEXT_Obj;
43 typedef CFX_ArrayTemplate<PDFTEXT_Obj> LINEOBJ; 43 typedef CFX_ArrayTemplate<PDFTEXT_Obj> LINEOBJ;
44 44
45 class CPDF_TextPage : public IPDF_TextPage { 45 class CPDF_TextPage : public IPDF_TextPage {
46 public: 46 public:
47 CPDF_TextPage(const CPDF_Page* pPage, int flags = 0); 47 CPDF_TextPage(const CPDF_Page* pPage, int flags = 0);
48 CPDF_TextPage(const CPDF_PageObjects* pPage, int flags = 0); 48 CPDF_TextPage(const CPDF_PageObjects* pPage, int flags = 0);
49 CPDF_TextPage(const CPDF_Page* pPage, CPDFText_ParseOptions ParserOptions); 49 CPDF_TextPage(const CPDF_Page* pPage, CPDFText_ParseOptions ParserOptions);
50 ~CPDF_TextPage() override{}; 50 ~CPDF_TextPage() override {}
51 51
52 // IPDF_TextPage 52 // IPDF_TextPage
53 FX_BOOL ParseTextPage() override; 53 FX_BOOL ParseTextPage() override;
54 void NormalizeObjects(FX_BOOL bNormalize) override; 54 void NormalizeObjects(FX_BOOL bNormalize) override;
55 FX_BOOL IsParsered() const override { return m_IsParsered; } 55 FX_BOOL IsParsered() const override { return m_IsParsered; }
56 int CharIndexFromTextIndex(int TextIndex) const override; 56 int CharIndexFromTextIndex(int TextIndex) const override;
57 int TextIndexFromCharIndex(int CharIndex) const override; 57 int TextIndexFromCharIndex(int CharIndex) const override;
58 int CountChars() const override; 58 int CountChars() const override;
59 void GetCharInfo(int index, FPDF_CHAR_INFO& info) const override; 59 void GetCharInfo(int index, FPDF_CHAR_INFO& info) const override;
60 void GetRectArray(int start, 60 void GetRectArray(int start,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 SEGMENT_Array m_Segment; 142 SEGMENT_Array m_Segment;
143 CFX_RectArray m_SelRects; 143 CFX_RectArray m_SelRects;
144 LINEOBJ m_LineObj; 144 LINEOBJ m_LineObj;
145 int32_t m_TextlineDir; 145 int32_t m_TextlineDir;
146 CFX_FloatRect m_CurlineRect; 146 CFX_FloatRect m_CurlineRect;
147 }; 147 };
148 148
149 class CPDF_TextPageFind : public IPDF_TextPageFind { 149 class CPDF_TextPageFind : public IPDF_TextPageFind {
150 public: 150 public:
151 CPDF_TextPageFind(const IPDF_TextPage* pTextPage); 151 CPDF_TextPageFind(const IPDF_TextPage* pTextPage);
152 ~CPDF_TextPageFind() override{}; 152 ~CPDF_TextPageFind() override {}
153 153
154 // IPDF_TextPageFind 154 // IPDF_TextPageFind
155 FX_BOOL FindFirst(const CFX_WideString& findwhat, 155 FX_BOOL FindFirst(const CFX_WideString& findwhat,
156 int flags, 156 int flags,
157 int startPos = 0) override; 157 int startPos = 0) override;
158 FX_BOOL FindNext() override; 158 FX_BOOL FindNext() override;
159 FX_BOOL FindPrev() override; 159 FX_BOOL FindPrev() override;
160 void GetRectArray(CFX_RectArray& rects) const override; 160 void GetRectArray(CFX_RectArray& rects) const override;
161 int GetCurOrder() const override; 161 int GetCurOrder() const override;
162 int GetMatchedCount() const override; 162 int GetMatchedCount() const override;
(...skipping 25 matching lines...) Expand all
188 int m_findPreStart; 188 int m_findPreStart;
189 FX_BOOL m_bMatchCase; 189 FX_BOOL m_bMatchCase;
190 FX_BOOL m_bMatchWholeWord; 190 FX_BOOL m_bMatchWholeWord;
191 int m_resStart; 191 int m_resStart;
192 int m_resEnd; 192 int m_resEnd;
193 CFX_RectArray m_resArray; 193 CFX_RectArray m_resArray;
194 FX_BOOL m_IsFind; 194 FX_BOOL m_IsFind;
195 }; 195 };
196 class CPDF_LinkExt { 196 class CPDF_LinkExt {
197 public: 197 public:
198 CPDF_LinkExt(){}; 198 CPDF_LinkExt() {}
199 int m_Start; 199 int m_Start;
200 int m_Count; 200 int m_Count;
201 CFX_WideString m_strUrl; 201 CFX_WideString m_strUrl;
202 virtual ~CPDF_LinkExt(){}; 202 virtual ~CPDF_LinkExt() {}
203 }; 203 };
204 204
205 typedef CFX_ArrayTemplate<CPDF_LinkExt*> LINK_InfoArray; 205 typedef CFX_ArrayTemplate<CPDF_LinkExt*> LINK_InfoArray;
206 206
207 class CPDF_LinkExtract : public IPDF_LinkExtract { 207 class CPDF_LinkExtract : public IPDF_LinkExtract {
208 public: 208 public:
209 CPDF_LinkExtract(); 209 CPDF_LinkExtract();
210 ~CPDF_LinkExtract() override; 210 ~CPDF_LinkExtract() override;
211 211
212 // IPDF_LinkExtract 212 // IPDF_LinkExtract
(...skipping 17 matching lines...) Expand all
230 const CPDF_TextPage* m_pTextPage; 230 const CPDF_TextPage* m_pTextPage;
231 CFX_WideString m_strPageText; 231 CFX_WideString m_strPageText;
232 FX_BOOL m_IsParserd; 232 FX_BOOL m_IsParserd;
233 }; 233 };
234 234
235 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst); 235 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst);
236 void NormalizeString(CFX_WideString& str); 236 void NormalizeString(CFX_WideString& str);
237 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest); 237 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest);
238 238
239 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ 239 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_
OLDNEW
« no previous file with comments | « core/src/fpdfdoc/pdf_vt.h ('k') | core/src/fxcodec/codec/codec_int.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698