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, char tc, bool doclear = false,
28 bool copySelection(Paragraph * startpar, Paragraph * endpar,
29 int start, int end, char tc);
31 bool pasteSelection(Paragraph ** par, Paragraph ** endpar,
37 /** needed to switch between different classes this works
38 for a list of paragraphs beginning with the specified par
39 return value is the number of wrong conversions
41 int SwitchLayoutsBetweenClasses(lyx::textclass_type c1,
42 lyx::textclass_type c2,
44 BufferParams const & bparams);
46 bool checkPastePossible(Paragraph *);
48 } // end of CutAndPaste