kspread

KSpreadTableIface.h

00001 /* This file is part of the KDE project
00002    
00003    Copyright 2000, 2003 Laurent Montel <montel@kde.org>
00004    Copyright 2002-2003 Joseph Wenninger <jowenn@kde.org>
00005    Copyright 2002 Philipp Mueller <philipp.mueller@gmx.de>
00006    Copyright 2002 Ariya Hidayat <ariya@kde.org>
00007    Copyright 2002 John Dailey <dailey@vt.edu>
00008    Copyright 1999 Torben Weis <weis@kde.org>
00009 
00010    This library is free software; you can redistribute it and/or
00011    modify it under the terms of the GNU Library General Public
00012    License as published by the Free Software Foundation; either
00013    version 2 of the License, or (at your option) any later version.
00014 
00015    This library is distributed in the hope that it will be useful,
00016    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018    Library General Public License for more details.
00019 
00020    You should have received a copy of the GNU Library General Public License
00021    along with this library; see the file COPYING.LIB.  If not, write to
00022    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00023  * Boston, MA 02110-1301, USA.
00024 */
00025 
00026 #ifndef KSPREAD_TABLE_IFACE_H
00027 #define KSPREAD_TABLE_IFACE_H
00028 
00029 #include <dcopobject.h>
00030 #include <dcopref.h>
00031 
00032 #include <qstring.h>
00033 
00034 namespace KSpread
00035 {
00036 class Sheet;
00037 class CellProxy;
00038 
00039 class SheetIface : virtual public DCOPObject
00040 {
00041     K_DCOP
00042 public:
00043     SheetIface( Sheet* );
00044     ~SheetIface();
00045 
00046     bool processDynamic( const QCString& fun, const QByteArray& data,
00047              QCString& replyType, QByteArray &replyData );
00048 
00049     void sheetNameHasChanged();
00050 k_dcop:
00051     virtual DCOPRef cell( int x, int y );
00052     virtual DCOPRef cell( const QString& name );
00053 
00054     virtual DCOPRef column( int _col );
00055     virtual DCOPRef row( int _row );
00056 
00057     virtual QString name() const;
00058     virtual int maxColumn() const;
00059     virtual int maxRow() const;
00060     virtual bool setSheetName( const QString & name);
00061 
00062 
00063     virtual bool insertColumn( int col,int nbCol );
00064     virtual bool insertRow( int row,int nbRow);
00065     virtual void removeColumn( int col,int nbCol );
00066     virtual void removeRow( int row,int nbRow );
00067 
00068     virtual bool isHidden()const;
00069     virtual bool areaHasNoContent(QRect area) const ;
00070     virtual bool areaHasNoComments(QRect area) const ;
00071 
00072     virtual bool showGrid() const;
00073     virtual bool showFormula() const;
00074     virtual bool lcMode() const;
00075     virtual bool autoCalc() const;
00076     virtual bool showColumnNumber() const;
00077     virtual bool hideZero() const;
00078     virtual bool firstLetterUpper() const;
00079     virtual void setShowPageBorders( bool b );
00080 
00081     virtual float paperHeight() const;
00082     virtual float paperWidth() const ;
00083     virtual float leftBorder() const;
00084     virtual float rightBorder() const;
00085     virtual float topBorder() const;
00086     virtual float bottomBorder() const;
00087     QString paperFormatString() const;
00088 
00089     QString headLeft()const;
00090     QString headMid()const;
00091     QString headRight()const;
00092     QString footLeft()const;
00093     QString footMid()const;
00094     QString footRight()const;
00095 
00096     void setHeaderLeft(const QString & text);
00097     void setHeaderMiddle(const QString & text);
00098     void setHeaderRight(const QString & text);
00099     void setFooterLeft(const QString & text);
00100     void setFooterMiddle(const QString & text);
00101     void setFooterRight(const QString & text);
00102     bool isProtected() const;
00103 private:
00104     Sheet* m_sheet;
00105     CellProxy* m_proxy;
00106     QCString ident;
00107 };
00108 
00109 } // namespace KSpread
00110 
00111 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys