/* This file is part of the KDE project Copyright 2000, 2003 Laurent Montel Copyright 2002-2003 Joseph Wenninger Copyright 2002 Philipp Mueller Copyright 2002 Ariya Hidayat Copyright 2002 John Dailey Copyright 1999 Torben Weis This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #ifndef KSPREAD_TABLE_IFACE_H #define KSPREAD_TABLE_IFACE_H #include #include #include namespace KSpread { class Sheet; class CellProxy; class SheetIface : virtual public DCOPObject { K_DCOP public: SheetIface( Sheet* ); ~SheetIface(); bool processDynamic( const QCString& fun, const QByteArray& data, QCString& replyType, QByteArray &replyData ); void sheetNameHasChanged(); k_dcop: virtual DCOPRef cell( int x, int y ); virtual DCOPRef cell( const QString& name ); virtual DCOPRef column( int _col ); virtual DCOPRef row( int _row ); virtual QString name() const; virtual int maxColumn() const; virtual int maxRow() const; virtual bool setSheetName( const QString & name); virtual bool insertColumn( int col,int nbCol ); virtual bool insertRow( int row,int nbRow); virtual void removeColumn( int col,int nbCol ); virtual void removeRow( int row,int nbRow ); virtual bool isHidden()const; virtual bool areaHasNoContent(QRect area) const ; virtual bool areaHasNoComments(QRect area) const ; virtual bool showGrid() const; virtual bool showFormula() const; virtual bool lcMode() const; virtual bool autoCalc() const; virtual bool showColumnNumber() const; virtual bool hideZero() const; virtual bool firstLetterUpper() const; virtual void setShowPageBorders( bool b ); virtual float paperHeight() const; virtual float paperWidth() const ; virtual float leftBorder() const; virtual float rightBorder() const; virtual float topBorder() const; virtual float bottomBorder() const; QString paperFormatString() const; QString headLeft()const; QString headMid()const; QString headRight()const; QString footLeft()const; QString footMid()const; QString footRight()const; void setHeaderLeft(const QString & text); void setHeaderMiddle(const QString & text); void setHeaderRight(const QString & text); void setFooterLeft(const QString & text); void setFooterMiddle(const QString & text); void setFooterRight(const QString & text); bool isProtected() const; private: Sheet* m_sheet; CellProxy* m_proxy; QCString ident; }; } // namespace KSpread #endif