File indexing completed on 2024-04-28 16:21:24

0001 /* This file is part of the KDE project
0002    Copyright (C) 2005-2006 Stefan Nikolaus <stefan.nikolaus@kdemail.net>
0003              (C) 2006 Fredrik Edemar <f_edemar@linux.se>
0004              (C) 2005-2006 Raphael Langerhorst <raphael.langerhorst@kdemail.net>
0005              (C) 2004 Tomas Mecir <mecirt@gmail.com>
0006              (C) 2003 Norbert Andres <nandres@web.de>
0007              (C) 2002 Philipp Mueller <philipp.mueller@gmx.de>
0008              (C) 2000 David Faure <faure@kde.org>
0009              (C) 2000 Werner Trobin <trobin@kde.org>
0010              (C) 2000-2006 Laurent Montel <montel@kde.org>
0011              (C) 1999, 2000 Torben Weis <weis@kde.org>
0012              (C) 1999 Stephan Kulow <coolo@kde.org>
0013 
0014    This library is free software; you can redistribute it and/or
0015    modify it under the terms of the GNU Library General Public
0016    License as published by the Free Software Foundation; either
0017    version 2 of the License, or (at your option) any later version.
0018 
0019    This library is distributed in the hope that it will be useful,
0020    but WITHOUT ANY WARRANTY; without even the implied warranty of
0021    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0022    Library General Public License for more details.
0023 
0024    You should have received a copy of the GNU Library General Public License
0025    along with this library; see the file COPYING.LIB.  If not, write to
0026    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0027    Boston, MA 02110-1301, USA.
0028 */
0029 
0030 #ifndef KSPREAD_GLOBAL_H
0031 #define KSPREAD_GLOBAL_H
0032 
0033 #include "SheetsDebug.h"
0034 
0035 namespace Calligra
0036 {
0037 namespace Sheets
0038 {
0039 
0040 /**
0041  * This namespace collects enumerations related to
0042  * pasting operations.
0043  */
0044 namespace Paste
0045 {
0046 /**
0047  * The pasted content
0048  */
0049 enum Mode {
0050     Normal /** Everything */,
0051     Text /** Text only */,
0052     Format /** Format only */,
0053     NoBorder /** not the borders */,
0054     Comment /** Comment only */,
0055     Result /** Result only, no formula */,
0056     NormalAndTranspose /** */,
0057     TextAndTranspose /** */,
0058     FormatAndTranspose /** */,
0059     NoBorderAndTranspose /** */
0060 };
0061 /**
0062  * The current cell value treatment.
0063  */
0064 enum Operation {
0065     OverWrite /** Overwrite */,
0066     Add /** Add */,
0067     Mul /** Multiply */,
0068     Sub /** Subtract */,
0069     Div /** Divide */
0070 };
0071 } // namespace Paste
0072 
0073 // necessary due to QDock* enums (Werner)
0074 enum MoveTo { Bottom, Left, Top, Right, BottomFirst, NoMovement };
0075 enum MethodOfCalc { SumOfNumber, Min, Max, Average, Count, NoneCalc, CountA };
0076 
0077 } // namespace Sheets
0078 } // namespace Calligra
0079 
0080 #endif