]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTabular.h
Stupid bug fix.
[lyx.git] / src / insets / InsetTabular.h
index 60664a49ff8fb0ee00010fb3c2c8166b82ea530c..3d0f3453f1d4461eb77e1f04b3c5182847765080 100644 (file)
@@ -235,7 +235,7 @@ public:
        static const idx_type npos = static_cast<idx_type>(-1);
 
        /// constructor
-       Tabular(Buffer const &, col_type columns_arg, row_type rows_arg);
+       Tabular(Buffer &, col_type columns_arg, row_type rows_arg);
 
        /// Returns true if there is a topline, returns false if not
        bool topLine(idx_type cell) const;
@@ -442,7 +442,7 @@ public:
        class CellData {
        public:
                ///
-               CellData(Buffer const &);
+               CellData(Buffer &);
                ///
                CellData(CellData const &);
                ///
@@ -571,7 +571,7 @@ public:
        ltType endlastfoot;
 
        ///
-       void init(Buffer const &, row_type rows_arg,
+       void init(Buffer &, row_type rows_arg,
                  col_type columns_arg);
        ///
        void updateIndexes();
@@ -618,12 +618,12 @@ public:
        int docbookRow(odocstream & os, row_type, OutputParams const &) const;
 
        /// change associated Buffer
-       void setBuffer(Buffer const & buffer) { buffer_ = &buffer; }
+       void setBuffer(Buffer & buffer);
        /// retrieve associated Buffer
-       Buffer const & buffer() const { return *buffer_; }
+       Buffer & buffer() const { return *buffer_; }
 
 private:
-       Buffer const * buffer_;
+       Buffer * buffer_;
 
 }; // Tabular
 
@@ -633,23 +633,15 @@ class InsetTableCell : public InsetText
 {
 public:
        ///
-       InsetTableCell(Buffer const & buf);
+       InsetTableCell(Buffer & buf);
        ///
        InsetCode lyxCode() const { return CELL_CODE; }
        ///
        Inset * clone() { return new InsetTableCell(*this); }
        ///
-       virtual bool usePlainLayout() const { return true; }
-       /// 
-       virtual bool forcePlainLayout(idx_type = 0) const;
-       /// 
-       virtual bool allowParagraphCustomization(idx_type = 0) const;
-       ///
        bool getStatus(Cursor & cur, FuncRequest const & cmd,
                FuncStatus & status) const;
        ///
-       virtual bool neverIndent() { return true; }
-       ///
        void toggleFixedWidth(bool fw) { isFixedWidth = fw; }
 private:
        /// unimplemented
@@ -681,6 +673,16 @@ private:
        // --rgh
        ///
        bool isFixedWidth;
+       /// should paragraph indendation be omitted in any case?
+       bool neverIndent() const { return true; }
+       ///
+       virtual bool usePlainLayout() const { return true; }
+       /// 
+       virtual bool forcePlainLayout(idx_type = 0) const;
+       /// 
+       virtual bool allowParagraphCustomization(idx_type = 0) const;
+       /// Is the width forced to some value?
+       bool hasFixedWidth() const { return isFixedWidth; }
 };
 
 
@@ -688,7 +690,7 @@ class InsetTabular : public Inset
 {
 public:
        ///
-       InsetTabular(Buffer const &, row_type rows = 1,
+       InsetTabular(Buffer &, row_type rows = 1,
                     col_type columns = 1);
        ///
        ~InsetTabular();