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 PitPosPair cutSelection(ParagraphList & pars,
25 ParagraphList::iterator startpit,
26 ParagraphList::iterator endpit,
27 int start, int end, lyx::textclass_type tc,
28 bool doclear = false);
30 PitPosPair eraseSelection(ParagraphList & pars,
31 ParagraphList::iterator startpit,
32 ParagraphList::iterator endpit,
33 int start, int end, bool doclear = false);
35 bool copySelection(ParagraphList::iterator startpit,
36 ParagraphList::iterator endpit,
37 int start, int end, lyx::textclass_type tc);
39 std::pair<PitPosPair, ParagraphList::iterator>
40 pasteSelection(ParagraphList & pars,
41 ParagraphList::iterator pit, int pos,
42 lyx::textclass_type tc);
47 /** needed to switch between different classes this works
48 for a list of paragraphs beginning with the specified par
49 return value is the number of wrong conversions
51 int SwitchLayoutsBetweenClasses(lyx::textclass_type c1,
52 lyx::textclass_type c2,
54 BufferParams const & bparams);
56 bool checkPastePossible();
58 } // end of CutAndPaste