]> git.lyx.org Git - lyx.git/blobdiff - src/tabular.h
Point fix, earlier forgotten
[lyx.git] / src / tabular.h
index 2486a71e2ddeb2b10f5f11534860d952f6858ac2..c2ac148da6805277dc5041288b0d44e82735ff3f 100644 (file)
@@ -1,14 +1,17 @@
 // -*- C++ -*-
-/* This file is part of
- * ======================================================
+/**
+ * \file tabular.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author Lars Gullik Bjønnes
+ * \author Matthias Ettrich
+ * \author André Pönitz
+ * \author Jürgen Vigna
  *
- *           Copyright 2000-2001 The LyX Team.
- *
- *           @author: Jürgen Vigna
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS.
+ */
+
 #ifndef TABULAR_H
 #define TABULAR_H
 
@@ -57,7 +60,7 @@ public:
                ///
                VALIGN_BOTTOM,
                ///
-               VALIGN_CENTER,
+               VALIGN_MIDDLE,
                ///
                M_TOGGLE_LINE_TOP,
                ///
@@ -77,7 +80,7 @@ public:
                ///
                M_VALIGN_BOTTOM,
                ///
-               M_VALIGN_CENTER,
+               M_VALIGN_MIDDLE,
                ///
                MULTICOLUMN,
                ///
@@ -140,7 +143,7 @@ public:
                ///
                LYX_VALIGN_BOTTOM = 1,
                ///
-               LYX_VALIGN_CENTER = 2
+               LYX_VALIGN_MIDDLE = 2
        };
 
        enum BoxType {
@@ -175,7 +178,7 @@ public:
                   InsetTabular *, LyXTabular const &);
        ///
        explicit
-       LyXTabular(Buffer const *, InsetTabular *, LyXLex & lex);
+       LyXTabular(Buffer const &, InsetTabular *, LyXLex & lex);
 
        /// Returns true if there is a topline, returns false if not
        bool topLine(int cell, bool onlycolumn = false) const;
@@ -210,11 +213,11 @@ public:
        ///
        int getHeightOfTabular() const;
        /// Returns true if a complete update is necessary, otherwise false
-       bool setAscentOfRow(int row, int height);
+       void setAscentOfRow(int row, int height);
        /// Returns true if a complete update is necessary, otherwise false
-       bool setDescentOfRow(int row, int height);
+       void setDescentOfRow(int row, int height);
        /// Returns true if a complete update is necessary, otherwise false
-       bool setWidthOfCell(int cell, int new_width);
+       void setWidthOfCell(int cell, int new_width);
        ///
        void setAllLines(int cell, bool line);
        ///
@@ -274,18 +277,18 @@ public:
        ///
        int numberOfCellsInRow(int cell) const;
        ///
-       void write(Buffer const *, std::ostream &) const;
+       void write(Buffer const &, std::ostream &) const;
        ///
-       void read(Buffer const *, LyXLex &);
+       void read(Buffer const &, LyXLex &);
        ///
-       int latex(Buffer const *, std::ostream &,
+       int latex(Buffer const &, std::ostream &,
                  LatexRunParams const &) const;
        //
-       int linuxdoc(Buffer const * buf, std::ostream & os) const;
+       int linuxdoc(Buffer const & buf, std::ostream & os) const;
        ///
-       int docbook(Buffer const * buf, std::ostream & os, bool mixcont) const;
+       int docbook(Buffer const & buf, std::ostream & os, bool mixcont) const;
        ///
-       int ascii(Buffer const *, std::ostream &, int const depth,
+       int ascii(Buffer const &, std::ostream &, int const depth,
                  bool onlydata, unsigned char delim) const;
        ///
        bool isMultiColumn(int cell, bool real = false) const;
@@ -543,12 +546,12 @@ public:
        ///
        int TeXCellPostamble(std::ostream &, int cell) const;
        ///
-       int TeXLongtableHeaderFooter(std::ostream &, Buffer const * buf,
+       int TeXLongtableHeaderFooter(std::ostream &, Buffer const & buf,
                                     LatexRunParams const &) const;
        ///
        bool isValidRow(int const row) const;
        ///
-       int TeXRow(std::ostream &, int const row, Buffer const * buf,
+       int TeXRow(std::ostream &, int const row, Buffer const & buf,
                   LatexRunParams const &) const;
        ///
        // helper function for ASCII returns number of newlines
@@ -559,12 +562,12 @@ public:
        int asciiBottomHLine(std::ostream &, int row,
                             std::vector<unsigned int> const &) const;
        ///
-       int asciiPrintCell(Buffer const *, std::ostream &,
+       int asciiPrintCell(Buffer const &, std::ostream &,
                           int cell, int row, int column,
                           std::vector<unsigned int> const &,
                                           bool onlydata) const;
        /// auxiliary function for docbook
-       int docbookRow(Buffer const * buf, std::ostream & os, int row) const;
+       int docbookRow(Buffer const & buf, std::ostream & os, int row) const;
 };
 
 #endif