]> git.lyx.org Git - lyx.git/blob - src/CutAndPaste.h
fix "make dist" target
[lyx.git] / src / CutAndPaste.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ====================================================== 
4  * 
5  *           LyX, The Document Processor
6  *       
7  *           Copyright 1995-2000 the LyX Team.
8  *
9  * ====================================================== */
10
11 #ifndef CUTANDPASTE_H
12 #define CUTANDPASTE_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "layout.h"
19
20 class LyXParagraph;
21
22 ///
23 class CutAndPaste {
24 public:
25         ///
26         static
27         bool cutSelection(LyXParagraph * startpar, LyXParagraph ** endpar,
28                       int start, int & end, char tc, bool doclear = false);
29         ///
30         static
31         bool copySelection(LyXParagraph * startpar, LyXParagraph * endpar,
32                        int start, int end, char tc);
33         ///
34         static
35         bool pasteSelection(LyXParagraph ** par, LyXParagraph ** endpar,
36                         int & pos, char tc);
37         ///
38         static
39         int nrOfParagraphs();
40         /** needed to switch between different classes this works
41             for a list of paragraphs beginning with the specified par 
42             return value is the number of wrong conversions
43         */
44         static
45         int SwitchLayoutsBetweenClasses(LyXTextClassList::size_type class1,
46                                     LyXTextClassList::size_type class2,
47                                     LyXParagraph * par);
48         ///
49         static
50         bool checkPastePossible(LyXParagraph *);
51 };
52
53 #endif