1999-09-27 18:44:28 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
1999-11-15 12:01:38 +00:00
|
|
|
* ======================================================
|
1999-09-27 18:44:28 +00:00
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
1999-10-07 18:44:17 +00:00
|
|
|
* Copyright 1995 Matthias Ettrich
|
2000-03-16 04:29:22 +00:00
|
|
|
* Copyright 1995-2000 The LyX Team.
|
1999-09-27 18:44:28 +00:00
|
|
|
*
|
1999-11-15 12:01:38 +00:00
|
|
|
* ====================================================== */
|
1999-09-27 18:44:28 +00:00
|
|
|
|
1999-10-07 18:44:17 +00:00
|
|
|
#ifndef LYXTEXT_H
|
|
|
|
#define LYXTEXT_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "lyxfont.h"
|
|
|
|
#include "undo.h"
|
|
|
|
#include "lyxcursor.h"
|
1999-11-04 01:40:20 +00:00
|
|
|
#include "lyxparagraph.h"
|
2000-02-03 19:51:27 +00:00
|
|
|
#include "layout.h"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
class Buffer;
|
|
|
|
class BufferParams;
|
2000-02-04 09:38:32 +00:00
|
|
|
class Row;
|
2000-02-10 17:53:36 +00:00
|
|
|
class BufferView;
|
2000-06-21 15:07:57 +00:00
|
|
|
class InsetText;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
2000-04-26 13:57:28 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
/**
|
|
|
|
This class holds the mapping between buffer paragraphs and screen rows.
|
|
|
|
*/
|
|
|
|
class LyXText {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
enum text_status {
|
|
|
|
///
|
|
|
|
UNCHANGED,
|
|
|
|
///
|
|
|
|
NEED_MORE_REFRESH,
|
|
|
|
///
|
2000-07-07 08:24:42 +00:00
|
|
|
NEED_VERY_LITTLE_REFRESH,
|
|
|
|
///
|
|
|
|
CHANGED_IN_DRAW
|
1999-09-27 18:44:28 +00:00
|
|
|
};
|
|
|
|
|
2000-04-10 21:40:13 +00:00
|
|
|
/// Constructor
|
2000-06-12 11:27:15 +00:00
|
|
|
LyXText(BufferView *);
|
2000-08-07 20:58:24 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
LyXText(InsetText *);
|
2000-04-10 21:40:13 +00:00
|
|
|
|
|
|
|
/// Destructor
|
|
|
|
~LyXText();
|
|
|
|
|
2000-06-12 11:27:15 +00:00
|
|
|
void init(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-01-13 16:28:54 +00:00
|
|
|
mutable int number_of_rows;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-01-13 16:28:54 +00:00
|
|
|
mutable long height;
|
2000-08-07 20:58:24 +00:00
|
|
|
///
|
2000-06-26 15:10:49 +00:00
|
|
|
mutable unsigned int width;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// the current font settings
|
2000-01-13 16:28:54 +00:00
|
|
|
mutable LyXFont current_font;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// the current font
|
2000-01-13 16:28:54 +00:00
|
|
|
mutable LyXFont real_current_font;
|
2000-06-22 14:55:46 +00:00
|
|
|
/// first visible pixel-row is set from LyXScreen!!!
|
|
|
|
unsigned long first;
|
|
|
|
///
|
|
|
|
BufferView * bv_owner;
|
|
|
|
///
|
|
|
|
InsetText * inset_owner;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
LyXFont GetFont(Buffer const *, LyXParagraph * par,
|
2000-01-13 16:28:54 +00:00
|
|
|
LyXParagraph::size_type pos) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void SetCharFont(Buffer const *, LyXParagraph * par,
|
1999-11-04 01:40:20 +00:00
|
|
|
LyXParagraph::size_type pos,
|
2000-01-13 16:28:54 +00:00
|
|
|
LyXFont const & font);
|
1999-09-27 18:44:28 +00:00
|
|
|
/// returns a pointer to the very first LyXParagraph
|
2000-01-13 16:28:54 +00:00
|
|
|
LyXParagraph * FirstParagraph() const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/// what you expect when pressing <enter> at cursor position
|
2000-06-12 11:27:15 +00:00
|
|
|
void BreakParagraph(BufferView *, char keep_layout = 0);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** set layout over selection and make a total rebreak of
|
|
|
|
those paragraphs
|
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
LyXParagraph * SetLayout(BufferView *, LyXCursor & actual_cursor,
|
2000-05-04 08:14:34 +00:00
|
|
|
LyXCursor & selection_start,
|
|
|
|
LyXCursor & selection_end,
|
|
|
|
LyXTextClass::size_type layout);
|
2000-06-12 11:27:15 +00:00
|
|
|
void SetLayout(BufferView *, LyXTextClass::size_type layout);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/// used in setlayout
|
2000-06-12 11:27:15 +00:00
|
|
|
void MakeFontEntriesLayoutSpecific(Buffer const *, LyXParagraph * par);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** increment depth over selection and make a total rebreak of those
|
|
|
|
paragraphs
|
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
void IncDepth(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** decrement depth over selection and make a total rebreak of those
|
|
|
|
paragraphs */
|
2000-06-12 11:27:15 +00:00
|
|
|
void DecDepth(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** Get the depth at current cursor position
|
|
|
|
*/
|
2000-06-08 23:16:16 +00:00
|
|
|
int GetDepth() const { return cursor.par()->GetDepth(); }
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** set font over selection and make a total rebreak of those
|
|
|
|
paragraphs.
|
|
|
|
toggleall defaults to false.
|
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
void SetFont(BufferView *, LyXFont const &, bool toggleall = false);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** deletes and inserts again all paragaphs between the cursor
|
2000-01-13 16:28:54 +00:00
|
|
|
and the specified par. The Cursor is needed to set the refreshing
|
1999-09-27 18:44:28 +00:00
|
|
|
parameters.
|
|
|
|
This function is needed after SetLayout and SetFont etc.
|
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
void RedoParagraphs(BufferView *, LyXCursor const & cursor,
|
2000-01-13 16:28:54 +00:00
|
|
|
LyXParagraph const * end_par) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void RedoParagraph(BufferView *) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void ToggleFree(BufferView *, LyXFont const &, bool toggleall = false);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** recalculates the heights of all previous rows of the
|
|
|
|
specified paragraph. needed, if the last characters font
|
|
|
|
has changed.
|
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
void RedoHeightOfParagraph(BufferView *, LyXCursor const & cursor);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** forces the redrawing of a paragraph. Needed when manipulating a
|
|
|
|
right address box
|
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
void RedoDrawingOfParagraph(BufferView *, LyXCursor const & cursor);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** insert a character, moves all the following breaks in the
|
|
|
|
same Paragraph one to the right and make a little rebreak
|
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
void InsertChar(BufferView *, char c);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void InsertInset(BufferView *, Inset * inset);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
2000-04-26 13:57:28 +00:00
|
|
|
/** Completes the insertion with a full rebreak.
|
|
|
|
Returns true if something was broken. */
|
2000-06-12 11:27:15 +00:00
|
|
|
bool FullRebreak(BufferView *);
|
1999-11-22 16:19:48 +00:00
|
|
|
|
2000-07-19 17:16:27 +00:00
|
|
|
#ifndef NEW_INSETS
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
LyXParagraph::footnote_flag GetFootnoteFlag(int row);
|
2000-07-19 17:16:27 +00:00
|
|
|
#endif
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
Row * need_break_row;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-01-13 16:28:54 +00:00
|
|
|
mutable long refresh_y;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
int refresh_height;
|
|
|
|
///
|
|
|
|
int refresh_width;
|
|
|
|
///
|
|
|
|
int refresh_x;
|
|
|
|
///
|
2000-01-13 16:28:54 +00:00
|
|
|
mutable Row * refresh_row;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
int refresh_pos;
|
|
|
|
|
|
|
|
/** wether the screen needs a refresh,
|
|
|
|
starting with refresh_y
|
|
|
|
*/
|
2000-01-13 16:28:54 +00:00
|
|
|
mutable text_status status;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** returns a pointer to the row near the specified y-coordinate
|
|
|
|
(relative to the whole text). y is set to the real beginning
|
|
|
|
of this row
|
|
|
|
*/
|
2000-01-13 16:28:54 +00:00
|
|
|
Row * GetRowNearY(long & y) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** returns the column near the specified x-coordinate of the row
|
|
|
|
x is set to the real beginning of this column
|
|
|
|
*/
|
2000-08-07 20:58:24 +00:00
|
|
|
int GetColumnNearX(BufferView *, Row * row,
|
|
|
|
int & x, bool & boundary) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** returns a pointer to a specified row. y is set to the beginning
|
|
|
|
of the row
|
|
|
|
*/
|
1999-11-04 01:40:20 +00:00
|
|
|
Row * GetRow(LyXParagraph * par,
|
2000-01-13 16:28:54 +00:00
|
|
|
LyXParagraph::size_type pos, long & y) const;
|
2000-06-16 15:13:25 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
/** returns the height of a default row, needed for scrollbar
|
|
|
|
*/
|
2000-01-13 16:28:54 +00:00
|
|
|
int DefaultHeight() const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** The cursor.
|
|
|
|
Later this variable has to be removed. There should be now internal
|
|
|
|
cursor in a text (and thus not in a buffer). By keeping this it is
|
|
|
|
(I think) impossible to have several views with the same buffer, but
|
|
|
|
the cursor placed at different places.
|
2000-01-06 02:44:26 +00:00
|
|
|
[later]
|
|
|
|
Since the LyXText now has been moved from Buffer to BufferView
|
|
|
|
it should not be absolutely needed to move the cursor...
|
1999-09-27 18:44:28 +00:00
|
|
|
*/
|
2000-01-13 16:28:54 +00:00
|
|
|
mutable LyXCursor cursor;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/* the selection cursor */
|
|
|
|
///
|
2000-01-13 16:28:54 +00:00
|
|
|
mutable bool selection;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-01-13 16:28:54 +00:00
|
|
|
mutable bool mark_set;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
///
|
2000-01-13 16:28:54 +00:00
|
|
|
mutable LyXCursor sel_cursor;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
LyXCursor sel_start_cursor;
|
|
|
|
///
|
2000-01-13 16:28:54 +00:00
|
|
|
mutable LyXCursor sel_end_cursor;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// needed for the toggling
|
|
|
|
LyXCursor last_sel_cursor;
|
|
|
|
///
|
|
|
|
LyXCursor toggle_cursor;
|
|
|
|
///
|
|
|
|
LyXCursor toggle_end_cursor;
|
|
|
|
|
|
|
|
/// need the selection cursor:
|
2000-06-16 15:13:25 +00:00
|
|
|
void SetSelection();
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-01-13 16:28:54 +00:00
|
|
|
void ClearSelection() const;
|
2000-05-20 21:37:05 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
string selectionAsString(Buffer const *) const;
|
2000-05-20 21:37:05 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
/// just selects the word the cursor is in
|
2000-06-12 11:27:15 +00:00
|
|
|
void SelectWord(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** 'selects" the next word, where the cursor is not in
|
|
|
|
and returns this word as string. THe cursor will be moved
|
|
|
|
to the beginning of this word.
|
|
|
|
With SelectSelectedWord can this be highlighted really
|
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
char * SelectNextWord(BufferView *, float & value);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void SelectSelectedWord(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void SetCursor(BufferView *, LyXParagraph * par,
|
2000-02-03 19:51:27 +00:00
|
|
|
LyXParagraph::size_type pos,
|
2000-05-30 19:31:11 +00:00
|
|
|
bool setfont = true,
|
|
|
|
bool boundary = false) const;
|
2000-08-07 20:58:24 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void SetCursor(BufferView *, LyXCursor &, LyXParagraph * par,
|
2000-05-30 19:31:11 +00:00
|
|
|
LyXParagraph::size_type pos,
|
|
|
|
bool boundary = false) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void SetCursorIntern(BufferView *, LyXParagraph * par,
|
2000-02-03 19:51:27 +00:00
|
|
|
LyXParagraph::size_type pos,
|
2000-05-30 19:31:11 +00:00
|
|
|
bool setfont = true,
|
|
|
|
bool boundary = false) const;
|
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void SetCurrentFont(BufferView *) const;
|
2000-05-30 19:31:11 +00:00
|
|
|
|
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
bool IsBoundary(Buffer const *, LyXParagraph * par,
|
2000-05-30 19:31:11 +00:00
|
|
|
LyXParagraph::size_type pos) const;
|
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
bool IsBoundary(Buffer const *, LyXParagraph * par,
|
2000-05-30 19:31:11 +00:00
|
|
|
LyXParagraph::size_type pos,
|
|
|
|
LyXFont const & font) const;
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void SetCursorFromCoordinates(BufferView *, int x, long y) const;
|
2000-08-07 20:58:24 +00:00
|
|
|
///
|
2000-07-17 18:27:53 +00:00
|
|
|
void SetCursorFromCoordinates(BufferView *, LyXCursor &,
|
|
|
|
int x, long y) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CursorUp(BufferView *) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CursorDown(BufferView *) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CursorLeft(BufferView *, bool internal = true) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CursorRight(BufferView *, bool internal = true) const;
|
2000-05-30 19:31:11 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CursorLeftIntern(BufferView *, bool internal = true) const;
|
2000-05-30 19:31:11 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CursorRightIntern(BufferView *, bool internal = true) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CursorLeftOneWord(BufferView *) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CursorRightOneWord(BufferView *) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CursorUpParagraph(BufferView *) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CursorDownParagraph(BufferView *) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CursorHome(BufferView *) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CursorEnd(BufferView *) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CursorTab(BufferView *) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CursorTop(BufferView *) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CursorBottom(BufferView *) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void Delete(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void Backspace(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void DeleteWordForward(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void DeleteWordBackward(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void DeleteLineForward(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
bool SelectWordWhenUnderCursor(BufferView *);
|
2000-08-07 20:58:24 +00:00
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
enum TextCase {
|
2000-08-07 20:58:24 +00:00
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
text_lowercase = 0,
|
2000-08-07 20:58:24 +00:00
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
text_capitalization = 1,
|
2000-08-07 20:58:24 +00:00
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
text_uppercase = 2
|
|
|
|
};
|
1999-11-22 16:19:48 +00:00
|
|
|
/// Change the case of the word at cursor position.
|
2000-06-12 11:27:15 +00:00
|
|
|
void ChangeWordCase(BufferView *, TextCase action);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** returns a printed row in a pixmap. The y value is needed to
|
|
|
|
decide, wether it is selected text or not. This is a strange
|
|
|
|
solution but faster.
|
2000-02-10 17:53:36 +00:00
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
void GetVisibleRow(BufferView *, int y_offset, int x_offset,
|
2000-07-04 11:30:07 +00:00
|
|
|
Row * row_ptr, long y, bool cleared=false);
|
2000-04-03 11:36:35 +00:00
|
|
|
|
2000-07-19 17:16:27 +00:00
|
|
|
#ifndef NEW_INSETS
|
1999-09-27 18:44:28 +00:00
|
|
|
/* footnotes: */
|
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void ToggleFootnote(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void OpenStuff(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
void OpenFootnotes();
|
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void OpenFootnote(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
void CloseFootnotes();
|
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CloseFootnote(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** turn the selection into a new environment. If there is no
|
|
|
|
selection, create an empty environment
|
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
void InsertFootnoteEnvironment(BufferView *,
|
|
|
|
LyXParagraph::footnote_kind kind);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void MeltFootnoteEnvironment(BufferView *);
|
2000-07-19 17:16:27 +00:00
|
|
|
#endif
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CutSelection(BufferView *, bool = true);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-15 15:44:39 +00:00
|
|
|
void CopySelection(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void PasteSelection(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
void copyEnvironmentType();
|
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void pasteEnvironmentType(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
void InsertFootnote();
|
|
|
|
///
|
|
|
|
void InsertMarginpar();
|
|
|
|
///
|
|
|
|
void InsertFigure();
|
|
|
|
///
|
|
|
|
void InsertTabular();
|
|
|
|
|
|
|
|
/** the DTP switches for paragraphs. LyX will store the top settings
|
|
|
|
always in the first physical paragraph, the bottom settings in the
|
|
|
|
last. When a paragraph is broken, the top settings rest, the bottom
|
|
|
|
settings are given to the new one. So I can make shure, they do not
|
|
|
|
duplicate themself (and you cannnot make dirty things with them! )
|
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
void SetParagraph(BufferView *,
|
|
|
|
bool line_top, bool line_bottom,
|
1999-09-27 18:44:28 +00:00
|
|
|
bool pagebreak_top, bool pagebreak_bottom,
|
2000-01-13 16:28:54 +00:00
|
|
|
VSpace const & space_top,
|
|
|
|
VSpace const & space_bottom,
|
1999-11-04 01:40:20 +00:00
|
|
|
LyXAlignment align,
|
1999-10-02 16:21:10 +00:00
|
|
|
string labelwidthstring,
|
1999-09-27 18:44:28 +00:00
|
|
|
bool noindent);
|
2000-08-07 20:58:24 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void SetParagraphExtraOpt(BufferView *, int type,
|
2000-02-25 12:06:15 +00:00
|
|
|
char const * width,
|
|
|
|
char const * widthp,
|
|
|
|
int alignment, bool hfill,
|
|
|
|
bool start_minipage);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/* these things are for search and replace */
|
|
|
|
|
|
|
|
/** returns true if the specified string is at the specified
|
|
|
|
position
|
|
|
|
*/
|
1999-11-04 01:40:20 +00:00
|
|
|
bool IsStringInText(LyXParagraph * par,
|
|
|
|
LyXParagraph::size_type pos,
|
2000-01-13 16:28:54 +00:00
|
|
|
char const * str) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
/** sets the selection over the number of characters of string,
|
|
|
|
no check!!
|
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
void SetSelectionOverString(BufferView *, char const * str);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** simple replacing. The font of the first selected character
|
|
|
|
is used
|
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
void ReplaceSelectionWithString(BufferView *, char const * str);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** if the string can be found: return true and set the cursor to
|
|
|
|
the new position */
|
2000-06-12 11:27:15 +00:00
|
|
|
bool SearchForward(BufferView *, char const * str) const;
|
2000-08-07 20:58:24 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
bool SearchBackward(BufferView *, char const * str) const;
|
1999-11-04 01:40:20 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
/// needed to insert the selection
|
2000-06-12 11:27:15 +00:00
|
|
|
void InsertStringA(BufferView *, string const & str);
|
1999-09-27 18:44:28 +00:00
|
|
|
/// needed to insert the selection
|
2000-06-12 11:27:15 +00:00
|
|
|
void InsertStringB(BufferView *, string const & str);
|
1999-11-04 01:40:20 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
/// usefull when texing from within LyX
|
2000-06-12 11:27:15 +00:00
|
|
|
bool GotoNextError(BufferView *) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/// just another feature :)
|
2000-06-12 11:27:15 +00:00
|
|
|
bool GotoNextNote(BufferView *) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/* for the greater insets */
|
|
|
|
|
2000-06-21 15:07:57 +00:00
|
|
|
/// returns false if inset wasn't found
|
|
|
|
bool UpdateInset(BufferView *, Inset *);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CheckParagraph(BufferView *, LyXParagraph * par,
|
1999-11-04 01:40:20 +00:00
|
|
|
LyXParagraph::size_type pos);
|
|
|
|
///
|
|
|
|
int NumberOfCell(LyXParagraph * par,
|
2000-01-13 16:28:54 +00:00
|
|
|
LyXParagraph::size_type pos) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
/* table stuff -- begin*/
|
|
|
|
|
|
|
|
/** all table features of the text-class are put together in
|
|
|
|
this function. Possible values of feature are defined in table.h
|
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
void TableFeatures(BufferView *, int feature, string const & val) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void TableFeatures(BufferView *, int feature) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** pos points at the beginning of the next cell (if there is one)
|
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
int WidthOfCell(BufferView *, LyXParagraph * par,
|
2000-01-13 16:28:54 +00:00
|
|
|
LyXParagraph::size_type & pos) const;
|
1999-11-04 01:40:20 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void CheckParagraphInTable(BufferView *, LyXParagraph * par,
|
1999-11-04 01:40:20 +00:00
|
|
|
LyXParagraph::size_type pos);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void InsertCharInTable(BufferView *, char c);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void BackspaceInTable(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
bool HitInTable(BufferView *, Row * row, int x) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
bool MouseHitInTable(BufferView *, int x, long y) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
/* table stuff -- end*/
|
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
LyXParagraph * GetParFromID(int id);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
// undo functions
|
|
|
|
/// returns false if no undo possible
|
2000-06-12 11:27:15 +00:00
|
|
|
bool TextUndo(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
/// returns false if no redo possible
|
2000-06-12 11:27:15 +00:00
|
|
|
bool TextRedo(BufferView *);
|
1999-09-27 18:44:28 +00:00
|
|
|
/// used by TextUndo/TextRedo
|
2000-06-12 11:27:15 +00:00
|
|
|
bool TextHandleUndo(BufferView *, Undo * undo);
|
1999-09-27 18:44:28 +00:00
|
|
|
/// 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();
|
2000-01-13 16:28:54 +00:00
|
|
|
mutable bool undo_finished;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// a flag
|
|
|
|
bool undo_frozen;
|
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void SetUndo(Buffer *, Undo::undo_kind kind,
|
2000-01-13 16:28:54 +00:00
|
|
|
LyXParagraph const * before,
|
|
|
|
LyXParagraph const * end) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void SetRedo(Buffer *, Undo::undo_kind kind,
|
2000-01-13 16:28:54 +00:00
|
|
|
LyXParagraph const * before,
|
|
|
|
LyXParagraph const * end);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
Undo * CreateUndo(Buffer *, Undo::undo_kind kind,
|
2000-01-13 16:28:54 +00:00
|
|
|
LyXParagraph const * before,
|
|
|
|
LyXParagraph const * end) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// for external use in lyx_cb.C
|
2000-06-12 11:27:15 +00:00
|
|
|
void SetCursorParUndo(Buffer *);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-08 23:16:16 +00:00
|
|
|
void RemoveTableRow(LyXCursor & cursor) const;
|
2000-02-25 12:06:15 +00:00
|
|
|
///
|
|
|
|
bool IsEmptyTableCell() const;
|
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void toggleAppendix(BufferView *);
|
2000-01-06 02:44:26 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
int workWidth(BufferView *) const;
|
2000-05-30 19:31:11 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void ComputeBidiTables(Buffer const *, Row * row) const;
|
2000-05-30 19:31:11 +00:00
|
|
|
|
|
|
|
/// Maps positions in the visual string to positions in logical string.
|
|
|
|
inline
|
|
|
|
LyXParagraph::size_type log2vis(LyXParagraph::size_type pos) const {
|
|
|
|
if (bidi_start == -1)
|
|
|
|
return pos;
|
|
|
|
else
|
|
|
|
return log2vis_list[pos-bidi_start];
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Maps positions in the logical string to positions in visual string.
|
|
|
|
inline
|
|
|
|
LyXParagraph::size_type vis2log(LyXParagraph::size_type pos) const {
|
|
|
|
if (bidi_start == -1)
|
|
|
|
return pos;
|
|
|
|
else
|
|
|
|
return vis2log_list[pos-bidi_start];
|
|
|
|
}
|
2000-08-07 20:58:24 +00:00
|
|
|
///
|
2000-05-30 19:31:11 +00:00
|
|
|
inline
|
|
|
|
int bidi_level(LyXParagraph::size_type pos) const {
|
|
|
|
if (bidi_start == -1)
|
|
|
|
return 0;
|
|
|
|
else
|
|
|
|
return bidi_levels[pos-bidi_start];
|
|
|
|
}
|
2000-08-07 20:58:24 +00:00
|
|
|
///
|
2000-05-30 19:31:11 +00:00
|
|
|
inline
|
|
|
|
bool bidi_InRange(LyXParagraph::size_type pos) const {
|
|
|
|
return bidi_start == -1 ||
|
|
|
|
(bidi_start <= pos && pos <= bidi_end);
|
|
|
|
}
|
1999-09-27 18:44:28 +00:00
|
|
|
private:
|
2000-02-10 17:53:36 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void init();
|
|
|
|
///
|
2000-01-13 16:28:54 +00:00
|
|
|
mutable Row * firstrow;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-01-13 16:28:54 +00:00
|
|
|
mutable Row * lastrow;
|
2000-04-26 13:57:28 +00:00
|
|
|
|
2000-08-07 20:58:24 +00:00
|
|
|
/** Copybuffer for copy environment type.
|
1999-09-27 18:44:28 +00:00
|
|
|
Asger has learned that this should be a buffer-property instead
|
|
|
|
Lgb has learned that 'char' is a lousy type for non-characters
|
|
|
|
*/
|
2000-02-28 15:22:47 +00:00
|
|
|
LyXTextClass::size_type copylayouttype;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** inserts a new row behind the specified row, increments
|
2000-08-07 20:58:24 +00:00
|
|
|
the touched counters */
|
1999-11-04 01:40:20 +00:00
|
|
|
void InsertRow(Row * row, LyXParagraph * par,
|
2000-01-13 16:28:54 +00:00
|
|
|
LyXParagraph::size_type pos) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
/** removes the row and reset the touched counters */
|
2000-01-13 16:28:54 +00:00
|
|
|
void RemoveRow(Row * row) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** remove all following rows of the paragraph of the specified row. */
|
2000-01-13 16:28:54 +00:00
|
|
|
void RemoveParagraph(Row * row) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** insert the specified paragraph behind the specified row */
|
2000-08-07 20:58:24 +00:00
|
|
|
void InsertParagraph(BufferView *,
|
|
|
|
LyXParagraph * par, Row * row) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** appends the implizit specified paragraph behind the specified row,
|
|
|
|
* start at the implizit given position */
|
2000-06-12 11:27:15 +00:00
|
|
|
void AppendParagraph(BufferView *, Row * row) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void BreakAgain(BufferView *, Row * row) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void BreakAgainOneRow(BufferView *, Row * row);
|
2000-01-13 16:28:54 +00:00
|
|
|
/// Calculate and set the height of the row
|
2000-06-12 11:27:15 +00:00
|
|
|
void SetHeightOfRow(BufferView *, Row * row_ptr) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** this calculates the specified parameters. needed when setting
|
|
|
|
* the cursor and when creating a visible row */
|
2000-06-12 11:27:15 +00:00
|
|
|
void PrepareToPrint(BufferView *, Row * row, float & x,
|
2000-01-13 16:28:54 +00:00
|
|
|
float & fill_separator,
|
|
|
|
float & fill_hfill,
|
2000-02-03 19:51:27 +00:00
|
|
|
float & fill_label_hfill,
|
|
|
|
bool bidi = true) const;
|
2000-05-30 15:41:16 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void DeleteEmptyParagraphMechanism(BufferView *,
|
|
|
|
LyXCursor const & old_cursor) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** Updates all counters starting BEHIND the row. Changed paragraphs
|
|
|
|
* with a dynamic left margin will be rebroken. */
|
2000-06-12 11:27:15 +00:00
|
|
|
void UpdateCounters(BufferView *, Row * row) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void SetCounter(Buffer const *, LyXParagraph * par) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* some low level functions
|
|
|
|
*/
|
|
|
|
|
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
int SingleWidth(BufferView *, LyXParagraph * par,
|
2000-01-13 16:28:54 +00:00
|
|
|
LyXParagraph::size_type pos) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
int SingleWidth(BufferView *, LyXParagraph * par,
|
2000-01-13 16:28:54 +00:00
|
|
|
LyXParagraph::size_type pos, char c) const;
|
2000-02-10 17:53:36 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
void draw(BufferView *, Row const * row,
|
2000-02-10 17:53:36 +00:00
|
|
|
LyXParagraph::size_type & pos,
|
2000-06-23 15:02:46 +00:00
|
|
|
int offset, float & x, bool cleared);
|
2000-02-17 19:59:08 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
/// get the next breakpoint in a given paragraph
|
2000-06-12 11:27:15 +00:00
|
|
|
LyXParagraph::size_type NextBreakPoint(BufferView *, Row const * row,
|
2000-01-13 16:28:54 +00:00
|
|
|
int width) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// returns the minimum space a row needs on the screen in pixel
|
2000-06-12 11:27:15 +00:00
|
|
|
int Fill(BufferView *, Row * row, int workwidth) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** returns the minimum space a manual label needs on the
|
|
|
|
screen in pixel */
|
2000-06-12 11:27:15 +00:00
|
|
|
int LabelFill(BufferView *, Row const * row) const;
|
1999-11-04 01:40:20 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-08 23:16:16 +00:00
|
|
|
LyXParagraph::size_type
|
2000-06-12 11:27:15 +00:00
|
|
|
BeginningOfMainBody(Buffer const *, LyXParagraph const * par) const;
|
2000-02-23 16:39:03 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
/** Returns the left beginning of the text.
|
|
|
|
This information cannot be taken from the layouts-objekt, because
|
|
|
|
in LaTeX the beginning of the text fits in some cases
|
|
|
|
(for example sections) exactly the label-width.
|
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
int LeftMargin(BufferView *, Row const * row) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
int RightMargin(Buffer const *, Row const * row) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-06-12 11:27:15 +00:00
|
|
|
int LabelEnd (BufferView *, Row const * row) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** returns the number of separators in the specified row.
|
|
|
|
The separator on the very last column doesnt count
|
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
int NumberOfSeparators(Buffer const *, Row const * row) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** returns the number of hfills in the specified row. The
|
|
|
|
LyX-Hfill is a LaTeX \hfill so that the hfills at the
|
|
|
|
beginning and at the end were ignored. This is {\em MUCH}
|
|
|
|
more usefull than not to ignore!
|
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
int NumberOfHfills(Buffer const *, Row const * row) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/// like NumberOfHfills, but only those in the manual label!
|
2000-06-12 11:27:15 +00:00
|
|
|
int NumberOfLabelHfills(Buffer const *, Row const * row) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
/** returns true, if a expansion is needed. Rules are given by
|
|
|
|
LaTeX
|
1999-11-04 01:40:20 +00:00
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
bool HfillExpansion(Buffer const *, Row const * row_ptr,
|
2000-01-13 16:28:54 +00:00
|
|
|
LyXParagraph::size_type pos) const;
|
2000-02-03 19:51:27 +00:00
|
|
|
|
2000-04-26 13:57:28 +00:00
|
|
|
|
2000-02-03 19:51:27 +00:00
|
|
|
///
|
2000-04-04 00:19:15 +00:00
|
|
|
mutable std::vector<LyXParagraph::size_type> log2vis_list;
|
2000-02-03 19:51:27 +00:00
|
|
|
|
|
|
|
///
|
2000-04-04 00:19:15 +00:00
|
|
|
mutable std::vector<LyXParagraph::size_type> vis2log_list;
|
2000-02-03 19:51:27 +00:00
|
|
|
|
2000-04-10 21:40:13 +00:00
|
|
|
///
|
|
|
|
mutable std::vector<LyXParagraph::size_type> bidi_levels;
|
|
|
|
|
2000-02-03 19:51:27 +00:00
|
|
|
///
|
|
|
|
mutable LyXParagraph::size_type bidi_start;
|
|
|
|
|
2000-04-03 11:36:35 +00:00
|
|
|
///
|
2000-05-30 19:31:11 +00:00
|
|
|
mutable LyXParagraph::size_type bidi_end;
|
2000-04-03 11:36:35 +00:00
|
|
|
|
2000-02-03 19:51:27 +00:00
|
|
|
///
|
2000-05-30 19:31:11 +00:00
|
|
|
mutable bool bidi_same_direction;
|
2000-04-10 21:40:13 +00:00
|
|
|
|
2000-03-10 13:22:20 +00:00
|
|
|
///
|
|
|
|
unsigned char TransformChar(unsigned char c, LyXParagraph * par,
|
|
|
|
LyXParagraph::size_type pos) const;
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
/** returns the paragraph position of the last character in the
|
|
|
|
specified row
|
|
|
|
*/
|
2000-01-13 16:28:54 +00:00
|
|
|
LyXParagraph::size_type RowLast(Row const * row) const;
|
2000-04-10 21:40:13 +00:00
|
|
|
///
|
|
|
|
LyXParagraph::size_type RowLastPrintable(Row const * row) const;
|
|
|
|
|
1999-12-13 00:05:34 +00:00
|
|
|
///
|
|
|
|
void charInserted();
|
2000-08-07 20:58:24 +00:00
|
|
|
//
|
|
|
|
// special owner functions
|
2000-06-12 11:27:15 +00:00
|
|
|
///
|
|
|
|
LyXParagraph * OwnerParagraph() const;
|
2000-08-07 20:58:24 +00:00
|
|
|
//
|
2000-06-12 11:27:15 +00:00
|
|
|
LyXParagraph * OwnerParagraph(LyXParagraph *) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|