1 // Copyright 2017 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef XFA_FXFA_CXFA_LOADERCONTEXT_H_ 8 #define XFA_FXFA_CXFA_LOADERCONTEXT_H_ 9 10 #include <vector> 11 12 #include "core/fxcrt/css/cfx_csscomputedstyle.h" 13 #include "core/fxcrt/fx_system.h" 14 15 class CFX_XMLNode; 16 class CXFA_Node; 17 18 class CXFA_LoaderContext { 19 public: 20 CXFA_LoaderContext(); 21 ~CXFA_LoaderContext(); 22 23 bool m_bSaveLineHeight; 24 float m_fWidth; 25 float m_fHeight; 26 float m_fLastPos; 27 float m_fStartLineOffset; 28 int32_t m_iChar; 29 int32_t m_iLines; 30 int32_t m_iTotalLines; 31 uint32_t m_dwFlags; 32 CFX_XMLNode* m_pXMLNode; 33 CXFA_Node* m_pNode; 34 RetainPtr<CFX_CSSComputedStyle> m_pParentStyle; 35 std::vector<float> m_lineHeights; 36 std::vector<float> m_BlocksHeight; 37 }; 38 39 #endif // XFA_FXFA_CXFA_LOADERCONTEXT_H_ 40