/// FIXME: replace LCursor with DocIterator.
void setFont(LCursor & cur, LyXFont const &, bool toggleall = false);
- /// returns pos in given par at given x coord.
- /// FIXME: move to TextMetrics.
- pos_type x2pos(BufferView const &, pit_type pit, int row, int x) const;
- int pos2x(pit_type pit, pos_type pos) const;
-
///
void toggleFree(LCursor & cur, LyXFont const &, bool toggleall = false);
void charInserted();
/// set 'number' font property
void number(LCursor & cur);
+
+ /// paste string at current cursor.
+ /// \param str string to paste
+ /// \param argument method for parsing ("paragraph" is special)
+ void pasteString(LCursor & cur, docstring const & str,
+ docstring const & argument);
};
} // namespace lyx