Add new kind of tab: tabstop
[texmacs.git] / src / src / Kernel / Types / tab.hpp
blobc1dbf1849c2be1964f8403ee6a8e5b272ac9022b
2 /******************************************************************************
3 * MODULE : tab.hpp
4 * DESCRIPTION: spacing
5 * COPYRIGHT : (C) 1999 David Allouche
6 *******************************************************************************
7 * This software falls under the GNU general public license version 3 or later.
8 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
9 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
10 ******************************************************************************/
12 #ifndef TAB_H
13 #define TAB_H
14 #include "tree.hpp"
16 enum tab_kind { tab_all, tab_first, tab_last, tab_stop };
18 class tab_rep: concrete_struct {
19 public:
20 int pos;
21 double weight;
22 tab_kind kind;
24 inline tab_rep () {}
25 tab_rep (int pos, tree t);
27 friend class tab;
30 class tab {
31 CONCRETE(tab);
32 inline tab (): rep (tm_new<tab_rep> ()) {}
33 inline tab (int pos, tree t): rep (tm_new<tab_rep> (pos, t)) {}
35 CONCRETE_CODE(tab);
37 #endif // defined TAB_H