2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995-2001 the LyX Team.
9 * ====================================================== */
14 #include "support/types.h"
15 #include "ParagraphList.h"
22 namespace CutAndPaste {
24 std::pair<ParagraphList::iterator, int>
25 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 std::pair<ParagraphList::iterator, int>
32 eraseSelection(ParagraphList & pars,
33 ParagraphList::iterator startpit,
34 ParagraphList::iterator endpit,
35 int start, int end, bool doclear = false);
37 bool copySelection(Paragraph * startpar, Paragraph * endpar,
38 int start, int end, lyx::textclass_type tc);
40 bool pasteSelection(Paragraph ** par, Paragraph ** endpar,
41 int & pos, lyx::textclass_type tc);
46 /** needed to switch between different classes this works
47 for a list of paragraphs beginning with the specified par
48 return value is the number of wrong conversions
50 int SwitchLayoutsBetweenClasses(lyx::textclass_type c1,
51 lyx::textclass_type c2,
53 BufferParams const & bparams);
55 bool checkPastePossible();
57 } // end of CutAndPaste