From ff9f3c774edb513dab96e33fbc18a6856e3ab323 Mon Sep 17 00:00:00 2001 From: Thibaut Cuvelier Date: Thu, 1 Sep 2022 23:35:52 +0200 Subject: [PATCH] InsetTabular: move XML helper methods to private They are not needed outside InsetTabular. --- src/insets/InsetTabular.h | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/src/insets/InsetTabular.h b/src/insets/InsetTabular.h index 73e61f299d..1bd49f1119 100644 --- a/src/insets/InsetTabular.h +++ b/src/insets/InsetTabular.h @@ -953,20 +953,6 @@ public: idx_type cell, row_type row, col_type column, std::vector const &, bool onlydata, size_t max_length) const; - /// - docstring xmlRow(XMLStream & xs, row_type row, OutputParams const &, - bool header = false, bool is_xhtml = true, - BufferParams::TableOutput docbook_table_output = BufferParams::TableOutput::HTMLTable) const; - void xmlHeader(XMLStream & xs, OutputParams const &, bool is_xhtml) const; - void xmlFooter(XMLStream & xs, OutputParams const &, bool is_xhtml) const; - void xmlBody(XMLStream & xs, OutputParams const &, bool is_xhtml) const; - XmlRowWiseBorders computeXmlBorders(row_type row) const; - std::vector computeCssStylePerCell(row_type row, col_type col, idx_type cell) const; - - /// Transforms the vertical alignment of the given cell as a prebaked XML attribute (for HTML and CALS). - std::string getHAlignAsXmlAttribute(idx_type cell, bool is_xhtml = true) const; - /// Transforms the vertical alignment of the given cell as a prebaked XML attribute (for HTML and CALS). - std::string getVAlignAsXmlAttribute(idx_type cell) const; /// change associated Buffer void setBuffer(Buffer & buffer); @@ -978,6 +964,21 @@ public: private: Buffer * buffer_; + /// Transforms the vertical alignment of the given cell as a prebaked XML attribute (for HTML and CALS). + std::string getHAlignAsXmlAttribute(idx_type cell, XmlOutputFormat output_format) const; + /// Transforms the vertical alignment of the given cell as a prebaked XML attribute (for HTML and CALS). + std::string getVAlignAsXmlAttribute(idx_type cell) const; + + /// Helpers for XML tables (XHTML or DocBook). + docstring xmlRow(XMLStream & xs, row_type row, OutputParams const &, + bool header = false, bool is_xhtml = true, + BufferParams::TableOutput docbook_table_output = BufferParams::TableOutput::HTMLTable) const; + void xmlHeader(XMLStream & xs, OutputParams const &, bool is_xhtml) const; + void xmlFooter(XMLStream & xs, OutputParams const &, bool is_xhtml) const; + void xmlBody(XMLStream & xs, OutputParams const &, bool is_xhtml) const; + XmlRowWiseBorders computeXmlBorders(row_type row) const; + std::vector computeCssStylePerCell(row_type row, col_type col, idx_type cell) const; + }; // Tabular