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

Side by Side Diff: xfa/fxfa/app/cxfa_textlayout.h

Issue 2649563003: Replace CFX_ByteArray with CFX_ArrayTemplate<uint8_t> (Closed)
Patch Set: re-upload Created 3 years, 11 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 | « xfa/fxbarcode/utils.h ('k') | xfa/fxfa/app/xfa_ffchoicelist.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 2017 PDFium Authors. All rights reserved. 1 // Copyright 2017 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 XFA_FXFA_APP_CXFA_TEXTLAYOUT_H_ 7 #ifndef XFA_FXFA_APP_CXFA_TEXTLAYOUT_H_
8 #define XFA_FXFA_APP_CXFA_TEXTLAYOUT_H_ 8 #define XFA_FXFA_APP_CXFA_TEXTLAYOUT_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const CFX_Matrix& tmDoc2Device, 53 const CFX_Matrix& tmDoc2Device,
54 const CFX_RectF& rtClip, 54 const CFX_RectF& rtClip,
55 int32_t iBlock = 0); 55 int32_t iBlock = 0);
56 bool IsLoaded() const { return !m_pieceLines.empty(); } 56 bool IsLoaded() const { return !m_pieceLines.empty(); }
57 void Unload(); 57 void Unload();
58 const std::vector<std::unique_ptr<CXFA_PieceLine>>* GetPieceLines() const { 58 const std::vector<std::unique_ptr<CXFA_PieceLine>>* GetPieceLines() const {
59 return &m_pieceLines; 59 return &m_pieceLines;
60 } 60 }
61 61
62 bool m_bHasBlock; 62 bool m_bHasBlock;
63 CFX_Int32Array m_Blocks; 63 CFX_ArrayTemplate<int32_t> m_Blocks;
64 64
65 private: 65 private:
66 void GetTextDataNode(); 66 void GetTextDataNode();
67 CFDE_XMLNode* GetXMLContainerNode(); 67 CFDE_XMLNode* GetXMLContainerNode();
68 CFX_RTFBreak* CreateBreak(bool bDefault); 68 CFX_RTFBreak* CreateBreak(bool bDefault);
69 void InitBreak(FX_FLOAT fLineWidth); 69 void InitBreak(FX_FLOAT fLineWidth);
70 void InitBreak(CFDE_CSSComputedStyle* pStyle, 70 void InitBreak(CFDE_CSSComputedStyle* pStyle,
71 FDE_CSSDisplay eDisplay, 71 FDE_CSSDisplay eDisplay,
72 FX_FLOAT fLineWidth, 72 FX_FLOAT fLineWidth,
73 CFDE_XMLNode* pXMLNode, 73 CFDE_XMLNode* pXMLNode,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 std::unique_ptr<CXFA_LoaderContext> m_pLoader; 127 std::unique_ptr<CXFA_LoaderContext> m_pLoader;
128 int32_t m_iLines; 128 int32_t m_iLines;
129 FX_FLOAT m_fMaxWidth; 129 FX_FLOAT m_fMaxWidth;
130 CXFA_TextParser m_textParser; 130 CXFA_TextParser m_textParser;
131 std::vector<std::unique_ptr<CXFA_PieceLine>> m_pieceLines; 131 std::vector<std::unique_ptr<CXFA_PieceLine>> m_pieceLines;
132 std::unique_ptr<CXFA_TextTabstopsContext> m_pTabstopContext; 132 std::unique_ptr<CXFA_TextTabstopsContext> m_pTabstopContext;
133 bool m_bBlockContinue; 133 bool m_bBlockContinue;
134 }; 134 };
135 135
136 #endif // XFA_FXFA_APP_CXFA_TEXTLAYOUT_H_ 136 #endif // XFA_FXFA_APP_CXFA_TEXTLAYOUT_H_
OLDNEW
« no previous file with comments | « xfa/fxbarcode/utils.h ('k') | xfa/fxfa/app/xfa_ffchoicelist.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698