1999-09-27 18:44:28 +00:00
|
|
|
|
// -*- C++ -*-
|
2003-04-03 00:36:31 +00:00
|
|
|
|
/**
|
2007-04-29 23:33:02 +00:00
|
|
|
|
* \file Text.h
|
2003-04-03 00:36:31 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-21 17:27:08 +00:00
|
|
|
|
*
|
2003-04-03 00:36:31 +00:00
|
|
|
|
* \author unknown
|
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
* \author John Levon
|
1999-09-27 18:44:28 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-04-03 00:36:31 +00:00
|
|
|
|
*/
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2007-04-29 23:33:02 +00:00
|
|
|
|
#ifndef TEXT_H
|
|
|
|
|
#define TEXT_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2003-10-23 13:28:49 +00:00
|
|
|
|
#include "Bidi.h"
|
2007-04-26 04:41:58 +00:00
|
|
|
|
#include "DispatchResult.h"
|
2007-04-29 18:17:15 +00:00
|
|
|
|
#include "Font.h"
|
2007-04-29 22:04:32 +00:00
|
|
|
|
#include "Layout.h"
|
2004-01-26 10:13:15 +00:00
|
|
|
|
#include "lyxlayout_ptr_fwd.h"
|
2006-03-23 20:11:06 +00:00
|
|
|
|
#include "ParagraphList.h"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2003-12-02 12:39:14 +00:00
|
|
|
|
#include <iosfwd>
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
class Buffer;
|
|
|
|
|
class BufferParams;
|
2000-02-10 17:53:36 +00:00
|
|
|
|
class BufferView;
|
2004-01-26 10:13:15 +00:00
|
|
|
|
class CursorSlice;
|
2006-12-30 15:05:15 +00:00
|
|
|
|
class DocIterator;
|
2006-08-13 16:16:43 +00:00
|
|
|
|
class ErrorList;
|
2004-01-26 10:13:15 +00:00
|
|
|
|
class FuncRequest;
|
2004-02-20 17:19:53 +00:00
|
|
|
|
class FuncStatus;
|
2007-04-29 13:39:47 +00:00
|
|
|
|
class Inset;
|
2007-04-26 17:34:20 +00:00
|
|
|
|
class Color_color;
|
2007-04-26 14:56:30 +00:00
|
|
|
|
class Cursor;
|
2004-01-26 10:13:15 +00:00
|
|
|
|
class PainterInfo;
|
2001-11-26 16:42:04 +00:00
|
|
|
|
class Row;
|
|
|
|
|
class Spacing;
|
2004-03-25 09:16:36 +00:00
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2004-01-13 15:25:52 +00:00
|
|
|
|
/// This class encapsulates the main text data and operations in LyX
|
2007-04-29 23:33:02 +00:00
|
|
|
|
class Text {
|
1999-09-27 18:44:28 +00:00
|
|
|
|
public:
|
2004-01-30 11:41:12 +00:00
|
|
|
|
/// constructor
|
2007-04-29 23:33:02 +00:00
|
|
|
|
explicit Text();
|
2003-11-22 14:44:59 +00:00
|
|
|
|
|
2007-08-14 16:59:59 +00:00
|
|
|
|
/// \return true if there's no content at all.
|
|
|
|
|
/// \warning a non standard layout on an empty paragraph doesn't
|
|
|
|
|
// count as empty.
|
|
|
|
|
bool empty() const;
|
|
|
|
|
|
2001-02-19 16:01:31 +00:00
|
|
|
|
///
|
2007-04-29 18:17:15 +00:00
|
|
|
|
Font getFont(Buffer const & buffer, Paragraph const & par,
|
Move BufferView cached pointer out of LyXText:
* LyXText
- bv(), bv_owner, : deleted.
- These methods now need a (Buffer const &) argument: getFont(), applyOuterFont(), getLayoutFont(), getLabelFont(), setCharFont(), setLayout(), singleWidth(), leftMargin(), rightMargin(), computeRowMetrics(), isMainText(), spacing(), isRTL(), cursorX(), rowBreakPoint(), setRowWidth(), labelFill(), labelEnd().
- These methods now need a (BufferView const &) argument and are propably candidates for future removal when 1.6 is opened for development: redoParagraph(), x2pos(), getRowNearY(), getColumnNearX(), checkInsetHit(), setHeightOfRow().
- recUndo(): now need a LCursor argument.
* CoordCache::get(LyXText const *, pit_type):
- now const.
- use const_iterator instead of iterator.
* FontIterator:
- add (Buffer const &) argument to ctor
- buffer_: new const reference to applicable BufferView.
* InsetBase
- xo(), yo(), covers() and neverIndent() are now const.
* InsetText::setViewCache(): deleted
All other changes are due to the LyXText and InsetBase API changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15618 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 12:45:33 +00:00
|
|
|
|
pos_type pos) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2007-04-29 18:17:15 +00:00
|
|
|
|
void applyOuterFont(Buffer const & buffer, Font &) const;
|
2005-04-12 18:42:27 +00:00
|
|
|
|
///
|
2007-04-29 18:17:15 +00:00
|
|
|
|
Font getLayoutFont(Buffer const & buffer, pit_type pit) const;
|
2001-08-03 18:28:11 +00:00
|
|
|
|
///
|
2007-04-29 18:17:15 +00:00
|
|
|
|
Font getLabelFont(Buffer const & buffer,
|
Move BufferView cached pointer out of LyXText:
* LyXText
- bv(), bv_owner, : deleted.
- These methods now need a (Buffer const &) argument: getFont(), applyOuterFont(), getLayoutFont(), getLabelFont(), setCharFont(), setLayout(), singleWidth(), leftMargin(), rightMargin(), computeRowMetrics(), isMainText(), spacing(), isRTL(), cursorX(), rowBreakPoint(), setRowWidth(), labelFill(), labelEnd().
- These methods now need a (BufferView const &) argument and are propably candidates for future removal when 1.6 is opened for development: redoParagraph(), x2pos(), getRowNearY(), getColumnNearX(), checkInsetHit(), setHeightOfRow().
- recUndo(): now need a LCursor argument.
* CoordCache::get(LyXText const *, pit_type):
- now const.
- use const_iterator instead of iterator.
* FontIterator:
- add (Buffer const &) argument to ctor
- buffer_: new const reference to applicable BufferView.
* InsetBase
- xo(), yo(), covers() and neverIndent() are now const.
* InsetText::setViewCache(): deleted
All other changes are due to the LyXText and InsetBase API changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15618 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 12:45:33 +00:00
|
|
|
|
Paragraph const & par) const;
|
2007-05-22 10:51:38 +00:00
|
|
|
|
/** Set font of character at position \p pos in paragraph \p pit.
|
|
|
|
|
* Must not be called if \p pos denotes an inset with text contents,
|
|
|
|
|
* and the inset is not allowed inside a font change (see below).
|
|
|
|
|
*/
|
Move BufferView cached pointer out of LyXText:
* LyXText
- bv(), bv_owner, : deleted.
- These methods now need a (Buffer const &) argument: getFont(), applyOuterFont(), getLayoutFont(), getLabelFont(), setCharFont(), setLayout(), singleWidth(), leftMargin(), rightMargin(), computeRowMetrics(), isMainText(), spacing(), isRTL(), cursorX(), rowBreakPoint(), setRowWidth(), labelFill(), labelEnd().
- These methods now need a (BufferView const &) argument and are propably candidates for future removal when 1.6 is opened for development: redoParagraph(), x2pos(), getRowNearY(), getColumnNearX(), checkInsetHit(), setHeightOfRow().
- recUndo(): now need a LCursor argument.
* CoordCache::get(LyXText const *, pit_type):
- now const.
- use const_iterator instead of iterator.
* FontIterator:
- add (Buffer const &) argument to ctor
- buffer_: new const reference to applicable BufferView.
* InsetBase
- xo(), yo(), covers() and neverIndent() are now const.
* InsetText::setViewCache(): deleted
All other changes are due to the LyXText and InsetBase API changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15618 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 12:45:33 +00:00
|
|
|
|
void setCharFont(Buffer const & buffer, pit_type pit, pos_type pos,
|
2007-04-29 18:17:15 +00:00
|
|
|
|
Font const & font);
|
2002-03-21 17:27:08 +00:00
|
|
|
|
|
2007-05-22 10:51:38 +00:00
|
|
|
|
/** Needed to propagate font changes to all text cells of insets
|
|
|
|
|
* that are not allowed inside a font change (bug 1973).
|
|
|
|
|
* Must not be called if \p pos denotes an ordinary character or an
|
|
|
|
|
* inset that is alowed inside a font change.
|
|
|
|
|
* FIXME: This should be removed, see documentation of noFontChange
|
|
|
|
|
* in insetbase.h
|
|
|
|
|
*/
|
|
|
|
|
void setInsetFont(Buffer const & buffer, pit_type pit, pos_type pos,
|
|
|
|
|
Font const & font, bool toggleall = false);
|
|
|
|
|
|
2007-04-14 10:26:45 +00:00
|
|
|
|
/// what you expect when pressing \<enter\> at cursor position
|
2007-04-26 14:56:30 +00:00
|
|
|
|
void breakParagraph(Cursor & cur, bool keep_layout = false);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2004-03-25 09:16:36 +00:00
|
|
|
|
/// set layout over selection
|
Move BufferView cached pointer out of LyXText:
* LyXText
- bv(), bv_owner, : deleted.
- These methods now need a (Buffer const &) argument: getFont(), applyOuterFont(), getLayoutFont(), getLabelFont(), setCharFont(), setLayout(), singleWidth(), leftMargin(), rightMargin(), computeRowMetrics(), isMainText(), spacing(), isRTL(), cursorX(), rowBreakPoint(), setRowWidth(), labelFill(), labelEnd().
- These methods now need a (BufferView const &) argument and are propably candidates for future removal when 1.6 is opened for development: redoParagraph(), x2pos(), getRowNearY(), getColumnNearX(), checkInsetHit(), setHeightOfRow().
- recUndo(): now need a LCursor argument.
* CoordCache::get(LyXText const *, pit_type):
- now const.
- use const_iterator instead of iterator.
* FontIterator:
- add (Buffer const &) argument to ctor
- buffer_: new const reference to applicable BufferView.
* InsetBase
- xo(), yo(), covers() and neverIndent() are now const.
* InsetText::setViewCache(): deleted
All other changes are due to the LyXText and InsetBase API changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15618 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 12:45:33 +00:00
|
|
|
|
void setLayout(Buffer const & buffer, pit_type start, pit_type end,
|
2007-07-11 13:39:08 +00:00
|
|
|
|
docstring const & layout);
|
2006-12-29 23:54:48 +00:00
|
|
|
|
/// Set given layout to current cursor position.
|
2007-04-26 14:56:30 +00:00
|
|
|
|
/// FIXME: replace Cursor with DocIterator.
|
2007-07-11 13:39:08 +00:00
|
|
|
|
void setLayout(Cursor & cur, docstring const & layout);
|
2002-03-21 17:27:08 +00:00
|
|
|
|
|
2004-03-18 13:57:20 +00:00
|
|
|
|
/// what type of depth change to make
|
|
|
|
|
enum DEPTH_CHANGE {
|
|
|
|
|
INC_DEPTH,
|
|
|
|
|
DEC_DEPTH
|
|
|
|
|
};
|
2004-03-25 09:16:36 +00:00
|
|
|
|
/// Increase or decrease the nesting depth of the selected paragraph(s)
|
2007-04-26 14:56:30 +00:00
|
|
|
|
/// FIXME: replace Cursor with DocIterator.
|
|
|
|
|
void changeDepth(Cursor & cur, DEPTH_CHANGE type);
|
2003-11-26 09:48:21 +00:00
|
|
|
|
|
|
|
|
|
/// Returns whether something would be changed by changeDepth
|
2007-04-26 14:56:30 +00:00
|
|
|
|
/// FIXME: replace Cursor with DocIterator.
|
|
|
|
|
bool changeDepthAllowed(Cursor & cur, DEPTH_CHANGE type) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2004-02-13 07:30:59 +00:00
|
|
|
|
/// Set font over selection paragraphs and rebreak.
|
2007-04-26 14:56:30 +00:00
|
|
|
|
/// FIXME: replace Cursor with DocIterator.
|
2007-04-29 18:17:15 +00:00
|
|
|
|
void setFont(Cursor & cur, Font const &, bool toggleall = false);
|
2007-05-22 10:51:38 +00:00
|
|
|
|
/// Set font from \p begin to \p end and rebreak.
|
2007-08-13 13:36:19 +00:00
|
|
|
|
void setFont(Buffer const & buffer, CursorSlice const & begin,
|
|
|
|
|
CursorSlice const & end, Font const &,
|
2007-05-22 10:51:38 +00:00
|
|
|
|
bool toggleall = false);
|
2002-03-21 17:27:08 +00:00
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2007-04-29 18:17:15 +00:00
|
|
|
|
void toggleFree(Cursor & cur, Font const &, bool toggleall = false);
|
2001-07-30 10:50:37 +00:00
|
|
|
|
|
2006-12-29 23:54:48 +00:00
|
|
|
|
/// ???
|
2007-04-26 14:56:30 +00:00
|
|
|
|
/// FIXME: replace Cursor with DocIterator.
|
|
|
|
|
docstring getStringToIndex(Cursor const & cur);
|
2002-03-21 17:27:08 +00:00
|
|
|
|
|
2004-01-30 11:41:12 +00:00
|
|
|
|
/// insert a character at cursor position
|
2007-04-26 14:56:30 +00:00
|
|
|
|
/// FIXME: replace Cursor with DocIterator.
|
|
|
|
|
void insertChar(Cursor & cur, char_type c);
|
2004-01-30 11:41:12 +00:00
|
|
|
|
/// insert an inset at cursor position
|
2007-04-26 14:56:30 +00:00
|
|
|
|
/// FIXME: replace Cursor with DocIterator.
|
2007-04-29 13:39:47 +00:00
|
|
|
|
void insertInset(Cursor & cur, Inset * inset);
|
2002-03-21 17:27:08 +00:00
|
|
|
|
|
2003-11-28 08:55:12 +00:00
|
|
|
|
/// draw text (only used for insets)
|
|
|
|
|
void draw(PainterInfo & pi, int x, int y) const;
|
2004-02-06 11:12:49 +00:00
|
|
|
|
/// draw textselection
|
|
|
|
|
void drawSelection(PainterInfo & pi, int x, int y) const;
|
1999-11-22 16:19:48 +00:00
|
|
|
|
|
2003-12-01 13:35:49 +00:00
|
|
|
|
/// try to handle that request
|
2007-04-26 14:56:30 +00:00
|
|
|
|
/// FIXME: replace Cursor with DocIterator.
|
|
|
|
|
void dispatch(Cursor & cur, FuncRequest & cmd);
|
2004-02-20 17:19:53 +00:00
|
|
|
|
/// do we want to handle this event?
|
2007-04-26 14:56:30 +00:00
|
|
|
|
bool getStatus(Cursor & cur, FuncRequest const & cmd,
|
2004-03-18 13:57:20 +00:00
|
|
|
|
FuncStatus & status) const;
|
2004-02-20 17:19:53 +00:00
|
|
|
|
|
2005-07-18 11:00:15 +00:00
|
|
|
|
/// read-only access to individual paragraph
|
|
|
|
|
Paragraph const & getPar(pit_type pit) const { return pars_[pit]; }
|
|
|
|
|
/// read-write access to individual paragraph
|
|
|
|
|
Paragraph & getPar(pit_type pit) { return pars_[pit]; }
|
2004-02-13 07:30:59 +00:00
|
|
|
|
// Returns the current font and depth as a message.
|
2007-04-26 14:56:30 +00:00
|
|
|
|
/// FIXME: replace Cursor with DocIterator.
|
|
|
|
|
docstring currentState(Cursor & cur);
|
2003-06-28 01:23:11 +00:00
|
|
|
|
|
2004-11-30 01:59:49 +00:00
|
|
|
|
/** returns row near the specified
|
|
|
|
|
* y-coordinate in given paragraph (relative to the screen).
|
2002-03-21 17:27:08 +00:00
|
|
|
|
*/
|
2006-12-29 23:54:48 +00:00
|
|
|
|
/// FIXME: move to TextMetrics.
|
Move BufferView cached pointer out of LyXText:
* LyXText
- bv(), bv_owner, : deleted.
- These methods now need a (Buffer const &) argument: getFont(), applyOuterFont(), getLayoutFont(), getLabelFont(), setCharFont(), setLayout(), singleWidth(), leftMargin(), rightMargin(), computeRowMetrics(), isMainText(), spacing(), isRTL(), cursorX(), rowBreakPoint(), setRowWidth(), labelFill(), labelEnd().
- These methods now need a (BufferView const &) argument and are propably candidates for future removal when 1.6 is opened for development: redoParagraph(), x2pos(), getRowNearY(), getColumnNearX(), checkInsetHit(), setHeightOfRow().
- recUndo(): now need a LCursor argument.
* CoordCache::get(LyXText const *, pit_type):
- now const.
- use const_iterator instead of iterator.
* FontIterator:
- add (Buffer const &) argument to ctor
- buffer_: new const reference to applicable BufferView.
* InsetBase
- xo(), yo(), covers() and neverIndent() are now const.
* InsetText::setViewCache(): deleted
All other changes are due to the LyXText and InsetBase API changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15618 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 12:45:33 +00:00
|
|
|
|
Row const & getRowNearY(BufferView const & bv, int y,
|
|
|
|
|
pit_type pit) const;
|
2006-11-29 13:58:08 +00:00
|
|
|
|
|
|
|
|
|
/// returns the paragraph number closest to screen y-coordinate.
|
|
|
|
|
/// This method uses the BufferView CoordCache to locate the
|
|
|
|
|
/// paragraph. The y-coodinate is allowed to be off-screen and
|
|
|
|
|
/// the CoordCache will be automatically updated if needed. This is
|
2007-03-28 09:20:38 +00:00
|
|
|
|
/// the reason why we need a non const BufferView.
|
2006-12-29 23:54:48 +00:00
|
|
|
|
/// FIXME: move to TextMetrics.
|
2007-03-28 09:20:38 +00:00
|
|
|
|
pit_type getPitNearY(BufferView & bv, int y) const;
|
2002-03-21 17:27:08 +00:00
|
|
|
|
|
2004-01-14 09:33:14 +00:00
|
|
|
|
/** Find the word under \c from in the relative location
|
|
|
|
|
* defined by \c word_location.
|
|
|
|
|
* @param from return here the start of the word
|
|
|
|
|
* @param to return here the end of the word
|
|
|
|
|
*/
|
2006-10-21 00:16:43 +00:00
|
|
|
|
void getWord(CursorSlice & from, CursorSlice & to, word_location const);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
/// just selects the word the cursor is in
|
2007-04-26 14:56:30 +00:00
|
|
|
|
void selectWord(Cursor & cur, word_location loc);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2007-05-28 22:27:45 +00:00
|
|
|
|
/// what type of change operation to make
|
2007-01-25 21:18:36 +00:00
|
|
|
|
enum ChangeOp {
|
|
|
|
|
ACCEPT,
|
|
|
|
|
REJECT
|
|
|
|
|
};
|
2007-01-23 21:53:16 +00:00
|
|
|
|
/// accept or reject the selected change
|
2007-04-26 14:56:30 +00:00
|
|
|
|
void acceptOrRejectChanges(Cursor & cur, ChangeOp op);
|
2007-04-29 23:33:02 +00:00
|
|
|
|
/// accept the changes within the complete Text
|
2007-01-25 22:28:15 +00:00
|
|
|
|
void acceptChanges(BufferParams const & bparams);
|
2007-04-29 23:33:02 +00:00
|
|
|
|
/// reject the changes within the complete Text
|
2007-01-25 22:28:15 +00:00
|
|
|
|
void rejectChanges(BufferParams const & bparams);
|
2003-03-04 09:27:27 +00:00
|
|
|
|
|
2002-01-12 21:03:30 +00:00
|
|
|
|
/// returns true if par was empty and was removed
|
2007-04-26 14:56:30 +00:00
|
|
|
|
bool setCursor(Cursor & cur, pit_type par, pos_type pos,
|
2003-10-17 10:31:47 +00:00
|
|
|
|
bool setfont = true, bool boundary = false);
|
2000-08-07 20:58:24 +00:00
|
|
|
|
///
|
2005-09-20 08:31:37 +00:00
|
|
|
|
void setCursor(CursorSlice &, pit_type par, pos_type pos);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2007-04-26 14:56:30 +00:00
|
|
|
|
void setCursorIntern(Cursor & cur, pit_type par,
|
2006-04-05 23:56:29 +00:00
|
|
|
|
pos_type pos, bool setfont = true, bool boundary = false);
|
2000-05-30 19:31:11 +00:00
|
|
|
|
///
|
2007-04-26 14:56:30 +00:00
|
|
|
|
void setCurrentFont(Cursor & cur);
|
2000-05-30 19:31:11 +00:00
|
|
|
|
|
2003-10-13 10:59:31 +00:00
|
|
|
|
///
|
2007-04-26 14:56:30 +00:00
|
|
|
|
void recUndo(Cursor & cur, pit_type first, pit_type last) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2007-04-26 14:56:30 +00:00
|
|
|
|
void recUndo(Cursor & cur, pit_type first) const;
|
2006-12-30 15:53:19 +00:00
|
|
|
|
|
2007-04-29 23:33:02 +00:00
|
|
|
|
/// sets cursor only within this Text.
|
2006-12-30 15:53:19 +00:00
|
|
|
|
/// x,y are screen coordinates
|
2007-04-26 14:56:30 +00:00
|
|
|
|
void setCursorFromCoordinates(Cursor & cur, int x, int y);
|
2006-11-08 11:27:06 +00:00
|
|
|
|
|
|
|
|
|
/// sets cursor recursively descending into nested editable insets
|
|
|
|
|
/**
|
|
|
|
|
\return the inset pointer if x,y is covering that inset
|
|
|
|
|
\param x,y are absolute screen coordinates.
|
|
|
|
|
\retval inset is non-null if the cursor is positionned inside
|
|
|
|
|
*/
|
2006-12-29 23:54:48 +00:00
|
|
|
|
/// FIXME: move to TextMetrics.
|
2007-03-28 15:00:34 +00:00
|
|
|
|
/// FIXME: cleanup to use BufferView::getCoveringInset() and
|
|
|
|
|
/// setCursorFromCoordinates() instead of checkInsetHit().
|
2007-04-29 13:39:47 +00:00
|
|
|
|
Inset * editXY(Cursor & cur, int x, int y);
|
2007-05-28 22:27:45 +00:00
|
|
|
|
|
2005-02-08 02:06:39 +00:00
|
|
|
|
/// Move cursor one position left
|
|
|
|
|
/**
|
|
|
|
|
* Returns true if an update is needed after the move.
|
|
|
|
|
*/
|
2007-04-26 14:56:30 +00:00
|
|
|
|
bool cursorLeft(Cursor & cur);
|
2005-02-08 02:06:39 +00:00
|
|
|
|
/// Move cursor one position right
|
|
|
|
|
/**
|
|
|
|
|
* Returns true if an update is needed after the move.
|
|
|
|
|
*/
|
2007-04-26 14:56:30 +00:00
|
|
|
|
bool cursorRight(Cursor & cur);
|
2004-01-30 11:41:12 +00:00
|
|
|
|
///
|
2007-04-26 14:56:30 +00:00
|
|
|
|
bool cursorLeftOneWord(Cursor & cur);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2007-04-26 14:56:30 +00:00
|
|
|
|
bool cursorRightOneWord(Cursor & cur);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2007-04-26 14:56:30 +00:00
|
|
|
|
bool cursorUpParagraph(Cursor & cur);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2007-04-26 14:56:30 +00:00
|
|
|
|
bool cursorDownParagraph(Cursor & cur);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2006-12-29 23:54:48 +00:00
|
|
|
|
/// FIXME: move to TextMetrics.
|
2007-04-26 14:56:30 +00:00
|
|
|
|
bool cursorHome(Cursor & cur);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2006-12-29 23:54:48 +00:00
|
|
|
|
/// FIXME: move to TextMetrics.
|
2007-04-26 14:56:30 +00:00
|
|
|
|
bool cursorEnd(Cursor & cur);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2007-04-26 14:56:30 +00:00
|
|
|
|
void cursorPrevious(Cursor & cur);
|
2002-10-11 10:45:28 +00:00
|
|
|
|
///
|
2007-04-26 14:56:30 +00:00
|
|
|
|
void cursorNext(Cursor & cur);
|
2002-10-11 10:45:28 +00:00
|
|
|
|
///
|
2007-04-26 14:56:30 +00:00
|
|
|
|
bool cursorTop(Cursor & cur);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2007-04-26 14:56:30 +00:00
|
|
|
|
bool cursorBottom(Cursor & cur);
|
2006-04-09 00:26:19 +00:00
|
|
|
|
/// Erase character at cursor. Honour change tracking
|
2007-04-26 14:56:30 +00:00
|
|
|
|
/// FIXME: replace Cursor with DocIterator.
|
|
|
|
|
bool erase(Cursor & cur);
|
2006-03-12 10:06:59 +00:00
|
|
|
|
/// Delete character before cursor. Honour CT
|
2007-04-26 14:56:30 +00:00
|
|
|
|
/// FIXME: replace Cursor with DocIterator.
|
|
|
|
|
bool backspace(Cursor & cur);
|
2006-09-08 14:08:26 +00:00
|
|
|
|
// Dissolve the inset under cursor
|
2007-04-26 14:56:30 +00:00
|
|
|
|
/// FIXME: replace Cursor with DocIterator.
|
|
|
|
|
bool dissolveInset(Cursor & cur);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2007-04-26 14:56:30 +00:00
|
|
|
|
bool selectWordWhenUnderCursor(Cursor & cur, word_location);
|
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.
|
2007-04-26 14:56:30 +00:00
|
|
|
|
void changeCase(Cursor & cur, TextCase action);
|
2006-11-17 09:03:30 +00:00
|
|
|
|
/// Transposes the character at the cursor with the one before it
|
2007-04-26 14:56:30 +00:00
|
|
|
|
void charsTranspose(Cursor & cur);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
|
|
/** the DTP switches for paragraphs. LyX will store the top settings
|
|
|
|
|
always in the first physical paragraph, the bottom settings in the
|
2002-03-21 17:27:08 +00:00
|
|
|
|
last. When a paragraph is broken, the top settings rest, the bottom
|
2003-10-27 12:41:26 +00:00
|
|
|
|
settings are given to the new one.
|
Add LFUN_PARAGRAPH_PARAMS (= paragraph-params), used for changing a paragraph's alignment, spacing, etc. This is complementary to LFUN_PARAGRAPH_PARAMS_APPLY, which sets the parameters. The difference is that APPLY over-rides all existing parameters, setting any not given to the default, whereas this one simply changes those that are given. So
paragraph-params \align right
will align the paragraph right, leaving spacing, etc, as they were, whereas
paragraph-params-apply \align right
will align the paragraph right but also reset all other parameters to defaults. Note, by the way, that this means that
paragraph-params-apply
sets everything to default.
Some new arguments have also been introduced. These are:
\indent
\indent-toggle
\spacing default
Of course, none of these are found in valid LyX files, but they are useful in menu bindings, etc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19581 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-15 02:21:09 +00:00
|
|
|
|
This function will handle a multi-paragraph selection.
|
2002-03-21 17:27:08 +00:00
|
|
|
|
*/
|
Add LFUN_PARAGRAPH_PARAMS (= paragraph-params), used for changing a paragraph's alignment, spacing, etc. This is complementary to LFUN_PARAGRAPH_PARAMS_APPLY, which sets the parameters. The difference is that APPLY over-rides all existing parameters, setting any not given to the default, whereas this one simply changes those that are given. So
paragraph-params \align right
will align the paragraph right, leaving spacing, etc, as they were, whereas
paragraph-params-apply \align right
will align the paragraph right but also reset all other parameters to defaults. Note, by the way, that this means that
paragraph-params-apply
sets everything to default.
Some new arguments have also been introduced. These are:
\indent
\indent-toggle
\spacing default
Of course, none of these are found in valid LyX files, but they are useful in menu bindings, etc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19581 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-15 02:21:09 +00:00
|
|
|
|
void setParagraphs(Cursor & cur, docstring arg, bool modify = false);
|
|
|
|
|
/// Sets parameters for current or selected paragraphs
|
|
|
|
|
void setParagraphs(Cursor & cur, ParagraphParameters const & p);
|
2001-05-03 14:31:33 +00:00
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
/* these things are for search and replace */
|
|
|
|
|
|
|
|
|
|
/// needed to insert the selection
|
2007-04-26 14:56:30 +00:00
|
|
|
|
/// FIXME: replace Cursor with DocIterator.
|
|
|
|
|
void insertStringAsLines(Cursor & cur, docstring const & str);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
/// needed to insert the selection
|
2007-04-26 14:56:30 +00:00
|
|
|
|
/// FIXME: replace Cursor with DocIterator.
|
|
|
|
|
void insertStringAsParagraphs(Cursor & cur, docstring const & str);
|
1999-11-04 01:40:20 +00:00
|
|
|
|
|
2003-11-25 11:17:27 +00:00
|
|
|
|
/// Returns an inset if inset was hit, or 0 if not.
|
2007-03-28 15:00:34 +00:00
|
|
|
|
/// \warning This method is not recursive! It will return the
|
2007-04-29 23:33:02 +00:00
|
|
|
|
/// outermost inset within this Text.
|
2007-03-28 15:00:34 +00:00
|
|
|
|
/// \sa BufferView::getCoveringInset() to get the innermost inset.
|
2007-04-29 13:39:47 +00:00
|
|
|
|
Inset * checkInsetHit(BufferView &, int x, int y);
|
2002-08-28 12:09:19 +00:00
|
|
|
|
|
2003-02-26 17:04:10 +00:00
|
|
|
|
/// return the color of the canvas
|
2007-04-26 17:34:20 +00:00
|
|
|
|
Color_color backgroundColor() const;
|
2003-02-26 17:04:10 +00:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns the left beginning of the text.
|
|
|
|
|
* This information cannot be taken from the layout object, because
|
|
|
|
|
* in LaTeX the beginning of the text fits in some cases
|
|
|
|
|
* (for example sections) exactly the label-width.
|
|
|
|
|
*/
|
2006-12-29 23:54:48 +00:00
|
|
|
|
/// FIXME: move to TextMetrics.
|
|
|
|
|
int leftMargin(Buffer const &, int max_width, pit_type pit, pos_type pos) const;
|
|
|
|
|
int leftMargin(Buffer const &, int max_width, pit_type pit) const;
|
2003-02-26 17:04:10 +00:00
|
|
|
|
|
2004-01-30 11:41:12 +00:00
|
|
|
|
/// access to our paragraphs
|
2005-07-18 11:00:15 +00:00
|
|
|
|
ParagraphList const & paragraphs() const { return pars_; }
|
|
|
|
|
ParagraphList & paragraphs() { return pars_; }
|
2004-03-18 12:53:43 +00:00
|
|
|
|
/// return true if this is the main text
|
Move BufferView cached pointer out of LyXText:
* LyXText
- bv(), bv_owner, : deleted.
- These methods now need a (Buffer const &) argument: getFont(), applyOuterFont(), getLayoutFont(), getLabelFont(), setCharFont(), setLayout(), singleWidth(), leftMargin(), rightMargin(), computeRowMetrics(), isMainText(), spacing(), isRTL(), cursorX(), rowBreakPoint(), setRowWidth(), labelFill(), labelEnd().
- These methods now need a (BufferView const &) argument and are propably candidates for future removal when 1.6 is opened for development: redoParagraph(), x2pos(), getRowNearY(), getColumnNearX(), checkInsetHit(), setHeightOfRow().
- recUndo(): now need a LCursor argument.
* CoordCache::get(LyXText const *, pit_type):
- now const.
- use const_iterator instead of iterator.
* FontIterator:
- add (Buffer const &) argument to ctor
- buffer_: new const reference to applicable BufferView.
* InsetBase
- xo(), yo(), covers() and neverIndent() are now const.
* InsetText::setViewCache(): deleted
All other changes are due to the LyXText and InsetBase API changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15618 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 12:45:33 +00:00
|
|
|
|
bool isMainText(Buffer const &) const;
|
2004-04-03 08:37:12 +00:00
|
|
|
|
|
2003-10-23 08:15:57 +00:00
|
|
|
|
/// is this row the last in the text?
|
2006-12-29 23:54:48 +00:00
|
|
|
|
/// FIXME: move to TextMetrics.
|
2004-11-24 21:53:46 +00:00
|
|
|
|
bool isLastRow(pit_type pit, Row const & row) const;
|
2003-10-23 08:15:57 +00:00
|
|
|
|
/// is this row the first in the text?
|
2006-12-29 23:54:48 +00:00
|
|
|
|
/// FIXME: move to TextMetrics.
|
2004-11-24 21:53:46 +00:00
|
|
|
|
bool isFirstRow(pit_type pit, Row const & row) const;
|
2003-10-23 08:15:57 +00:00
|
|
|
|
|
2003-10-28 11:18:40 +00:00
|
|
|
|
///
|
Move BufferView cached pointer out of LyXText:
* LyXText
- bv(), bv_owner, : deleted.
- These methods now need a (Buffer const &) argument: getFont(), applyOuterFont(), getLayoutFont(), getLabelFont(), setCharFont(), setLayout(), singleWidth(), leftMargin(), rightMargin(), computeRowMetrics(), isMainText(), spacing(), isRTL(), cursorX(), rowBreakPoint(), setRowWidth(), labelFill(), labelEnd().
- These methods now need a (BufferView const &) argument and are propably candidates for future removal when 1.6 is opened for development: redoParagraph(), x2pos(), getRowNearY(), getColumnNearX(), checkInsetHit(), setHeightOfRow().
- recUndo(): now need a LCursor argument.
* CoordCache::get(LyXText const *, pit_type):
- now const.
- use const_iterator instead of iterator.
* FontIterator:
- add (Buffer const &) argument to ctor
- buffer_: new const reference to applicable BufferView.
* InsetBase
- xo(), yo(), covers() and neverIndent() are now const.
* InsetText::setViewCache(): deleted
All other changes are due to the LyXText and InsetBase API changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15618 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 12:45:33 +00:00
|
|
|
|
double spacing(Buffer const & buffer, Paragraph const & par) const;
|
2004-02-13 13:51:12 +00:00
|
|
|
|
/// make a suggestion for a label
|
2007-04-26 14:56:30 +00:00
|
|
|
|
/// FIXME: replace Cursor with DocIterator.
|
|
|
|
|
docstring getPossibleLabel(Cursor & cur) const;
|
2004-02-16 11:58:51 +00:00
|
|
|
|
/// is this paragraph right-to-left?
|
Move BufferView cached pointer out of LyXText:
* LyXText
- bv(), bv_owner, : deleted.
- These methods now need a (Buffer const &) argument: getFont(), applyOuterFont(), getLayoutFont(), getLabelFont(), setCharFont(), setLayout(), singleWidth(), leftMargin(), rightMargin(), computeRowMetrics(), isMainText(), spacing(), isRTL(), cursorX(), rowBreakPoint(), setRowWidth(), labelFill(), labelEnd().
- These methods now need a (BufferView const &) argument and are propably candidates for future removal when 1.6 is opened for development: redoParagraph(), x2pos(), getRowNearY(), getColumnNearX(), checkInsetHit(), setHeightOfRow().
- recUndo(): now need a LCursor argument.
* CoordCache::get(LyXText const *, pit_type):
- now const.
- use const_iterator instead of iterator.
* FontIterator:
- add (Buffer const &) argument to ctor
- buffer_: new const reference to applicable BufferView.
* InsetBase
- xo(), yo(), covers() and neverIndent() are now const.
* InsetText::setViewCache(): deleted
All other changes are due to the LyXText and InsetBase API changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15618 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 12:45:33 +00:00
|
|
|
|
bool isRTL(Buffer const &, Paragraph const & par) const;
|
2007-06-04 18:40:06 +00:00
|
|
|
|
/// is this position in the paragraph right-to-left?
|
|
|
|
|
bool isRTL(Buffer const & buffer, CursorSlice const & sl, bool boundary) const;
|
2007-06-07 19:50:02 +00:00
|
|
|
|
/// is between pos-1 and pos an RTL<->LTR boundary?
|
|
|
|
|
bool isRTLBoundary(Buffer const & buffer, Paragraph const & par,
|
|
|
|
|
pos_type pos) const;
|
|
|
|
|
/// would be a RTL<->LTR boundary between pos and the given font?
|
|
|
|
|
bool isRTLBoundary(Buffer const & buffer, Paragraph const & par,
|
|
|
|
|
pos_type pos, Font const & font) const;
|
|
|
|
|
|
2003-11-17 14:28:18 +00:00
|
|
|
|
///
|
2007-04-26 14:56:30 +00:00
|
|
|
|
bool checkAndActivateInset(Cursor & cur, bool front);
|
2003-11-17 14:28:18 +00:00
|
|
|
|
|
2003-12-02 12:39:14 +00:00
|
|
|
|
///
|
|
|
|
|
void write(Buffer const & buf, std::ostream & os) const;
|
2003-12-03 15:27:16 +00:00
|
|
|
|
/// returns whether we've seen our usual 'end' marker
|
2007-04-26 11:30:54 +00:00
|
|
|
|
bool read(Buffer const & buf, Lexer & lex, ErrorList & errorList);
|
2003-11-22 14:44:59 +00:00
|
|
|
|
|
2003-12-10 09:45:32 +00:00
|
|
|
|
///
|
2006-12-29 23:54:48 +00:00
|
|
|
|
/// FIXME: move to TextMetrics.
|
|
|
|
|
int cursorX(BufferView const &, CursorSlice const & cursor,
|
Move BufferView cached pointer out of LyXText:
* LyXText
- bv(), bv_owner, : deleted.
- These methods now need a (Buffer const &) argument: getFont(), applyOuterFont(), getLayoutFont(), getLabelFont(), setCharFont(), setLayout(), singleWidth(), leftMargin(), rightMargin(), computeRowMetrics(), isMainText(), spacing(), isRTL(), cursorX(), rowBreakPoint(), setRowWidth(), labelFill(), labelEnd().
- These methods now need a (BufferView const &) argument and are propably candidates for future removal when 1.6 is opened for development: redoParagraph(), x2pos(), getRowNearY(), getColumnNearX(), checkInsetHit(), setHeightOfRow().
- recUndo(): now need a LCursor argument.
* CoordCache::get(LyXText const *, pit_type):
- now const.
- use const_iterator instead of iterator.
* FontIterator:
- add (Buffer const &) argument to ctor
- buffer_: new const reference to applicable BufferView.
* InsetBase
- xo(), yo(), covers() and neverIndent() are now const.
* InsetText::setViewCache(): deleted
All other changes are due to the LyXText and InsetBase API changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15618 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-30 12:45:33 +00:00
|
|
|
|
bool boundary) const;
|
2003-12-15 11:36:19 +00:00
|
|
|
|
///
|
2006-12-29 23:54:48 +00:00
|
|
|
|
/// FIXME: move to TextMetrics.
|
|
|
|
|
int cursorY(BufferView const & bv, CursorSlice const & cursor,
|
|
|
|
|
bool boundary) const;
|
2003-12-10 09:45:32 +00:00
|
|
|
|
|
2007-01-25 21:18:36 +00:00
|
|
|
|
/// delete double spaces, leading spaces, and empty paragraphs around old cursor.
|
2007-01-21 16:55:41 +00:00
|
|
|
|
/// \retval true if a change has happened and we need a redraw.
|
2007-04-26 14:56:30 +00:00
|
|
|
|
/// FIXME: replace Cursor with DocIterator. This is not possible right
|
|
|
|
|
/// now because recordUndo() is called which needs a Cursor.
|
|
|
|
|
static bool deleteEmptyParagraphMechanism(Cursor & cur,
|
|
|
|
|
Cursor & old, bool & need_anchor_change);
|
2005-12-01 10:28:50 +00:00
|
|
|
|
|
2007-01-25 21:18:36 +00:00
|
|
|
|
/// delete double spaces, leading spaces, and empty paragraphs
|
|
|
|
|
/// from \first to \last paragraph
|
|
|
|
|
void deleteEmptyParagraphMechanism(pit_type first, pit_type last, bool trackChanges);
|
|
|
|
|
|
2004-03-25 09:16:36 +00:00
|
|
|
|
public:
|
2003-11-22 14:44:59 +00:00
|
|
|
|
/// the current font settings
|
2007-04-29 18:17:15 +00:00
|
|
|
|
Font current_font;
|
2003-11-22 14:44:59 +00:00
|
|
|
|
/// the current font
|
2007-04-29 18:17:15 +00:00
|
|
|
|
Font real_current_font;
|
2003-11-22 14:44:59 +00:00
|
|
|
|
///
|
2003-12-01 13:35:49 +00:00
|
|
|
|
int background_color_;
|
2003-11-22 14:44:59 +00:00
|
|
|
|
|
|
|
|
|
///
|
2004-03-25 09:16:36 +00:00
|
|
|
|
ParagraphList pars_;
|
2003-11-22 14:44:59 +00:00
|
|
|
|
|
2005-04-12 18:42:27 +00:00
|
|
|
|
/// our 'outermost' font. This is handed down from the surrounding
|
|
|
|
|
// inset through the pi/mi parameter (pi.base.font)
|
2007-04-29 18:17:15 +00:00
|
|
|
|
Font font_;
|
2003-12-03 18:17:20 +00:00
|
|
|
|
|
2004-12-17 16:27:12 +00:00
|
|
|
|
///
|
|
|
|
|
bool autoBreakRows_;
|
2003-11-22 14:44:59 +00:00
|
|
|
|
private:
|
2004-01-09 09:04:33 +00:00
|
|
|
|
/// return past-the-last paragraph influenced by a layout
|
|
|
|
|
/// change on pit
|
2004-11-24 21:53:46 +00:00
|
|
|
|
pit_type undoSpan(pit_type pit);
|
2004-04-03 08:37:12 +00:00
|
|
|
|
|
2003-11-22 14:44:59 +00:00
|
|
|
|
// fix the cursor `cur' after a characters has been deleted at `where'
|
|
|
|
|
// position. Called by deleteEmptyParagraphMechanism
|
2007-02-08 15:01:58 +00:00
|
|
|
|
static void fixCursorAfterDelete(CursorSlice & cur, CursorSlice const & where);
|
2003-11-22 14:44:59 +00:00
|
|
|
|
|
2006-11-24 22:26:22 +00:00
|
|
|
|
// At cursor position 0, try to merge the paragraph with the one before it.
|
|
|
|
|
// Ignore change tracking, i.e., physically remove the end-of-par character
|
2007-04-26 14:56:30 +00:00
|
|
|
|
bool backspacePos0(Cursor & cur);
|
2007-05-14 09:24:17 +00:00
|
|
|
|
/// handle the case where bibitems were deleted
|
|
|
|
|
bool handleBibitems(Cursor & cur);
|
2006-11-24 22:26:22 +00:00
|
|
|
|
|
2003-11-22 14:44:59 +00:00
|
|
|
|
///
|
2007-04-26 14:56:30 +00:00
|
|
|
|
void deleteWordForward(Cursor & cur);
|
2003-11-22 14:44:59 +00:00
|
|
|
|
///
|
2007-04-26 14:56:30 +00:00
|
|
|
|
void deleteWordBackward(Cursor & cur);
|
2003-11-22 14:44:59 +00:00
|
|
|
|
///
|
2007-04-26 14:56:30 +00:00
|
|
|
|
void deleteLineForward(Cursor & cur);
|
2003-11-22 14:44:59 +00:00
|
|
|
|
///
|
|
|
|
|
void charInserted();
|
|
|
|
|
/// set 'number' font property
|
2007-04-26 14:56:30 +00:00
|
|
|
|
void number(Cursor & cur);
|
2007-06-04 18:41:56 +00:00
|
|
|
|
/// draw selection for a single row
|
|
|
|
|
void drawRowSelection(PainterInfo & pi, int x, Row const & row,
|
2007-06-04 20:10:23 +00:00
|
|
|
|
DocIterator const & beg, DocIterator const & end,
|
|
|
|
|
bool drawOnBegMargin, bool drawOnEndMargin) const;
|
2007-01-03 07:30:50 +00:00
|
|
|
|
|
2007-01-06 15:33:07 +00:00
|
|
|
|
/// paste plain text at current cursor.
|
2007-01-03 07:30:50 +00:00
|
|
|
|
/// \param str string to paste
|
2007-01-06 15:33:07 +00:00
|
|
|
|
/// \param asParagraphs whether to paste as paragraphs or as lines
|
2007-04-26 14:56:30 +00:00
|
|
|
|
void pasteString(Cursor & cur, docstring const & str,
|
2007-01-06 15:33:07 +00:00
|
|
|
|
bool asParagraphs);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
};
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
2003-02-14 00:41:44 +00:00
|
|
|
|
#endif // LYXTEXT_H
|