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

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

Issue 1301453002: Merge to XFA: Cleanup: Fix some unneeded semi-colons and bad spacing. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 SEGMENT_Array m_Segment; 138 SEGMENT_Array m_Segment;
139 CFX_RectArray m_SelRects; 139 CFX_RectArray m_SelRects;
140 LINEOBJ m_LineObj; 140 LINEOBJ m_LineObj;
141 int32_t m_TextlineDir; 141 int32_t m_TextlineDir;
142 CFX_FloatRect m_CurlineRect; 142 CFX_FloatRect m_CurlineRect;
143 }; 143 };
144 144
145 class CPDF_TextPageFind : public IPDF_TextPageFind { 145 class CPDF_TextPageFind : public IPDF_TextPageFind {
146 public: 146 public:
147 CPDF_TextPageFind(const IPDF_TextPage* pTextPage); 147 CPDF_TextPageFind(const IPDF_TextPage* pTextPage);
148 ~CPDF_TextPageFind() override{}; 148 ~CPDF_TextPageFind() override {}
149 149
150 // IPDF_TextPageFind 150 // IPDF_TextPageFind
151 FX_BOOL FindFirst(const CFX_WideString& findwhat, 151 FX_BOOL FindFirst(const CFX_WideString& findwhat,
152 int flags, 152 int flags,
153 int startPos = 0) override; 153 int startPos = 0) override;
154 FX_BOOL FindNext() override; 154 FX_BOOL FindNext() override;
155 FX_BOOL FindPrev() override; 155 FX_BOOL FindPrev() override;
156 void GetRectArray(CFX_RectArray& rects) const override; 156 void GetRectArray(CFX_RectArray& rects) const override;
157 int GetCurOrder() const override; 157 int GetCurOrder() const override;
158 int GetMatchedCount() const override; 158 int GetMatchedCount() const override;
(...skipping 25 matching lines...) Expand all
184 int m_findPreStart; 184 int m_findPreStart;
185 FX_BOOL m_bMatchCase; 185 FX_BOOL m_bMatchCase;
186 FX_BOOL m_bMatchWholeWord; 186 FX_BOOL m_bMatchWholeWord;
187 int m_resStart; 187 int m_resStart;
188 int m_resEnd; 188 int m_resEnd;
189 CFX_RectArray m_resArray; 189 CFX_RectArray m_resArray;
190 FX_BOOL m_IsFind; 190 FX_BOOL m_IsFind;
191 }; 191 };
192 class CPDF_LinkExt { 192 class CPDF_LinkExt {
193 public: 193 public:
194 CPDF_LinkExt(){}; 194 CPDF_LinkExt() {}
195 int m_Start; 195 int m_Start;
196 int m_Count; 196 int m_Count;
197 CFX_WideString m_strUrl; 197 CFX_WideString m_strUrl;
198 virtual ~CPDF_LinkExt(){}; 198 virtual ~CPDF_LinkExt() {}
199 }; 199 };
200 200
201 typedef CFX_ArrayTemplate<CPDF_LinkExt*> LINK_InfoArray; 201 typedef CFX_ArrayTemplate<CPDF_LinkExt*> LINK_InfoArray;
202 202
203 class CPDF_LinkExtract : public IPDF_LinkExtract { 203 class CPDF_LinkExtract : public IPDF_LinkExtract {
204 public: 204 public:
205 CPDF_LinkExtract(); 205 CPDF_LinkExtract();
206 ~CPDF_LinkExtract() override; 206 ~CPDF_LinkExtract() override;
207 207
208 // IPDF_LinkExtract 208 // IPDF_LinkExtract
(...skipping 17 matching lines...) Expand all
226 const CPDF_TextPage* m_pTextPage; 226 const CPDF_TextPage* m_pTextPage;
227 CFX_WideString m_strPageText; 227 CFX_WideString m_strPageText;
228 FX_BOOL m_IsParserd; 228 FX_BOOL m_IsParserd;
229 }; 229 };
230 230
231 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst); 231 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst);
232 void NormalizeString(CFX_WideString& str); 232 void NormalizeString(CFX_WideString& str);
233 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest); 233 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest);
234 234
235 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ 235 #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