kspread

KSpreadLayoutIface.h
1/* This file is part of the KDE project
2
3 Copyright 2002 Laurent Montel <montel@kde.org>
4 Copyright 2002 Philipp Mueller <philipp.mueller@gmx.de>
5 Copyright 2002 John Dailey <dailey@vt.edu>
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
21*/
22
23#ifndef KSPREAD_LAYOUT_IFACE_H
24#define KSPREAD_LAYOUT_IFACE_H
25
26#include <dcopobject.h>
27
28namespace KSpread
29{
30class Format;
31
32class LayoutIface : virtual public DCOPObject
33{
34 K_DCOP
35public:
36 LayoutIface(Format *_layout);
37 virtual void update(){;}
38k_dcop:
39
40 virtual void setBgColor(const TQString& _c);
41 virtual void setBgColor(int r,int g,int b);
42 virtual void setTextColor(const TQString& _c);
43 virtual void setTextColor(int r,int g,int b);
44 virtual void setAngle(int angle);
45 virtual void setVerticalText(bool _vertical);
46 virtual void setMultiRow(bool _multi);
47 virtual void setAlign(const TQString &_align);
48 virtual void setAlignY(const TQString &_alignY);
49 virtual void setPrefix(const TQString &_prefix);
50 virtual void setPostfix(const TQString &_postfix);
52 virtual void setFormatNumber(const TQString &ft) { setFormatType(ft); }
53 virtual void setFormatType(const TQString &formatType);
55 virtual void setPrecision(int _p);
56 //font
57 virtual void setTextFontBold( bool _b );
58 virtual void setTextFontItalic( bool _b );
59 virtual void setTextFontUnderline( bool _b );
60 virtual void setTextFontStrike( bool _b );
61 virtual void setTextFontSize( int _size );
62 virtual void setTextFontFamily( const TQString& _font );
63 //border left
64 virtual void setLeftBorderStyle( const TQString& _style );
65 virtual void setLeftBorderColor(const TQString& _c);
66 virtual void setLeftBorderColor(int r,int g,int b);
67 virtual void setLeftBorderWidth( int _size );
68 //border right
69 virtual void setRightBorderStyle( const TQString& _style );
70 virtual void setRightBorderColor(const TQString& _c);
71 virtual void setRightBorderColor(int r,int g,int b);
72 virtual void setRightBorderWidth( int _size );
73 //border top
74 virtual void setTopBorderStyle( const TQString& _style );
75 virtual void setTopBorderColor(const TQString& _c);
76 virtual void setTopBorderColor(int r,int g,int b);
77 virtual void setTopBorderWidth( int _size );
78 //border bottom
79 virtual void setBottomBorderStyle( const TQString& _style );
80 virtual void setBottomBorderColor(const TQString& _c);
81 virtual void setBottomBorderColor(int r,int g,int b);
82 virtual void setBottomBorderWidth( int _size );
83 // fall back diagonal
84 virtual void setFallDiagonalStyle( const TQString& _style );
85 virtual void setFallDiagonalColor(const TQString& _c);
86 virtual void setFallDiagonalColor(int r,int g,int b);
87 virtual void setFallDiagonalWidth( int _size );
88 //GoUpDiagonal
89 virtual void setGoUpDiagonalStyle( const TQString& _style );
90 virtual void setGoUpDiagonalColor(const TQString& _c);
91 virtual void setGoUpDiagonalColor(int r,int g,int b);
92 virtual void setGoUpDiagonalWidth( int _size );
93 //indent
94 virtual void setIndent( double indent );
95 //don't print text
96 virtual void setDontPrintText ( bool _b);
97private:
98 Format *layout;
99};
100
101} //namespace KSpread
102
103#endif
@ Format
Format only.
The KSpread namespace.
Definition commands.h:39