]> git.lyx.org Git - lyx.git/blob - src/CutAndPaste.h
fix some C++ parsing bugs
[lyx.git] / src / CutAndPaste.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 1995-2001 the LyX Team.
8  *
9  * ====================================================== */
10
11 #ifndef CUTANDPASTE_H
12 #define CUTANDPASTE_H
13
14 #include "support/types.h"
15
16 class Paragraph;
17 class BufferParams;
18 class LyXTextClass;
19
20 ///
21 namespace CutAndPaste {
22
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);
27
28 ///
29 bool copySelection(Paragraph * startpar, Paragraph * endpar,
30                    int start, int end, lyx::textclass_type tc);
31 ///
32 bool pasteSelection(Paragraph ** par, Paragraph ** endpar,
33                     int & pos, lyx::textclass_type tc);
34
35 ///
36 int nrOfParagraphs();
37
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
41 */
42 int SwitchLayoutsBetweenClasses(lyx::textclass_type c1,
43                                 lyx::textclass_type c2,
44                                 Paragraph * par,
45                                 BufferParams const & bparams);
46 ///
47 bool checkPastePossible();
48
49 } // end of CutAndPaste
50
51 #endif