]> git.lyx.org Git - lyx.git/blobdiff - src/tabular.h
bug 2298: cursorTop/Bottom/Home/End does not redraw after dEPM
[lyx.git] / src / tabular.h
index b7e1dc8de33234590f5dd66da6f625fabc15f7bb..fc54679fa0d0d04dc008cc195b97255d4733d22c 100644 (file)
@@ -24,6 +24,7 @@
 #include <vector>
 
 class InsetTabular;
+class LCursor;
 class OutputParams;
 
 /* The features the text class offers for tables */
@@ -157,7 +158,8 @@ public:
                BOX_MINIPAGE = 2
        };
 
-       struct ltType {
+       class ltType {
+       public:
                // constructor
                ltType();
                // we have this header type (is set in the getLT... functions)
@@ -240,9 +242,9 @@ public:
        void setVAlignment(idx_type cell, VAlignment align,
                           bool onlycolumn = false);
        ///
-       void setColumnPWidth(idx_type cell, LyXLength const & width);
+       void setColumnPWidth(LCursor &, idx_type, LyXLength const &);
        ///
-       bool setMColumnPWidth(idx_type cell, LyXLength const & width);
+       bool setMColumnPWidth(LCursor &, idx_type, LyXLength const &);
        ///
        void setAlignSpecial(idx_type cell, std::string const & special,
                             Feature what);
@@ -383,6 +385,9 @@ public:
        ///
        boost::shared_ptr<InsetText> getCellInset(row_type row,
                                                  col_type column) const;
+       ///
+       void setCellInset(row_type row, col_type column,
+                         boost::shared_ptr<InsetText>) const;
        /// Search for \param inset in the tabular, with the
        ///
        idx_type getCellFromInset(InsetBase const * inset) const;
@@ -392,12 +397,11 @@ public:
        col_type columns() const { return columns_;}
        ///
        void validate(LaTeXFeatures &) const;
-       /// Appends \c list with all labels found within this inset.
-       void getLabelList(Buffer const &, std::vector<std::string> & list) const;
        ///
 //private:
        ///
-       struct cellstruct {
+       class cellstruct {
+       public:
                ///
                cellstruct(BufferParams const &);
                ///
@@ -442,7 +446,8 @@ public:
        typedef std::vector<cell_vector> cell_vvector;
 
        ///
-       struct rowstruct {
+       class rowstruct {
+       public:
                ///
                rowstruct();
                ///
@@ -469,7 +474,8 @@ public:
        typedef std::vector<rowstruct> row_vector;
 
        ///
-       struct columnstruct {
+       class columnstruct {
+               public:
                ///
                columnstruct();
                ///
@@ -545,9 +551,6 @@ public:
        ///
        BoxType useParbox(idx_type cell) const;
        ///
-       void setHeaderFooterRows(row_type header, row_type fheader,
-                                row_type footer, row_type lfooter);
-       ///
        // helper function for Latex returns number of newlines
        ///
        int TeXTopHLine(std::ostream &, row_type row) const;