]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTabular.h
Move isMultiCell() to Cursor, and use it.
[lyx.git] / src / insets / InsetTabular.h
index 4b2d31d09f070879a59795566e2d4306f0dcb729..66862d68f132e5a7e5fb18e0a145df2a6c27053c 100644 (file)
@@ -643,6 +643,9 @@ public:
                FuncStatus & status) const;
        ///
        void toggleFixedWidth(bool fw) { isFixedWidth = fw; }
+       /// writes the contents of the cell as a string, optionally
+       /// descending into insets
+       docstring asString(bool intoInsets = true);
 private:
        /// unimplemented
        InsetTableCell();
@@ -809,6 +812,8 @@ public:
        bool insertCompletion(Cursor & cur, docstring const & s, bool finished);
        ///
        void completionPosAndDim(Cursor const &, int & x, int & y, Dimension & dim) const;
+       ///
+       virtual bool usePlainLayout() const { return true; }
 
        ///
        virtual InsetTabular * asInsetTabular() { return this; }
@@ -816,6 +821,9 @@ public:
        virtual InsetTabular const * asInsetTabular() const { return this; }
        ///
        bool isRightToLeft(Cursor & cur) const;
+       /// writes the cells between stidx and enidx as a string, optionally
+       /// descending into the insets
+       docstring asString(idx_type stidx, idx_type enidx, bool intoInsets = true);
 
        //
        // Public structures and variables
@@ -863,8 +871,6 @@ private:
                          col_type & cs, col_type & ce) const;
        ///
        bool insertPlaintextString(BufferView &, docstring const & buf, bool usePaste);
-       /// are we operating on several cells?
-       bool tablemode(Cursor & cur) const;
 
        /// return the "Manhattan distance" to nearest corner
        int dist(BufferView &, idx_type cell, int x, int y) const;