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"
21 namespace CutAndPaste {
23 /// realcut == false is we actually want a delete
24 bool cutSelection(Paragraph * startpar, Paragraph ** endpar,
25 int start, int & end, lyx::textclass_type tc,
26 bool doclear = false, bool realcut = true);
29 bool copySelection(Paragraph * startpar, Paragraph * endpar,
30 int start, int end, lyx::textclass_type tc);
32 bool pasteSelection(Paragraph ** par, Paragraph ** endpar,
33 int & pos, lyx::textclass_type tc);
38 /** needed to switch between different classes this works
39 for a list of paragraphs beginning with the specified par
40 return value is the number of wrong conversions
42 int SwitchLayoutsBetweenClasses(lyx::textclass_type c1,
43 lyx::textclass_type c2,
45 BufferParams const & bparams);
47 bool checkPastePossible();
49 } // end of CutAndPaste