kspread

sheet_properties.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2004 Ariya Hidayat <ariya@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef SHEET_PROPERTIES_DIALOG
00021 #define SHEET_PROPERTIES_DIALOG
00022 
00023 #include <qwidget.h>
00024 #include <kdialogbase.h>
00025 #include "kspread_sheet.h"
00026 
00027 namespace KSpread
00028 {
00029 class SheetPropertiesBase;
00030 
00031 class SheetPropertiesDialog : public KDialogBase
00032 {
00033     Q_OBJECT
00034 
00035 public:
00036 
00037     SheetPropertiesDialog( QWidget* parent = 0 );
00038 
00039     ~SheetPropertiesDialog();
00040 
00041     virtual void slotDefault();
00042     
00043     Sheet::LayoutDirection layoutDirection() const;
00044     
00045     void setLayoutDirection( Sheet::LayoutDirection dir );
00046 
00047     bool autoCalc() const;
00048 
00049     void setAutoCalc( bool b );
00050 
00051     bool showGrid() const;
00052 
00053     void setShowGrid( bool b );
00054 
00055     bool showPageBorders() const;
00056 
00057     void setShowPageBorders( bool b );
00058 
00059     bool showFormula() const;
00060 
00061     void setShowFormula( bool b );
00062 
00063     bool hideZero() const;
00064 
00065     void setHideZero( bool b );
00066 
00067     bool showFormulaIndicator() const;
00068 
00069     void setShowFormulaIndicator( bool b );
00070 
00071     bool showCommentIndicator() const;
00072 
00073     void setShowCommentIndicator( bool b );
00074 
00075     bool columnAsNumber() const;
00076 
00077     void setColumnAsNumber( bool b );
00078 
00079     bool lcMode() const;
00080 
00081     void setLcMode( bool b );
00082 
00083     bool capitalizeFirstLetter() const;
00084 
00085     void setCapitalizeFirstLetter( bool b );
00086 
00087 private:
00088     SheetPropertiesBase* d;
00089 };
00090 
00091 } // namespace
00092 
00093 #endif /* SHEET_PROPERTIES_DIALOG */
KDE Home | KDE Accessibility Home | Description of Access Keys