• 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_APP_CXFA_TEXTTABSTOPSCONTEXT_H_
8 #define XFA_FXFA_APP_CXFA_TEXTTABSTOPSCONTEXT_H_
9 
10 #include "core/fxcrt/fx_basic.h"
11 
12 struct XFA_TABSTOPS {
13   uint32_t dwAlign;
14   FX_FLOAT fTabstops;
15 };
16 
17 class CXFA_TextTabstopsContext {
18  public:
19   CXFA_TextTabstopsContext();
20   ~CXFA_TextTabstopsContext();
21 
22   void Append(uint32_t dwAlign, FX_FLOAT fTabstops);
23   void RemoveAll();
24   void Reset();
25 
26   CFX_ArrayTemplate<XFA_TABSTOPS> m_tabstops;
27   int32_t m_iTabCount;
28   int32_t m_iTabIndex;
29   bool m_bTabstops;
30   FX_FLOAT m_fTabWidth;
31   FX_FLOAT m_fLeft;
32 };
33 
34 #endif  // XFA_FXFA_APP_CXFA_TEXTTABSTOPSCONTEXT_H_
35