3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Juergen Vigna
7 * \author Lars Gullik Bjønnes
8 * \author Alfredo Braunstein
10 * Full author contact details are available in file CREDITS
16 #include "support/types.h"
17 #include "ParagraphList.h"
27 namespace CutAndPaste {
31 CutAndPaste::availableSelections(Buffer const & buffer);
34 PitPosPair cutSelection(BufferParams const & params,
36 ParagraphList::iterator startpit,
37 ParagraphList::iterator endpit,
38 int start, int end, lyx::textclass_type tc,
39 bool doclear = false);
41 PitPosPair eraseSelection(BufferParams const & params,
43 ParagraphList::iterator startpit,
44 ParagraphList::iterator endpit,
45 int start, int end, bool doclear = false);
47 bool copySelection(ParagraphList::iterator startpit,
48 ParagraphList::iterator endpit,
49 int start, int end, lyx::textclass_type tc);
51 std::pair<PitPosPair, ParagraphList::iterator>
52 pasteSelection(Buffer const & buffer,
54 ParagraphList::iterator pit, int pos,
55 lyx::textclass_type tc, ErrorList &);
58 std::pair<PitPosPair, ParagraphList::iterator>
59 pasteSelection(Buffer const & buffer,
61 ParagraphList::iterator pit, int pos,
62 lyx::textclass_type tc,
63 size_t cuts_indexm, ErrorList &);
68 /** Needed to switch between different classes this works
69 for a list of paragraphs beginning with the specified par
70 return value is the number of wrong conversions.
72 int SwitchLayoutsBetweenClasses(lyx::textclass_type c1,
73 lyx::textclass_type c2,
77 bool checkPastePossible();
79 } // end of CutAndPaste