X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxtext.h;h=9a03033cf96d49ff0d23729887ad2876e2942a6f;hb=2b378ca3fdbd701b0d5e350e1c6b22155c07a2dc;hp=cfa42e1d94d20a3ff01e1fe5bad51860d4cdd64f;hpb=f1d90e17d8c2b241e33921d54d041e5635d7a855;p=lyx.git diff --git a/src/lyxtext.h b/src/lyxtext.h index cfa42e1d94..9a03033cf9 100644 --- a/src/lyxtext.h +++ b/src/lyxtext.h @@ -94,11 +94,6 @@ public: /// 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); @@ -391,6 +386,12 @@ private: void charInserted(); /// set 'number' font property void number(LCursor & cur); + + /// paste plain text at current cursor. + /// \param str string to paste + /// \param asParagraphs whether to paste as paragraphs or as lines + void pasteString(LCursor & cur, docstring const & str, + bool asParagraphs); }; } // namespace lyx