1 | /* This file is part of the KDE project |
2 | Copyright (C) 2005-2006 Stefan Nikolaus <stefan.nikolaus@kdemail.net> |
3 | (C) 2006 Fredrik Edemar <f_edemar@linux.se> |
4 | (C) 2005-2006 Raphael Langerhorst <raphael.langerhorst@kdemail.net> |
5 | (C) 2004 Tomas Mecir <mecirt@gmail.com> |
6 | (C) 2003 Norbert Andres <nandres@web.de> |
7 | (C) 2002 Philipp Mueller <philipp.mueller@gmx.de> |
8 | (C) 2000 David Faure <faure@kde.org> |
9 | (C) 2000 Werner Trobin <trobin@kde.org> |
10 | (C) 2000-2006 Laurent Montel <montel@kde.org> |
11 | (C) 1999, 2000 Torben Weis <weis@kde.org> |
12 | (C) 1999 Stephan Kulow <coolo@kde.org> |
13 | |
14 | This library is free software; you can redistribute it and/or |
15 | modify it under the terms of the GNU Library General Public |
16 | License as published by the Free Software Foundation; either |
17 | version 2 of the License, or (at your option) any later version. |
18 | |
19 | This library is distributed in the hope that it will be useful, |
20 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
22 | Library General Public License for more details. |
23 | |
24 | You should have received a copy of the GNU Library General Public License |
25 | along with this library; see the file COPYING.LIB. If not, write to |
26 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
27 | Boston, MA 02110-1301, USA. |
28 | */ |
29 | |
30 | #ifndef KSPREAD_GLOBAL_H |
31 | #define KSPREAD_GLOBAL_H |
32 | |
33 | #include <kdebug.h> |
34 | #include <QTime> |
35 | |
36 | namespace Calligra |
37 | { |
38 | namespace Sheets |
39 | { |
40 | |
41 | /** |
42 | * This namespace collects enumerations related to |
43 | * pasting operations. |
44 | */ |
45 | namespace Paste |
46 | { |
47 | /** |
48 | * The pasted content |
49 | */ |
50 | enum Mode { |
51 | Normal /** Everything */, |
52 | Text /** Text only */, |
53 | Format /** Format only */, |
54 | NoBorder /** not the borders */, |
55 | /** Comment only */, |
56 | Result /** Result only, no formula */, |
57 | NormalAndTranspose /** */, |
58 | TextAndTranspose /** */, |
59 | FormatAndTranspose /** */, |
60 | NoBorderAndTranspose /** */ |
61 | }; |
62 | /** |
63 | * The current cell value treatment. |
64 | */ |
65 | enum Operation { |
66 | OverWrite /** Overwrite */, |
67 | Add /** Add */, |
68 | Mul /** Multiply */, |
69 | Sub /** Subtract */, |
70 | Div /** Divide */ |
71 | }; |
72 | } // namespace Paste |
73 | |
74 | // necessary due to QDock* enums (Werner) |
75 | enum MoveTo { Bottom, Left, Top, Right, BottomFirst, NoMovement }; |
76 | enum MethodOfCalc { SumOfNumber, Min, Max, Average, Count, NoneCalc, CountA }; |
77 | |
78 | } // namespace Sheets |
79 | } // namespace Calligra |
80 | |
81 | #endif |
82 | |