/// Constructor
LyXText(BufferView *);
+ ///
LyXText(InsetText *);
/// Destructor
mutable int number_of_rows;
///
mutable long height;
+ ///
mutable unsigned int width;
/// the current font settings
mutable LyXFont current_font;
///
InsetText * inset_owner;
- ///
- // void owner(BufferView *);
-
///
LyXFont GetFont(Buffer const *, LyXParagraph * par,
LyXParagraph::size_type pos) const;
Returns true if something was broken. */
bool FullRebreak(BufferView *);
+#ifndef NEW_INSETS
///
LyXParagraph::footnote_flag GetFootnoteFlag(int row);
+#endif
///
Row * need_break_row;
///
/** returns the column near the specified x-coordinate of the row
x is set to the real beginning of this column
*/
- int GetColumnNearX(BufferView *, Row * row, int & x, bool & boundary) const;
+ int GetColumnNearX(BufferView *, Row * row,
+ int & x, bool & boundary) const;
/** returns a pointer to a specified row. y is set to the beginning
of the row
LyXParagraph::size_type pos,
bool setfont = true,
bool boundary = false) const;
-
+ ///
void SetCursor(BufferView *, LyXCursor &, LyXParagraph * par,
LyXParagraph::size_type pos,
bool boundary = false) const;
///
void SetCursorFromCoordinates(BufferView *, int x, long y) const;
- void SetCursorFromCoordinates(BufferView *, LyXCursor &, int x, long y) const;
+ ///
+ void SetCursorFromCoordinates(BufferView *, LyXCursor &,
+ int x, long y) const;
///
void CursorUp(BufferView *) const;
///
void DeleteLineForward(BufferView *);
///
bool SelectWordWhenUnderCursor(BufferView *);
-
+ ///
enum TextCase {
+ ///
text_lowercase = 0,
+ ///
text_capitalization = 1,
+ ///
text_uppercase = 2
};
/// Change the case of the word at cursor position.
void GetVisibleRow(BufferView *, int y_offset, int x_offset,
Row * row_ptr, long y, bool cleared=false);
+#ifndef NEW_INSETS
/* footnotes: */
///
void ToggleFootnote(BufferView *);
LyXParagraph::footnote_kind kind);
///
void MeltFootnoteEnvironment(BufferView *);
+#endif
///
void CutSelection(BufferView *, bool = true);
///
LyXAlignment align,
string labelwidthstring,
bool noindent);
+ ///
void SetParagraphExtraOpt(BufferView *, int type,
char const * width,
char const * widthp,
/** if the string can be found: return true and set the cursor to
the new position */
bool SearchForward(BufferView *, char const * str) const;
+ ///
bool SearchBackward(BufferView *, char const * str) const;
/// needed to insert the selection
///
int workWidth(BufferView *) const;
///
- // Buffer * buffer() const;
- ///
void ComputeBidiTables(Buffer const *, Row * row) const;
/// Maps positions in the visual string to positions in logical string.
else
return vis2log_list[pos-bidi_start];
}
-
+ ///
inline
int bidi_level(LyXParagraph::size_type pos) const {
if (bidi_start == -1)
else
return bidi_levels[pos-bidi_start];
}
-
+ ///
inline
bool bidi_InRange(LyXParagraph::size_type pos) const {
return bidi_start == -1 ||
///
mutable Row * lastrow;
- /** Copybuffer for copy environment type
+ /** Copybuffer for copy environment type.
Asger has learned that this should be a buffer-property instead
Lgb has learned that 'char' is a lousy type for non-characters
*/
LyXTextClass::size_type copylayouttype;
/** inserts a new row behind the specified row, increments
- * the touched counters */
+ the touched counters */
void InsertRow(Row * row, LyXParagraph * par,
LyXParagraph::size_type pos) const;
/** removes the row and reset the touched counters */
void RemoveParagraph(Row * row) const;
/** insert the specified paragraph behind the specified row */
- void InsertParagraph(BufferView *, LyXParagraph * par, Row * row) const;
+ void InsertParagraph(BufferView *,
+ LyXParagraph * par, Row * row) const;
/** appends the implizit specified paragraph behind the specified row,
* start at the implizit given position */
///
void charInserted();
- ///
- /// special owner functions
+ //
+ // special owner functions
///
LyXParagraph * OwnerParagraph() const;
- ///
+ //
LyXParagraph * OwnerParagraph(LyXParagraph *) const;
- ///
};
#endif