kspread

KSpreadLayoutIface.h

00001 /* This file is part of the KDE project
00002    
00003    Copyright 2002 Laurent Montel <montel@kde.org>
00004    Copyright 2002 Philipp Mueller <philipp.mueller@gmx.de>
00005    Copyright 2002 John Dailey <dailey@vt.edu>
00006 
00007    This library is free software; you can redistribute it and/or
00008    modify it under the terms of the GNU Library General Public
00009    License as published by the Free Software Foundation; either
00010    version 2 of the License, or (at your option) any later version.
00011 
00012    This library is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015    Library General Public License for more details.
00016 
00017    You should have received a copy of the GNU Library General Public License
00018    along with this library; see the file COPYING.LIB.  If not, write to
00019    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020  * Boston, MA 02110-1301, USA.
00021 */
00022 
00023 #ifndef KSPREAD_LAYOUT_IFACE_H
00024 #define KSPREAD_LAYOUT_IFACE_H
00025 
00026 #include <dcopobject.h>
00027 
00028 namespace KSpread
00029 {
00030 class Format;
00031 
00032 class LayoutIface : virtual public DCOPObject
00033 {
00034     K_DCOP
00035 public:
00036     LayoutIface(Format *_layout);
00037     virtual void update(){;}
00038 k_dcop:
00039 
00040     virtual void setBgColor(const QString& _c);
00041     virtual void setBgColor(int r,int g,int b);
00042     virtual void setTextColor(const QString& _c);
00043     virtual void setTextColor(int r,int g,int b);
00044     virtual void setAngle(int angle);
00045     virtual void setVerticalText(bool _vertical);
00046     virtual void setMultiRow(bool _multi);
00047     virtual void setAlign(const QString &_align);
00048     virtual void setAlignY(const QString &_alignY);
00049     virtual void setPrefix(const QString &_prefix);
00050     virtual void setPostfix(const QString &_postfix);
00052     virtual void setFormatNumber(const QString &ft) { setFormatType(ft); }
00053     virtual void setFormatType(const QString &formatType);
00055     virtual void setPrecision(int  _p);
00056     //font
00057     virtual void setTextFontBold( bool _b );
00058     virtual void setTextFontItalic( bool _b );
00059     virtual void setTextFontUnderline( bool _b );
00060     virtual void setTextFontStrike( bool _b );
00061     virtual void setTextFontSize( int _size );
00062     virtual void setTextFontFamily( const QString& _font );
00063     //border left
00064     virtual void setLeftBorderStyle( const QString& _style );
00065     virtual void setLeftBorderColor(const QString& _c);
00066     virtual void setLeftBorderColor(int r,int g,int b);
00067     virtual void setLeftBorderWidth( int _size );
00068     //border right
00069     virtual void setRightBorderStyle( const QString& _style );
00070     virtual void setRightBorderColor(const QString& _c);
00071     virtual void setRightBorderColor(int r,int g,int b);
00072     virtual void setRightBorderWidth( int _size );
00073     //border top
00074     virtual void setTopBorderStyle( const QString& _style );
00075     virtual void setTopBorderColor(const QString& _c);
00076     virtual void setTopBorderColor(int r,int g,int b);
00077     virtual void setTopBorderWidth( int _size );
00078     //border bottom
00079     virtual void setBottomBorderStyle( const QString& _style );
00080     virtual void setBottomBorderColor(const QString& _c);
00081     virtual void setBottomBorderColor(int r,int g,int b);
00082     virtual void setBottomBorderWidth( int _size );
00083     // fall back diagonal
00084     virtual void setFallDiagonalStyle( const QString& _style );
00085     virtual void setFallDiagonalColor(const QString& _c);
00086     virtual void setFallDiagonalColor(int r,int g,int b);
00087     virtual void setFallDiagonalWidth( int _size );
00088     //GoUpDiagonal
00089     virtual void setGoUpDiagonalStyle( const QString& _style );
00090     virtual void setGoUpDiagonalColor(const QString& _c);
00091     virtual void setGoUpDiagonalColor(int r,int g,int b);
00092     virtual void setGoUpDiagonalWidth( int _size );
00093     //indent
00094     virtual void setIndent( double indent );
00095     //don't print text
00096     virtual void setDontPrintText ( bool _b);
00097 private:
00098     Format *layout;
00099 };
00100 
00101 } //namespace KSpread
00102 
00103 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys