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_APP_CXFA_LOADERCONTEXT_H_ 8 #define XFA_FXFA_APP_CXFA_LOADERCONTEXT_H_ 9 10 #include <vector> 11 12 #include "core/fxcrt/fx_basic.h" 13 #include "core/fxcrt/fx_system.h" 14 #include "xfa/fde/css/cfde_csscomputedstyle.h" 15 16 class CFDE_XMLNode; 17 class CXFA_Node; 18 19 class CXFA_LoaderContext { 20 public: 21 CXFA_LoaderContext(); 22 ~CXFA_LoaderContext(); 23 24 bool m_bSaveLineHeight; 25 FX_FLOAT m_fWidth; 26 FX_FLOAT m_fHeight; 27 FX_FLOAT m_fLastPos; 28 FX_FLOAT m_fStartLineOffset; 29 int32_t m_iChar; 30 int32_t m_iLines; 31 int32_t m_iTotalLines; 32 CFDE_XMLNode* m_pXMLNode; 33 CXFA_Node* m_pNode; 34 CFX_RetainPtr<CFDE_CSSComputedStyle> m_pParentStyle; 35 CFX_ArrayTemplate<FX_FLOAT> m_lineHeights; 36 uint32_t m_dwFlags; 37 std::vector<FX_FLOAT> m_BlocksHeight; 38 }; 39 40 #endif // XFA_FXFA_APP_CXFA_LOADERCONTEXT_H_ 41