summaryrefslogtreecommitdiffstats
path: root/kspread/KSpreadLayoutIface.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kspread/KSpreadLayoutIface.cc')
-rw-r--r--kspread/KSpreadLayoutIface.cc158
1 files changed, 79 insertions, 79 deletions
diff --git a/kspread/KSpreadLayoutIface.cc b/kspread/KSpreadLayoutIface.cc
index 8099df6f..1ca174cf 100644
--- a/kspread/KSpreadLayoutIface.cc
+++ b/kspread/KSpreadLayoutIface.cc
@@ -21,54 +21,54 @@
*/
#include "KSpreadLayoutIface.h"
-#include <brush.h>
+#include <tqbrush.h>
#include "kspread_format.h"
using namespace KSpread;
LayoutIface::LayoutIface(Format *_layout)
{
- layout=_layout;
+ tqlayout=_layout;
}
void LayoutIface::setBgColor(const TQString& _c)
{
TQColor c(_c);
- layout->setBgColor(c);
+ tqlayout->setBgColor(c);
}
void LayoutIface::setBgColor(int r,int g,int b)
{
TQColor c(r,g,b);
- layout->setBgColor(c);
+ tqlayout->setBgColor(c);
}
void LayoutIface::setTextColor(int r,int g,int b)
{
TQColor c(r,g,b);
- layout->setTextColor(c);
+ tqlayout->setTextColor(c);
}
void LayoutIface::setTextColor(const TQString& _c)
{
TQColor c(_c);
- layout->setTextColor(c);
+ tqlayout->setTextColor(c);
}
void LayoutIface::setAngle(int angle)
{
- layout->setAngle(angle);
+ tqlayout->setAngle(angle);
}
void LayoutIface::setVerticalText(bool _vertical)
{
- layout->setVerticalText(_vertical);
+ tqlayout->setVerticalText(_vertical);
}
void LayoutIface::setMultiRow(bool _multi)
{
- layout->setMultiRow( _multi );
+ tqlayout->setMultiRow( _multi );
}
void LayoutIface::setAlign( const TQString& _Align )
@@ -82,7 +82,7 @@ void LayoutIface::setAlign( const TQString& _Align )
Align=Format::Center;
else
Align=Format::Undefined;
- layout->setAlign( Align);
+ tqlayout->setAlign( Align);
}
void LayoutIface::setAlignY( const TQString& _AlignY )
@@ -96,23 +96,23 @@ void LayoutIface::setAlignY( const TQString& _AlignY )
AlignY=Format::Bottom;
else
AlignY=Format::Middle;
- layout->setAlignY( AlignY);
+ tqlayout->setAlignY( AlignY);
}
void LayoutIface::setPostfix(const TQString &_postfix)
{
- layout->setPostfix( _postfix );
+ tqlayout->setPostfix( _postfix );
}
void LayoutIface::setPrefix(const TQString &_prefix)
{
- layout->setPrefix( _prefix );
+ tqlayout->setPrefix( _prefix );
}
void LayoutIface::setFormatType(const TQString &_formatType)
{
FormatType format;
- layout->setPrecision(2);
+ tqlayout->setPrecision(2);
if (_formatType=="Generic")
format = Generic_format;
else if(_formatType=="Number")
@@ -151,43 +151,43 @@ void LayoutIface::setFormatType(const TQString &_formatType)
format=fraction_three_digits;
else
format=Generic_format;
- layout->setFormatType( format);
+ tqlayout->setFormatType( format);
}
void LayoutIface::setPrecision(int _p)
{
- layout->setPrecision( _p );
+ tqlayout->setPrecision( _p );
}
void LayoutIface::setTextFontBold(bool _b)
{
- layout->setTextFontBold( _b );
+ tqlayout->setTextFontBold( _b );
}
void LayoutIface::setTextFontItalic(bool _b)
{
- layout->setTextFontItalic( _b );
+ tqlayout->setTextFontItalic( _b );
}
void LayoutIface::setTextFontUnderline(bool _b)
{
- layout->setTextFontUnderline( _b );
+ tqlayout->setTextFontUnderline( _b );
}
void LayoutIface::setTextFontStrike(bool _b)
{
- layout->setTextFontStrike( _b );
+ tqlayout->setTextFontStrike( _b );
}
void LayoutIface::setTextFontSize( int _size )
{
- layout->setTextFontSize( _size );
+ tqlayout->setTextFontSize( _size );
}
void LayoutIface::setTextFontFamily( const TQString& _font )
{
- layout->setTextFontFamily( _font );
+ tqlayout->setTextFontFamily( _font );
}
@@ -195,34 +195,34 @@ void LayoutIface::setTextFontFamily( const TQString& _font )
void LayoutIface::setLeftBorderStyle( const TQString& _style )
{
if(_style=="DotLine")
- layout->setLeftBorderStyle(Qt::DotLine);
+ tqlayout->setLeftBorderStyle(Qt::DotLine);
else if(_style=="DashLine")
- layout->setLeftBorderStyle(Qt::DashLine);
+ tqlayout->setLeftBorderStyle(Qt::DashLine);
else if(_style=="DashDotLine")
- layout->setLeftBorderStyle(Qt::DashDotLine);
+ tqlayout->setLeftBorderStyle(Qt::DashDotLine);
else if(_style=="DashDotDotLine")
- layout->setLeftBorderStyle(Qt::DashDotDotLine);
+ tqlayout->setLeftBorderStyle(Qt::DashDotDotLine);
else if(_style=="SolidLine")
- layout->setLeftBorderStyle(Qt::SolidLine);
+ tqlayout->setLeftBorderStyle(Qt::SolidLine);
else
- layout->setLeftBorderStyle(Qt::SolidLine);
+ tqlayout->setLeftBorderStyle(Qt::SolidLine);
}
void LayoutIface::setLeftBorderColor(const TQString& _c)
{
TQColor c(_c);
- layout->setLeftBorderColor(c );
+ tqlayout->setLeftBorderColor(c );
}
void LayoutIface::setLeftBorderColor(int r,int g,int b)
{
TQColor c(r,g,b);
- layout->setLeftBorderColor(c );
+ tqlayout->setLeftBorderColor(c );
}
void LayoutIface::setLeftBorderWidth( int _size )
{
- layout->setLeftBorderWidth( _size );
+ tqlayout->setLeftBorderWidth( _size );
}
@@ -230,34 +230,34 @@ void LayoutIface::setLeftBorderWidth( int _size )
void LayoutIface::setRightBorderStyle( const TQString& _style )
{
if(_style=="DotLine")
- layout->setRightBorderStyle(Qt::DotLine);
+ tqlayout->setRightBorderStyle(Qt::DotLine);
else if(_style=="DashLine")
- layout->setRightBorderStyle(Qt::DashLine);
+ tqlayout->setRightBorderStyle(Qt::DashLine);
else if(_style=="DashDotLine")
- layout->setRightBorderStyle(Qt::DashDotLine);
+ tqlayout->setRightBorderStyle(Qt::DashDotLine);
else if(_style=="DashDotDotLine")
- layout->setRightBorderStyle(Qt::DashDotDotLine);
+ tqlayout->setRightBorderStyle(Qt::DashDotDotLine);
else if(_style=="SolidLine")
- layout->setRightBorderStyle(Qt::SolidLine);
+ tqlayout->setRightBorderStyle(Qt::SolidLine);
else
- layout->setRightBorderStyle(Qt::SolidLine);
+ tqlayout->setRightBorderStyle(Qt::SolidLine);
}
void LayoutIface::setRightBorderColor(const TQString& _c)
{
TQColor c(_c);
- layout->setRightBorderColor(c );
+ tqlayout->setRightBorderColor(c );
}
void LayoutIface::setRightBorderColor(int r,int g,int b)
{
TQColor c(r,g,b);
- layout->setRightBorderColor(c );
+ tqlayout->setRightBorderColor(c );
}
void LayoutIface::setRightBorderWidth( int _size )
{
- layout->setRightBorderWidth( _size );
+ tqlayout->setRightBorderWidth( _size );
}
@@ -265,34 +265,34 @@ void LayoutIface::setRightBorderWidth( int _size )
void LayoutIface::setTopBorderStyle( const TQString& _style )
{
if(_style=="DotLine")
- layout->setTopBorderStyle(Qt::DotLine);
+ tqlayout->setTopBorderStyle(Qt::DotLine);
else if(_style=="DashLine")
- layout->setTopBorderStyle(Qt::DashLine);
+ tqlayout->setTopBorderStyle(Qt::DashLine);
else if(_style=="DashDotLine")
- layout->setTopBorderStyle(Qt::DashDotLine);
+ tqlayout->setTopBorderStyle(Qt::DashDotLine);
else if(_style=="DashDotDotLine")
- layout->setTopBorderStyle(Qt::DashDotDotLine);
+ tqlayout->setTopBorderStyle(Qt::DashDotDotLine);
else if(_style=="SolidLine")
- layout->setTopBorderStyle(Qt::SolidLine);
+ tqlayout->setTopBorderStyle(Qt::SolidLine);
else
- layout->setTopBorderStyle(Qt::SolidLine);
+ tqlayout->setTopBorderStyle(Qt::SolidLine);
}
void LayoutIface::setTopBorderColor(const TQString& _c)
{
TQColor c(_c);
- layout->setTopBorderColor(c );
+ tqlayout->setTopBorderColor(c );
}
void LayoutIface::setTopBorderColor(int r,int g,int b)
{
TQColor c(r,g,b);
- layout->setTopBorderColor(c );
+ tqlayout->setTopBorderColor(c );
}
void LayoutIface::setTopBorderWidth( int _size )
{
- layout->setTopBorderWidth( _size );
+ tqlayout->setTopBorderWidth( _size );
}
@@ -300,33 +300,33 @@ void LayoutIface::setTopBorderWidth( int _size )
void LayoutIface::setBottomBorderStyle( const TQString& _style )
{
if(_style=="DotLine")
- layout->setBottomBorderStyle(Qt::DotLine);
+ tqlayout->setBottomBorderStyle(Qt::DotLine);
else if(_style=="DashLine")
- layout->setBottomBorderStyle(Qt::DashLine);
+ tqlayout->setBottomBorderStyle(Qt::DashLine);
else if(_style=="DashDotLine")
- layout->setBottomBorderStyle(Qt::DashDotLine);
+ tqlayout->setBottomBorderStyle(Qt::DashDotLine);
else if(_style=="DashDotDotLine")
- layout->setBottomBorderStyle(Qt::DashDotDotLine);
+ tqlayout->setBottomBorderStyle(Qt::DashDotDotLine);
else if(_style=="SolidLine")
- layout->setBottomBorderStyle(Qt::SolidLine);
+ tqlayout->setBottomBorderStyle(Qt::SolidLine);
else
- layout->setBottomBorderStyle(Qt::SolidLine);
+ tqlayout->setBottomBorderStyle(Qt::SolidLine);
}
void LayoutIface::setBottomBorderColor(const TQString& _c)
{
TQColor c(_c);
- layout->setBottomBorderColor(c );
+ tqlayout->setBottomBorderColor(c );
}
void LayoutIface::setBottomBorderColor(int r,int g,int b)
{
TQColor c(r,g,b);
- layout->setBottomBorderColor(c );
+ tqlayout->setBottomBorderColor(c );
}
void LayoutIface::setBottomBorderWidth( int _size )
{
- layout->setBottomBorderWidth( _size );
+ tqlayout->setBottomBorderWidth( _size );
}
@@ -334,33 +334,33 @@ void LayoutIface::setBottomBorderWidth( int _size )
void LayoutIface::setFallDiagonalStyle( const TQString& _style )
{
if(_style=="DotLine")
- layout->setFallDiagonalStyle(Qt::DotLine);
+ tqlayout->setFallDiagonalStyle(Qt::DotLine);
else if(_style=="DashLine")
- layout->setFallDiagonalStyle(Qt::DashLine);
+ tqlayout->setFallDiagonalStyle(Qt::DashLine);
else if(_style=="DashDotLine")
- layout->setFallDiagonalStyle(Qt::DashDotLine);
+ tqlayout->setFallDiagonalStyle(Qt::DashDotLine);
else if(_style=="DashDotDotLine")
- layout->setFallDiagonalStyle(Qt::DashDotDotLine);
+ tqlayout->setFallDiagonalStyle(Qt::DashDotDotLine);
else if(_style=="SolidLine")
- layout->setFallDiagonalStyle(Qt::SolidLine);
+ tqlayout->setFallDiagonalStyle(Qt::SolidLine);
else
- layout->setFallDiagonalStyle(Qt::SolidLine);
+ tqlayout->setFallDiagonalStyle(Qt::SolidLine);
}
void LayoutIface::setFallDiagonalColor(const TQString& _c)
{
TQColor c(_c);
- layout->setFallDiagonalColor(c );
+ tqlayout->setFallDiagonalColor(c );
}
void LayoutIface::setFallDiagonalColor(int r,int g,int b)
{
TQColor c(r,g,b);
- layout->setFallDiagonalColor(c );
+ tqlayout->setFallDiagonalColor(c );
}
void LayoutIface::setFallDiagonalWidth( int _size )
{
- layout->setFallDiagonalWidth( _size );
+ tqlayout->setFallDiagonalWidth( _size );
}
@@ -369,47 +369,47 @@ void LayoutIface::setFallDiagonalWidth( int _size )
void LayoutIface::setGoUpDiagonalStyle( const TQString& _style )
{
if(_style=="DotLine")
- layout->setGoUpDiagonalStyle(Qt::DotLine);
+ tqlayout->setGoUpDiagonalStyle(Qt::DotLine);
else if(_style=="DashLine")
- layout->setGoUpDiagonalStyle(Qt::DashLine);
+ tqlayout->setGoUpDiagonalStyle(Qt::DashLine);
else if(_style=="DashDotLine")
- layout->setGoUpDiagonalStyle(Qt::DashDotLine);
+ tqlayout->setGoUpDiagonalStyle(Qt::DashDotLine);
else if(_style=="DashDotDotLine")
- layout->setGoUpDiagonalStyle(Qt::DashDotDotLine);
+ tqlayout->setGoUpDiagonalStyle(Qt::DashDotDotLine);
else if(_style=="SolidLine")
- layout->setGoUpDiagonalStyle(Qt::SolidLine);
+ tqlayout->setGoUpDiagonalStyle(Qt::SolidLine);
else
- layout->setGoUpDiagonalStyle(Qt::SolidLine);
+ tqlayout->setGoUpDiagonalStyle(Qt::SolidLine);
}
void LayoutIface::setGoUpDiagonalColor(const TQString& _c)
{
TQColor c(_c);
- layout->setGoUpDiagonalColor(c );
+ tqlayout->setGoUpDiagonalColor(c );
}
void LayoutIface::setGoUpDiagonalColor(int r,int g,int b)
{
TQColor c(r,g,b);
- layout->setGoUpDiagonalColor(c );
+ tqlayout->setGoUpDiagonalColor(c );
}
void LayoutIface::setGoUpDiagonalWidth( int _size )
{
- layout->setGoUpDiagonalWidth( _size );
+ tqlayout->setGoUpDiagonalWidth( _size );
}
void LayoutIface::setIndent( double indent )
{
if( indent >= 0.0 )
- layout->setIndent( indent );
+ tqlayout->setIndent( indent );
else
- layout->setIndent( 0.0 );
+ tqlayout->setIndent( 0.0 );
}
void LayoutIface::setDontPrintText ( bool _print)
{
- layout->setDontPrintText ( _print);
+ tqlayout->setDontPrintText ( _print);
}