3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS
15 #include "support/types.h"
16 #include "ParagraphList.h"
24 namespace CutAndPaste {
26 PitPosPair cutSelection(ParagraphList & pars,
27 ParagraphList::iterator startpit,
28 ParagraphList::iterator endpit,
29 int start, int end, lyx::textclass_type tc,
30 bool doclear = false);
32 PitPosPair eraseSelection(ParagraphList & pars,
33 ParagraphList::iterator startpit,
34 ParagraphList::iterator endpit,
35 int start, int end, bool doclear = false);
37 bool copySelection(ParagraphList::iterator startpit,
38 ParagraphList::iterator endpit,
39 int start, int end, lyx::textclass_type tc);
41 std::pair<PitPosPair, ParagraphList::iterator>
42 pasteSelection(ParagraphList & pars,
43 ParagraphList::iterator pit, int pos,
44 lyx::textclass_type tc, ErrorList &);
47 std::pair<PitPosPair, ParagraphList::iterator>
48 pasteSelection(ParagraphList & pars,
49 ParagraphList::iterator pit, int pos,
50 lyx::textclass_type tc,
51 size_t cuts_indexm, ErrorList &);
56 /** Needed to switch between different classes this works
57 for a list of paragraphs beginning with the specified par
58 return value is the number of wrong conversions.
60 int SwitchLayoutsBetweenClasses(lyx::textclass_type c1,
61 lyx::textclass_type c2,
65 bool checkPastePossible();
67 } // end of CutAndPaste