• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_PARSER_CXFA_LAYOUTCONTEXT_H_
8 #define XFA_FXFA_PARSER_CXFA_LAYOUTCONTEXT_H_
9 
10 #include <vector>
11 
12 class CXFA_ItemLayoutProcess;
13 class CXFA_Node;
14 
15 class CXFA_LayoutContext {
16  public:
CXFA_LayoutContext()17   CXFA_LayoutContext()
18       : m_prgSpecifiedColumnWidths(nullptr),
19         m_fCurColumnWidth(0),
20         m_bCurColumnWidthAvaiable(false),
21         m_pOverflowProcessor(nullptr),
22         m_pOverflowNode(nullptr) {}
~CXFA_LayoutContext()23   ~CXFA_LayoutContext() {}
24 
25   std::vector<float>* m_prgSpecifiedColumnWidths;
26   float m_fCurColumnWidth;
27   bool m_bCurColumnWidthAvaiable;
28   CXFA_ItemLayoutProcessor* m_pOverflowProcessor;
29   CXFA_Node* m_pOverflowNode;
30 };
31 
32 #endif  // XFA_FXFA_PARSER_CXFA_LAYOUTCONTEXT_H_
33