- /** pos points at the beginning of the next cell (if there is one)
- */
- int WidthOfCell(LyXParagraph * par,
- LyXParagraph::size_type & pos) const;
- ///
- void CheckParagraphInTable(LyXParagraph * par,
- LyXParagraph::size_type pos);
- ///
- void InsertCharInTable(char c);
- ///
- void BackspaceInTable();
- ///
- bool HitInTable(Row * row, int x) const;
- ///
- bool MouseHitInTable(int x, long y) const;
- /* table stuff -- end*/
- ///
- LyXParagraph * GetParFromID(int id);
-
- // undo functions
- /// returns false if no undo possible
- bool TextUndo();
- /// returns false if no redo possible
- bool TextRedo();
- /// used by TextUndo/TextRedo
- bool TextHandleUndo(Undo * undo);
- /// makes sure the next operation will be stored
- void FinishUndo();
- /// this is dangerous and for internal use only
- void FreezeUndo();
- /// this is dangerous and for internal use only
- void UnFreezeUndo();
- /// the flag used by FinishUndo();
- mutable bool undo_finished;
- /// a flag
- bool undo_frozen;
- ///
- void SetUndo(Undo::undo_kind kind,
- LyXParagraph const * before,
- LyXParagraph const * end) const;
- ///
- void SetRedo(Undo::undo_kind kind,
- LyXParagraph const * before,
- LyXParagraph const * end);
- ///
- Undo * CreateUndo(Undo::undo_kind kind,
- LyXParagraph const * before,
- LyXParagraph const * end) const;
- /// for external use in lyx_cb.C
- void SetCursorParUndo();
- ///
- void CursorLeftIntern() const;
- ///
- void CursorRightIntern() const;
- ///
- void RemoveTableRow(LyXCursor * cursor) const;
- ///
- bool IsEmptyTableCell() const;
- ///
- void toggleAppendix();
- ///
- unsigned short paperWidth() const { return paperwidth; }
-private: