kspread

KSpreadTableIface.h
1/* This file is part of the KDE project
2
3 Copyright 2000, 2003 Laurent Montel <montel@kde.org>
4 Copyright 2002-2003 Joseph Wenninger <jowenn@kde.org>
5 Copyright 2002 Philipp Mueller <philipp.mueller@gmx.de>
6 Copyright 2002 Ariya Hidayat <ariya@kde.org>
7 Copyright 2002 John Dailey <dailey@vt.edu>
8 Copyright 1999 Torben Weis <weis@kde.org>
9
10 This library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Library General Public
12 License as published by the Free Software Foundation; either
13 version 2 of the License, or (at your option) any later version.
14
15 This library is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Library General Public License for more details.
19
20 You should have received a copy of the GNU Library General Public License
21 along with this library; see the file COPYING.LIB. If not, write to
22 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 * Boston, MA 02110-1301, USA.
24*/
25
26#ifndef KSPREAD_TABLE_IFACE_H
27#define KSPREAD_TABLE_IFACE_H
28
29#include <dcopobject.h>
30#include <dcopref.h>
31
32#include <tqstring.h>
33
34namespace KSpread
35{
36class Sheet;
37class CellProxy;
38
39class SheetIface : virtual public DCOPObject
40{
41 K_DCOP
42public:
43 SheetIface( Sheet* );
44 ~SheetIface();
45
46 bool processDynamic( const TQCString& fun, const TQByteArray& data,
47 TQCString& replyType, TQByteArray &replyData );
48
49 void sheetNameHasChanged();
50k_dcop:
51 virtual DCOPRef cell( int x, int y );
52 virtual DCOPRef cell( const TQString& name );
53
54 virtual DCOPRef column( int _col );
55 virtual DCOPRef row( int _row );
56
57 virtual TQString name() const;
58 virtual int maxColumn() const;
59 virtual int maxRow() const;
60 virtual bool setSheetName( const TQString & name);
61
62
63 virtual bool insertColumn( int col,int nbCol );
64 virtual bool insertRow( int row,int nbRow);
65 virtual void removeColumn( int col,int nbCol );
66 virtual void removeRow( int row,int nbRow );
67
68 virtual bool isHidden()const;
69 virtual bool areaHasNoContent(TQRect area) const ;
70 virtual bool areaHasNoComments(TQRect area) const ;
71
72 virtual bool showGrid() const;
73 virtual bool showFormula() const;
74 virtual bool lcMode() const;
75 virtual bool autoCalc() const;
76 virtual bool showColumnNumber() const;
77 virtual bool hideZero() const;
78 virtual bool firstLetterUpper() const;
79 virtual void setShowPageBorders( bool b );
80
81 virtual float paperHeight() const;
82 virtual float paperWidth() const ;
83 virtual float leftBorder() const;
84 virtual float rightBorder() const;
85 virtual float topBorder() const;
86 virtual float bottomBorder() const;
87 TQString paperFormatString() const;
88
89 TQString headLeft()const;
90 TQString headMid()const;
91 TQString headRight()const;
92 TQString footLeft()const;
93 TQString footMid()const;
94 TQString footRight()const;
95
96 void setHeaderLeft(const TQString & text);
97 void setHeaderMiddle(const TQString & text);
98 void setHeaderRight(const TQString & text);
99 void setFooterLeft(const TQString & text);
100 void setFooterMiddle(const TQString & text);
101 void setFooterRight(const TQString & text);
102 bool isProtected() const;
103private:
104 Sheet* m_sheet;
105 CellProxy* m_proxy;
106 TQCString ident;
107};
108
109} // namespace KSpread
110
111#endif
The KSpread namespace.
Definition commands.h:39