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(BufferParams const & params,
28 ParagraphList::iterator startpit,
29 ParagraphList::iterator endpit,
30 int start, int end, lyx::textclass_type tc,
31 bool doclear = false);
33 PitPosPair eraseSelection(BufferParams const & params,
35 ParagraphList::iterator startpit,
36 ParagraphList::iterator endpit,
37 int start, int end, bool doclear = false);
39 bool copySelection(ParagraphList::iterator startpit,
40 ParagraphList::iterator endpit,
41 int start, int end, lyx::textclass_type tc);
43 std::pair<PitPosPair, ParagraphList::iterator>
44 pasteSelection(Buffer const & buffer,
46 ParagraphList::iterator pit, int pos,
47 lyx::textclass_type tc, ErrorList &);
50 std::pair<PitPosPair, ParagraphList::iterator>
51 pasteSelection(Buffer const & buffer,
53 ParagraphList::iterator pit, int pos,
54 lyx::textclass_type tc,
55 size_t cuts_indexm, ErrorList &);
60 /** Needed to switch between different classes this works
61 for a list of paragraphs beginning with the specified par
62 return value is the number of wrong conversions.
64 int SwitchLayoutsBetweenClasses(lyx::textclass_type c1,
65 lyx::textclass_type c2,
69 bool checkPastePossible();
71 } // end of CutAndPaste