4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
8 * \author Matthias Ettrich
10 * \author Jürgen Vigna
11 * \author Edwin Leuven
13 * \author Scott Kostyshak
15 * Full author contact details are available in file CREDITS.
18 // Things to think of when designing the new tabular support:
19 // - color support (colortbl, color)
20 // - decimal alignment (dcloumn)
21 // - custom lines (hhline)
24 #ifndef INSET_TABULAR_H
25 #define INSET_TABULAR_H
27 #include "InsetText.h"
51 class InsetTableCell : public InsetText
55 explicit InsetTableCell(Buffer * buf);
57 InsetCode lyxCode() const { return CELL_CODE; }
59 Inset * clone() const { return new InsetTableCell(*this); }
61 bool getStatus(Cursor & cur, FuncRequest const & cmd,
62 FuncStatus & status) const;
64 void toggleFixedWidth(bool fw) { isFixedWidth = fw; }
66 void toggleMultiCol(bool m) { isMultiColumn = m; }
68 void toggleMultiRow(bool m) { isMultiRow = m; }
70 void setContentAlignment(LyXAlignment al) {contentAlign = al; }
71 /// writes the contents of the cell as a string, optionally
72 /// descending into insets
73 docstring asString(bool intoInsets = true);
75 docstring xhtml(XMLStream &, OutputParams const &) const;
77 void docbook(XMLStream &, OutputParams const &) const;
79 void addToToc(DocIterator const & di, bool output_active,
80 UpdateType utype, TocBackend & backend) const;
82 void metrics(MetricsInfo &, Dimension &) const;
87 void operator=(InsetTableCell const &);
89 // These booleans are supposed to track whether the cell has had its
90 // width explicitly set and whether it is part of a multicolumn, respectively.
91 // We need to know this to determine whether
92 // layout changes and paragraph customization are allowed---that is,
93 // we need it in forcePlainLayout() and allowParagraphCustomization().
94 // Unfortunately, that information is not readily available in
95 // InsetTableCell. In the case of multicolumn cells, it is present
96 // in CellData, and so would be available here if CellData were to
97 // become a member of InsetTableCell. But in the other case, it isn't
98 // even available there, but is held in Tabular::ColumnData.
99 // So, the present solution uses this boolean to track the information
100 // we need to track, and tries to keep it updated. This is not ideal,
101 // but the other solutions are no better. These are:
102 // (i) Keep a pointer in InsetTableCell to the table;
103 // (ii) Find the table by iterating over the Buffer's insets.
104 // Solution (i) raises the problem of updating the pointer when an
105 // InsetTableCell is copied, and we'd therefore need a copy constructor
106 // in InsetTabular and then in Tabular, which seems messy, given how
107 // complicated those classes are. Solution (ii) involves a lot of
108 // iterating, since this information is needed quite often, and so may
110 // So, well, if someone can do better, please do!
118 // FIXME: Here the thoughts from the comment above also apply.
120 LyXAlignment contentAlign;
121 /// should paragraph indentation be omitted in any case?
122 bool neverIndent() const { return true; }
124 LyXAlignment contentAlignment() const { return contentAlign; }
126 virtual bool usePlainLayout() const { return true; }
128 virtual bool forcePlainLayout(idx_type = 0) const;
130 virtual bool allowParagraphCustomization(idx_type = 0) const;
132 virtual bool forceLocalFontSwitch() const;
133 /// Is the width forced to some value?
134 bool hasFixedWidth() const { return isFixedWidth; }
135 /// Can the cell contain several paragraphs?
136 bool allowMultiPar() const { return !isMultiRow && (!isMultiColumn || isFixedWidth); }
141 // A helper struct for tables
244 RESET_FORMAL_DEFAULT,
258 TOGGLE_VARWIDTH_COLUMN,
262 UNSET_ROTATE_TABULAR,
264 TOGGLE_ROTATE_TABULAR,
297 SET_SPECIAL_MULTICOLUMN,
315 TABULAR_VALIGN_MIDDLE,
317 TABULAR_VALIGN_BOTTOM,
319 LONGTABULAR_ALIGN_LEFT,
321 LONGTABULAR_ALIGN_CENTER,
323 LONGTABULAR_ALIGN_RIGHT,
338 CELL_BEGIN_OF_MULTICOLUMN,
340 CELL_PART_OF_MULTICOLUMN,
342 CELL_BEGIN_OF_MULTIROW,
344 CELL_PART_OF_MULTIROW
352 LYX_VALIGN_MIDDLE = 1,
354 LYX_VALIGN_BOTTOM = 2
360 LYX_LONGTABULAR_ALIGN_LEFT = 0,
362 LYX_LONGTABULAR_ALIGN_CENTER = 1,
364 LYX_LONGTABULAR_ALIGN_RIGHT = 2
405 // we have this header type (is set in the getLT... functions)
407 // double borders on top
409 // double borders on bottom
411 // used for FirstHeader & LastFooter and if this is true
412 // all the rows marked as FirstHeader or LastFooter are
413 // ignored in the output and it is set to be empty!
417 /// type for row numbers
418 typedef size_t row_type;
419 /// type for column numbers
420 typedef size_t col_type;
421 /// type for cell indices
422 typedef size_t idx_type;
423 /// index indicating an invalid position
424 static const idx_type npos = static_cast<idx_type>(-1);
427 Tabular(Buffer * buf, col_type columns_arg, row_type rows_arg);
429 /// Returns true if there is a topline, returns false if not
430 bool topLine(idx_type cell) const;
431 /// Returns true if there is a topline, returns false if not
432 bool bottomLine(idx_type cell) const;
433 /// Returns true if there is a topline, returns false if not
434 /// If \p ignore_bt is true, we return the state as if booktabs was
436 bool leftLine(idx_type cell, bool const ignore_bt = false) const;
437 /// Returns true if there is a topline, returns false if not
438 /// If \p ignore_bt is true, we return the state as if booktabs was
440 bool rightLine(idx_type cell, bool const ignore_bt = false) const;
441 /// Returns whether the top line is trimmed left and/or right
442 std::pair<bool, bool> topLineTrim(idx_type const cell) const;
443 /// Returns whether the bottom line is trimmed left and/or right
444 std::pair<bool, bool> bottomLineTrim(idx_type const cell) const;
446 /// return space occupied by the second horizontal line and
447 /// interline space above row \p row in pixels
448 int interRowSpace(row_type row) const;
450 int interColumnSpace(idx_type cell) const;
452 /* returns the maximum over all rows */
454 int cellWidth(idx_type cell) const;
456 int cellHeight(idx_type cell) const;
462 row_type nrows() const {return row_info.size();}
464 col_type ncols() const {return column_info.size();}
466 int rowAscent(row_type row) const;
468 int rowDescent(row_type row) const;
470 void setRowAscent(row_type row, int height);
472 void setRowDescent(row_type row, int height);
474 void setTopLine(idx_type cell, bool line);
476 void setBottomLine(idx_type cell, bool line);
478 void setTopLineLTrim(idx_type cell, bool val);
480 void setBottomLineLTrim(idx_type cell, bool val);
482 void setTopLineRTrim(idx_type cell, bool val);
484 void setBottomLineRTrim(idx_type cell, bool val);
486 void setTopLineTrim(idx_type cell, std::pair<bool, bool>);
488 void setBottomLineTrim(idx_type cell, std::pair<bool, bool>);
490 void setLeftLine(idx_type cell, bool line);
492 void setRightLine(idx_type cell, bool line);
494 bool rowTopLine(row_type row) const;
496 bool rowBottomLine(row_type row) const;
498 bool columnLeftLine(col_type column) const;
500 bool columnRightLine(col_type column) const;
502 void setAlignment(idx_type cell, LyXAlignment align,
503 bool onlycolumn = false);
505 void setVAlignment(idx_type cell, VAlignment align,
506 bool onlycolumn = false);
508 void setTabularWidth(Length const & l) { tabular_width = l; }
510 Length tabularWidth() const { return tabular_width; }
512 void setColumnPWidth(Cursor &, idx_type, Length const &);
514 bool setMColumnPWidth(Cursor &, idx_type, Length const &);
516 bool toggleVarwidth(idx_type, bool const);
518 bool setMROffset(Cursor &, idx_type, Length const &);
520 void setAlignSpecial(idx_type cell, docstring const & special,
523 LyXAlignment getAlignment(idx_type cell,
524 bool onlycolumn = false) const;
526 VAlignment getVAlignment(idx_type cell,
527 bool onlycolumn = false) const;
528 /// The vertical offset of the table due to the vertical
529 /// alignment with respect to the baseline.
530 int offsetVAlignment() const;
532 Length const getPWidth(idx_type cell) const;
534 Length const getMROffset(idx_type cell) const;
536 int textHOffset(idx_type cell) const;
538 int textVOffset(idx_type cell) const;
540 void appendRow(row_type row);
542 void deleteRow(row_type row, bool const force = false);
544 void copyRow(row_type row);
546 void insertRow(row_type row, bool copy);
548 void moveColumn(col_type col, ColDirection direction);
550 void moveRow(row_type row, RowDirection direction);
552 void appendColumn(col_type column);
554 void deleteColumn(col_type column, bool const force = false);
556 void copyColumn(col_type column);
558 void insertColumn(col_type column, bool copy);
560 idx_type getFirstCellInRow(row_type row, bool const ct = false) const;
562 idx_type getLastCellInRow(row_type row, bool const ct = false) const;
564 idx_type getFirstRow(bool const ct = false) const;
566 idx_type getLastRow(bool const ct = false) const;
568 idx_type numberOfCellsInRow(row_type row) const;
570 void write(std::ostream &) const;
574 void latex(otexstream &, OutputParams const &) const;
576 void docbook(XMLStream &, OutputParams const &) const;
578 docstring xhtml(XMLStream &, OutputParams const &) const;
580 void plaintext(odocstringstream &,
581 OutputParams const & runparams, int const depth,
582 bool onlydata, char_type delim, size_t max_length = INT_MAX) const;
584 bool isMultiColumn(idx_type cell) const;
586 bool hasMultiColumn(col_type cell) const;
588 bool hasVarwidthColumn() const;
590 bool isVTypeColumn(col_type cell) const;
592 idx_type setMultiColumn(Cursor & cur, idx_type cell, idx_type number,
593 bool const right_border);
595 void unsetMultiColumn(idx_type cell);
597 bool isPartOfMultiColumn(row_type row, col_type column) const;
599 bool isPartOfMultiRow(row_type row, col_type column) const;
601 bool isMultiRow(idx_type cell) const;
603 bool hasMultiRow(row_type r) const;
605 idx_type setMultiRow(Cursor & cur, idx_type cell, idx_type number,
606 bool const bottom_border,
607 LyXAlignment const halign);
609 void unsetMultiRow(idx_type cell);
611 row_type cellRow(idx_type cell) const;
613 col_type cellColumn(idx_type cell) const;
615 void setRotateCell(idx_type cell, int);
617 int getRotateCell(idx_type cell) const;
619 bool needRotating() const;
621 bool isLastCell(idx_type cell) const;
623 idx_type cellAbove(idx_type cell) const;
625 idx_type cellBelow(idx_type cell) const;
626 /// \return the index of the VISIBLE cell at row, column
627 /// this will be the same as the cell in the previous row,
628 /// e.g., if the cell is part of a multirow
629 idx_type cellIndex(row_type row, col_type column) const;
631 void setUsebox(idx_type cell, BoxType);
633 BoxType getUsebox(idx_type cell) const;
635 // Long Tabular Options support functions
637 void setLTHead(row_type row, bool flag, ltType const &, bool first);
639 bool getRowOfLTHead(row_type row, ltType &) const;
641 bool getRowOfLTFirstHead(row_type row, ltType &) const;
643 void setLTFoot(row_type row, bool flag, ltType const &, bool last);
645 bool getRowOfLTFoot(row_type row, ltType &) const;
647 bool getRowOfLTLastFoot(row_type row, ltType &) const;
649 void setLTNewPage(row_type row, bool what);
651 bool getLTNewPage(row_type row) const;
653 idx_type setLTCaption(Cursor & cur, row_type row, bool what);
655 bool ltCaption(row_type row) const;
657 bool haveLTHead(bool withcaptions = true) const;
659 bool haveLTFirstHead(bool withcaptions = true) const;
661 bool haveLTFoot(bool withcaptions = true) const;
663 bool haveLTLastFoot(bool withcaptions = true) const;
665 bool haveLTCaption(CaptionType captiontype = CAPTION_ANY) const;
667 // end longtable support
670 /// there is a subtle difference between these two methods.
673 /// cellInset(cellIndex(r,c));
674 /// can return different things. this is because cellIndex(r,c)
675 /// returns the VISIBLE cell at r,c, which may be the same as the
676 /// cell at the previous row or column, if we're dealing with some
677 /// multirow or multicell.
678 std::shared_ptr<InsetTableCell> cellInset(idx_type cell);
679 std::shared_ptr<InsetTableCell> cellInset(row_type row, col_type column);
680 InsetTableCell const * cellInset(idx_type cell) const;
683 void setCellInset(row_type row, col_type column,
684 std::shared_ptr<InsetTableCell>);
685 /// Search for \param inset in the tabular, with the
687 void validate(LaTeXFeatures &) const;
690 // FIXME Now that cells have an InsetTableCell as their insets, rather
691 // than an InsetText, it'd be possible to reverse the relationship here,
692 // so that cell_vector was a vector<InsetTableCell> rather than a
693 // vector<CellData>, and an InsetTableCell had a CellData as a member,
694 // or perhaps just had its members as members.
699 explicit CellData(Buffer *);
701 CellData(CellData const &);
703 CellData & operator=(CellData const &);
715 LyXAlignment alignment;
717 VAlignment valignment;
718 /// width of the part before the decimal
720 /// width of the decimal part
733 bool top_line_rtrimmed;
735 bool top_line_ltrimmed;
737 bool bottom_line_rtrimmed;
739 bool bottom_line_ltrimmed;
745 docstring align_special;
747 Length p_width; // this is only set for multicolumn!!!
749 std::shared_ptr<InsetTableCell> inset;
752 CellData const & cellInfo(idx_type cell) const;
754 CellData & cellInfo(idx_type cell);
756 typedef std::vector<CellData> cell_vector;
758 typedef std::vector<cell_vector> cell_vvector;
769 /// Extra space between the top line and this row
771 /// Ignore top_space if true and use the default top space
772 bool top_space_default;
773 /// Extra space between this row and the bottom line
775 /// Ignore bottom_space if true and use the default bottom space
776 bool bottom_space_default;
777 /// Extra space between the bottom line and the next top line
778 Length interline_space;
779 /// Ignore interline_space if true and use the default interline space
780 bool interline_space_default;
781 /// This are for longtabulars only
784 /// a row of endfirsthead
788 /// row of endlastfoot
790 /// row for a newpage
798 typedef std::vector<RowData> row_vector;
806 LyXAlignment alignment;
808 VAlignment valignment;
814 docstring align_special;
816 docstring decimal_point;
823 typedef std::vector<ColumnData> column_vector;
826 idx_type numberofcells;
828 std::vector<row_type> rowofcell;
830 std::vector<col_type> columnofcell;
834 column_vector column_info;
836 cell_vvector cell_info;
838 Length tabular_width;
844 VAlignment tabular_valignment;
848 HAlignment longtabular_alignment;
850 bool is_long_tabular;
853 /// endfirsthead data
861 void init(Buffer *, row_type rows_arg,
862 col_type columns_arg);
864 void updateIndexes();
866 bool setFixedWidth(row_type r, col_type c);
867 /// return true of update is needed
868 bool updateColumnWidths(MetricsInfo & mi);
870 idx_type columnSpan(idx_type cell) const;
872 idx_type rowSpan(idx_type cell) const;
874 BoxType useBox(idx_type cell) const;
876 // helper function for Latex
878 void TeXTopHLine(otexstream &, row_type row, std::list<col_type>,
879 std::list<col_type>) const;
881 void TeXBottomHLine(otexstream &, row_type row, std::list<col_type>,
882 std::list<col_type>) const;
884 void TeXCellPreamble(otexstream &, idx_type cell, bool & ismulticol, bool & ismultirow,
885 bool const bidi) const;
887 void TeXCellPostamble(otexstream &, idx_type cell, bool ismulticol, bool ismultirow) const;
889 void TeXLongtableHeaderFooter(otexstream &, OutputParams const &, std::list<col_type>,
890 std::list<col_type>) const;
892 bool isValidRow(row_type const row) const;
894 void TeXRow(otexstream &, row_type const row,
895 OutputParams const &, std::list<col_type>, std::list<col_type>) const;
897 // helper functions for plain text
899 bool plaintextTopHLine(odocstringstream &, row_type row,
900 std::vector<unsigned int> const &) const;
902 bool plaintextBottomHLine(odocstringstream &, row_type row,
903 std::vector<unsigned int> const &) const;
905 void plaintextPrintCell(odocstringstream &,
906 OutputParams const &,
907 idx_type cell, row_type row, col_type column,
908 std::vector<unsigned int> const &,
909 bool onlydata, size_t max_length) const;
910 /// auxiliary function for docbook
911 void docbookRow(XMLStream &, row_type, OutputParams const &,
912 bool header = false) const;
914 docstring xhtmlRow(XMLStream & xs, row_type, OutputParams const &,
915 bool header = false) const;
917 /// change associated Buffer
918 void setBuffer(Buffer & buffer);
919 /// retrieve associated Buffer
920 Buffer const & buffer() const { return *buffer_; }
921 /// retrieve associated Buffer
922 Buffer & buffer() { return *buffer_; }
930 class InsetTabular : public Inset
934 InsetTabular(Buffer *, row_type rows = 1,
935 col_type columns = 1);
939 void setBuffer(Buffer & buffer);
942 static void string2params(std::string const &, InsetTabular &);
944 static std::string params2string(InsetTabular const &);
948 void write(std::ostream &) const;
950 void metrics(MetricsInfo &, Dimension &) const;
952 void draw(PainterInfo & pi, int x, int y) const;
954 void drawSelection(PainterInfo & pi, int x, int y) const;
956 void drawBackground(PainterInfo & pi, int x, int y) const;
958 bool editable() const { return true; }
960 bool hasSettings() const { return true; }
962 bool insetAllowed(InsetCode code) const;
964 bool allowSpellCheck() const { return true; }
966 bool canTrackChanges() const { return true; }
968 bool canPaintChange(BufferView const &) const { return true; }
969 /** returns false if, when outputting LaTeX, font changes should
970 be closed before generating this inset. This is needed for
971 insets that may contain several paragraphs */
972 bool inheritFont() const { return false; }
974 bool allowsCaptionVariation(std::string const &) const;
976 bool isTable() const { return true; }
978 RowFlags rowFlags() const;
980 void latex(otexstream &, OutputParams const &) const;
982 int plaintext(odocstringstream & ods, OutputParams const & op,
983 size_t max_length = INT_MAX) const;
985 void docbook(XMLStream &, OutputParams const &) const;
987 docstring xhtml(XMLStream &, OutputParams const &) const;
989 void validate(LaTeXFeatures & features) const;
991 InsetCode lyxCode() const { return TABULAR_CODE; }
993 std::string contextMenu(BufferView const &, int, int) const;
995 std::string contextMenuName() const;
996 /// get offset of this cursor slice relative to our upper left corner
997 void cursorPos(BufferView const & bv, CursorSlice const & sl,
998 bool boundary, int & x, int & y) const;
999 /// Executes a space-separated sequence of tabular-features requests
1000 void tabularFeatures(Cursor & cur, std::string const & what);
1001 /// Change a single tabular feature; does not handle undo.
1002 void tabularFeatures(Cursor & cur, Tabular::Feature feature,
1003 std::string const & val = std::string());
1005 size_t nargs() const { return tabular.numberofcells; }
1007 std::shared_ptr<InsetTableCell const> cell(idx_type) const;
1009 std::shared_ptr<InsetTableCell> cell(idx_type);
1011 Text * getText(int) const;
1013 /// does the inset contain changes ?
1014 bool isChanged() const;
1015 /// set the change for the entire inset
1016 void setChange(Change const & change);
1017 /// accept the changes within the inset
1018 void acceptChanges();
1019 /// reject the changes within the inset
1020 void rejectChanges();
1022 // this should return true if we have a "normal" cell, otherwise false.
1023 // "normal" means without width set!
1024 /// should all paragraphs be output with "Standard" layout?
1025 virtual bool allowParagraphCustomization(idx_type cell = 0) const;
1027 virtual bool forcePlainLayout(idx_type cell = 0) const;
1029 void addPreview(DocIterator const & inset_pos,
1030 graphics::PreviewLoader &) const;
1032 /// lock cell with given index
1033 void edit(Cursor & cur, bool front, EntryDirection entry_from);
1034 /// get table row from x coordinate
1035 int rowFromY(Cursor & cur, int y) const;
1036 /// get table column from y coordinate
1037 int columnFromX(Cursor & cur, int x) const;
1039 Inset * editXY(Cursor & cur, int x, int y);
1040 /// can we go further down on mouse click?
1041 bool descendable(BufferView const &) const { return true; }
1042 /// Update the counters of this inset and of its contents
1043 void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
1045 void addToToc(DocIterator const & di, bool output_active,
1046 UpdateType utype, TocBackend & backend) const;
1049 bool completionSupported(Cursor const &) const;
1051 bool inlineCompletionSupported(Cursor const & cur) const;
1053 bool automaticInlineCompletion() const;
1055 bool automaticPopupCompletion() const;
1057 bool showCompletionCursor() const;
1059 CompletionList const * createCompletionList(Cursor const & cur) const;
1061 docstring completionPrefix(Cursor const & cur) const;
1063 bool insertCompletion(Cursor & cur, docstring const & s, bool finished);
1065 void completionPosAndDim(Cursor const &, int & x, int & y, Dimension & dim) const;
1067 virtual bool usePlainLayout() const { return true; }
1069 docstring layoutName() const { return from_ascii("Tabular"); }
1073 InsetTabular * asInsetTabular() { return this; }
1075 InsetTabular const * asInsetTabular() const { return this; }
1077 bool isRightToLeft(Cursor & cur) const;
1078 /// writes the cells between stidx and enidx as a string, optionally
1079 /// descending into the insets
1080 docstring asString(idx_type stidx, idx_type enidx, bool intoInsets = true);
1082 ParagraphList asParList(idx_type stidx, idx_type enidx);
1084 /// Returns whether the cell in the specified row and column is selected.
1085 bool isCellSelected(Cursor & cur, row_type row, col_type col) const;
1087 void setLayoutForHiddenCells(DocumentClass const & dc);
1089 // Public structures and variables
1091 mutable Tabular tabular;
1095 InsetTabular(InsetTabular const &);
1097 void doDispatch(Cursor & cur, FuncRequest & cmd);
1099 bool getFeatureStatus(Cursor & cur, std::string const & s,
1100 std::string const & argument, FuncStatus & status) const;
1102 bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
1104 Inset * clone() const { return new InsetTabular(*this); }
1107 bool hitSelectRow(BufferView const & bv, int x) const;
1109 bool hitSelectColumn(BufferView const & bv, int y) const;
1110 /// Returns true if coordinates are on row/column selection zones
1111 bool clickable(BufferView const &, int x, int y) const;
1114 void drawCellLines(PainterInfo &, int x, int y, row_type row,
1115 idx_type cell) const;
1117 void setCursorFromCoordinates(Cursor & cur, int x, int y) const;
1120 void moveNextCell(Cursor & cur,
1121 EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
1123 void movePrevCell(Cursor & cur,
1124 EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
1126 int cellXPos(idx_type cell) const;
1128 int cellYPos(idx_type cell) const;
1130 bool copySelection(Cursor & cur);
1132 bool pasteClipboard(Cursor & cur);
1134 void cutSelection(Cursor & cur);
1136 void getSelection(Cursor & cur, row_type & rs, row_type & re,
1137 col_type & cs, col_type & ce) const;
1139 bool insertPlaintextString(BufferView &, docstring const & buf, bool usePaste);
1141 /// return the "Manhattan distance" to nearest corner
1142 int dist(BufferView &, idx_type cell, int x, int y) const;
1143 /// return the cell nearest to x, y
1144 idx_type getNearestCell(BufferView &, int x, int y) const;
1146 /// test the rotation state of the given cell range.
1147 bool oneCellHasRotationState(bool rotated,
1148 row_type row_start, row_type row_end,
1149 col_type col_start, col_type col_end) const;
1151 /// true when selecting rows with the mouse
1153 /// true when selecting columns with the mouse
1157 std::string const featureAsString(Tabular::Feature feature);
1159 /// Split cell on decimal symbol
1160 InsetTableCell splitCell(InsetTableCell & head, docstring const & decimal_sym, bool & hassep);
1164 #endif // INSET_TABULAR_H