kspread Library API Documentation

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., 59 Temple Place - Suite 330,
00020    Boston, MA 02111-1307, USA.
00021 */
00022 
00023 #ifndef KSPREAD_LAYOUT_IFACE_H
00024 #define KSPREAD_LAYOUT_IFACE_H
00025 
00026 class KSpreadFormat;
00027 #include <qcolor.h>
00028 #include <dcopobject.h>
00029 
00030 class KSpreadLayoutIface : virtual public DCOPObject
00031 {
00032     K_DCOP
00033 public:
00034     KSpreadLayoutIface(KSpreadFormat *_layout);
00035     virtual void update(){;}
00036 k_dcop:
00037 
00038     virtual void setBgColor(const QString& _c);
00039     virtual void setBgColor(int r,int g,int b);
00040     virtual void setTextColor(const QString& _c);
00041     virtual void setTextColor(int r,int g,int b);
00042     virtual void setAngle(int angle);
00043     virtual void setVerticalText(bool _vertical);
00044     virtual void setMultiRow(bool _multi);
00045     virtual void setAlign(const QString &_align);
00046     virtual void setAlignY(const QString &_alignY);
00047     virtual void setPrefix(const QString &_prefix);
00048     virtual void setPostfix(const QString &_postfix);
00050     virtual void setFormatNumber(const QString &ft) { setFormatType(ft); }
00051     virtual void setFormatType(const QString &formatType);
00053     virtual void setPrecision(int  _p);
00054     //font
00055     virtual void setTextFontBold( bool _b );
00056     virtual void setTextFontItalic( bool _b );
00057     virtual void setTextFontUnderline( bool _b );
00058     virtual void setTextFontStrike( bool _b );
00059     virtual void setTextFontSize( int _size );
00060     virtual void setTextFontFamily( const QString& _font );
00061     //border left
00062     virtual void setLeftBorderStyle( const QString& _style );
00063     virtual void setLeftBorderColor(const QString& _c);
00064     virtual void setLeftBorderColor(int r,int g,int b);
00065     virtual void setLeftBorderWidth( int _size );
00066     //border right
00067     virtual void setRightBorderStyle( const QString& _style );
00068     virtual void setRightBorderColor(const QString& _c);
00069     virtual void setRightBorderColor(int r,int g,int b);
00070     virtual void setRightBorderWidth( int _size );
00071     //border top
00072     virtual void setTopBorderStyle( const QString& _style );
00073     virtual void setTopBorderColor(const QString& _c);
00074     virtual void setTopBorderColor(int r,int g,int b);
00075     virtual void setTopBorderWidth( int _size );
00076     //border bottom
00077     virtual void setBottomBorderStyle( const QString& _style );
00078     virtual void setBottomBorderColor(const QString& _c);
00079     virtual void setBottomBorderColor(int r,int g,int b);
00080     virtual void setBottomBorderWidth( int _size );
00081     // fall back diagonal
00082     virtual void setFallDiagonalStyle( const QString& _style );
00083     virtual void setFallDiagonalColor(const QString& _c);
00084     virtual void setFallDiagonalColor(int r,int g,int b);
00085     virtual void setFallDiagonalWidth( int _size );
00086     //GoUpDiagonal
00087     virtual void setGoUpDiagonalStyle( const QString& _style );
00088     virtual void setGoUpDiagonalColor(const QString& _c);
00089     virtual void setGoUpDiagonalColor(int r,int g,int b);
00090     virtual void setGoUpDiagonalWidth( int _size );
00091     //indent
00092     virtual void setIndent( double indent );
00093     //don't print text
00094     virtual void setDontPrintText ( bool _b);
00095 private:
00096     KSpreadFormat *layout;
00097 };
00098 
00099 #endif
KDE Logo
This file is part of the documentation for kspread Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:43:38 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003