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"
23 namespace CutAndPaste {
25 PitPosPair cutSelection(ParagraphList & pars,
26 ParagraphList::iterator startpit,
27 ParagraphList::iterator endpit,
28 int start, int end, lyx::textclass_type tc,
29 bool doclear = false);
31 PitPosPair eraseSelection(ParagraphList & pars,
32 ParagraphList::iterator startpit,
33 ParagraphList::iterator endpit,
34 int start, int end, bool doclear = false);
36 bool copySelection(ParagraphList::iterator startpit,
37 ParagraphList::iterator endpit,
38 int start, int end, lyx::textclass_type tc);
40 std::pair<PitPosPair, ParagraphList::iterator>
41 pasteSelection(ParagraphList & pars,
42 ParagraphList::iterator pit, int pos,
43 lyx::textclass_type tc);
46 std::pair<PitPosPair, ParagraphList::iterator>
47 pasteSelection(ParagraphList & pars,
48 ParagraphList::iterator pit, int pos,
49 lyx::textclass_type tc,
55 /** Needed to switch between different classes this works
56 for a list of paragraphs beginning with the specified par
57 return value is the number of wrong conversions.
59 int SwitchLayoutsBetweenClasses(lyx::textclass_type c1,
60 lyx::textclass_type c2,
63 bool checkPastePossible();
65 } // end of CutAndPaste