1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
/* This file is part of the KDE project
Copyright 2002 Laurent Montel <montel@kde.org>
Copyright 2002 Philipp Mueller <philipp.mueller@gmx.de>
Copyright 2002 John Dailey <dailey@vt.edu>
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_LAYOUT_IFACE_H
#define KSPREAD_LAYOUT_IFACE_H
#include <dcopobject.h>
namespace KSpread
{
class Format;
class LayoutIface : virtual public DCOPObject
{
K_DCOP
public:
LayoutIface(Format *_layout);
virtual void update(){;}
k_dcop:
virtual void setBgColor(const TQString& _c);
virtual void setBgColor(int r,int g,int b);
virtual void setTextColor(const TQString& _c);
virtual void setTextColor(int r,int g,int b);
virtual void setAngle(int angle);
virtual void setVerticalText(bool _vertical);
virtual void setMultiRow(bool _multi);
virtual void setAlign(const TQString &_align);
virtual void setAlignY(const TQString &_alignY);
virtual void setPrefix(const TQString &_prefix);
virtual void setPostfix(const TQString &_postfix);
/** @deprecated use setFormatType*/
virtual void setFormatNumber(const TQString &ft) { setFormatType(ft); }
virtual void setFormatType(const TQString &formatType);
/** @deprecated use getFormatType */
virtual void setPrecision(int _p);
//font
virtual void setTextFontBold( bool _b );
virtual void setTextFontItalic( bool _b );
virtual void setTextFontUnderline( bool _b );
virtual void setTextFontStrike( bool _b );
virtual void setTextFontSize( int _size );
virtual void setTextFontFamily( const TQString& _font );
//border left
virtual void setLeftBorderStyle( const TQString& _style );
virtual void setLeftBorderColor(const TQString& _c);
virtual void setLeftBorderColor(int r,int g,int b);
virtual void setLeftBorderWidth( int _size );
//border right
virtual void setRightBorderStyle( const TQString& _style );
virtual void setRightBorderColor(const TQString& _c);
virtual void setRightBorderColor(int r,int g,int b);
virtual void setRightBorderWidth( int _size );
//border top
virtual void setTopBorderStyle( const TQString& _style );
virtual void setTopBorderColor(const TQString& _c);
virtual void setTopBorderColor(int r,int g,int b);
virtual void setTopBorderWidth( int _size );
//border bottom
virtual void setBottomBorderStyle( const TQString& _style );
virtual void setBottomBorderColor(const TQString& _c);
virtual void setBottomBorderColor(int r,int g,int b);
virtual void setBottomBorderWidth( int _size );
// fall back diagonal
virtual void setFallDiagonalStyle( const TQString& _style );
virtual void setFallDiagonalColor(const TQString& _c);
virtual void setFallDiagonalColor(int r,int g,int b);
virtual void setFallDiagonalWidth( int _size );
//GoUpDiagonal
virtual void setGoUpDiagonalStyle( const TQString& _style );
virtual void setGoUpDiagonalColor(const TQString& _c);
virtual void setGoUpDiagonalColor(int r,int g,int b);
virtual void setGoUpDiagonalWidth( int _size );
//indent
virtual void setIndent( double indent );
//don't print text
virtual void setDontPrintText ( bool _b);
private:
Format *tqlayout;
};
} //namespace KSpread
#endif
|