kspread
KSpreadTableIface.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
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 }
00110
00111 #endif
|