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

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

Issue 1513103002: Merge to XFA: Get rid of most uses of CFX_PtrArray. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years 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/fpdftext/fpdf_text.cpp ('k') | core/src/fxcrt/extension.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_TXTPROC_H_ 7 #ifndef CORE_SRC_FPDFTEXT_TXTPROC_H_
8 #define CORE_SRC_FPDFTEXT_TXTPROC_H_ 8 #define CORE_SRC_FPDFTEXT_TXTPROC_H_
9 9
10 class CTextColumn { 10 class CTextColumn {
(...skipping 30 matching lines...) Expand all
41 void MergeBoxes(); 41 void MergeBoxes();
42 void CountChars(int& count, FX_FLOAT& width, int& minchars); 42 void CountChars(int& count, FX_FLOAT& width, int& minchars);
43 void WriteOutput(CFX_WideString& str, 43 void WriteOutput(CFX_WideString& str,
44 FX_FLOAT leftx, 44 FX_FLOAT leftx,
45 FX_FLOAT width, 45 FX_FLOAT width,
46 int iWidth); 46 int iWidth);
47 FX_FLOAT m_BaseLine; 47 FX_FLOAT m_BaseLine;
48 FX_FLOAT m_Top; 48 FX_FLOAT m_Top;
49 FX_FLOAT m_Bottom; 49 FX_FLOAT m_Bottom;
50 FX_FLOAT m_MaxFontSizeV; 50 FX_FLOAT m_MaxFontSizeV;
51 CFX_PtrArray m_TextList; 51 CFX_ArrayTemplate<CTextBox*> m_TextList;
52 }; 52 };
53 class CPDF_PageObject; 53 class CPDF_PageObject;
54 class CPDF_TextObject; 54 class CPDF_TextObject;
55 class CTextPage { 55 class CTextPage {
56 public: 56 public:
57 CTextPage(); 57 CTextPage();
58 ~CTextPage(); 58 ~CTextPage();
59 void ProcessObject(CPDF_PageObject* pObj); 59 void ProcessObject(CPDF_PageObject* pObj);
60 CTextBaseLine* InsertTextBox(CTextBaseLine* pBaseLine, 60 CTextBaseLine* InsertTextBox(CTextBaseLine* pBaseLine,
61 FX_FLOAT basey, 61 FX_FLOAT basey,
62 FX_FLOAT leftx, 62 FX_FLOAT leftx,
63 FX_FLOAT rightx, 63 FX_FLOAT rightx,
64 FX_FLOAT topy, 64 FX_FLOAT topy,
65 FX_FLOAT bottomy, 65 FX_FLOAT bottomy,
66 FX_FLOAT spacew, 66 FX_FLOAT spacew,
67 FX_FLOAT fontsize_v, 67 FX_FLOAT fontsize_v,
68 CFX_ByteString& str, 68 CFX_ByteString& str,
69 CPDF_Font* pFont); 69 CPDF_Font* pFont);
70 void WriteOutput(CFX_WideStringArray& lines, int iMinWidth); 70 void WriteOutput(CFX_WideStringArray& lines, int iMinWidth);
71 FX_BOOL m_bAutoWidth; 71 FX_BOOL m_bAutoWidth;
72 FX_BOOL m_bKeepColumn; 72 FX_BOOL m_bKeepColumn;
73 FX_BOOL m_bBreakSpace; 73 FX_BOOL m_bBreakSpace;
74 74
75 private: 75 private:
76 CFX_PtrArray m_BaseLines;
77 CFX_PtrArray m_TextColumns;
78 void FindColumns(); 76 void FindColumns();
79 CTextColumn* FindColumn(FX_FLOAT xpos); 77 CTextColumn* FindColumn(FX_FLOAT xpos);
80 void BreakSpace(CPDF_TextObject* pTextObj); 78 void BreakSpace(CPDF_TextObject* pTextObj);
79
80 CFX_ArrayTemplate<CTextBaseLine*> m_BaseLines;
81 CFX_ArrayTemplate<CTextColumn*> m_TextColumns;
81 }; 82 };
82 83
83 #endif // CORE_SRC_FPDFTEXT_TXTPROC_H_ 84 #endif // CORE_SRC_FPDFTEXT_TXTPROC_H_
OLDNEW
« no previous file with comments | « core/src/fpdftext/fpdf_text.cpp ('k') | core/src/fxcrt/extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698