20#include "kspread_pen.h"
22#include <KoTextZoomHandler.h>
24KSpreadPen::KSpreadPen()
30KSpreadPen::KSpreadPen( const TQColor& _color, double _pointWidth, TQt::PenStyle _style)
34 setPointWidth(_pointWidth);
38KSpreadPen::KSpreadPen( const TQColor& _color)
44KSpreadPen::~KSpreadPen()
50 return color() == p.color() && style() == p.style() && m_pointWidth == p. pointWidth();
55 return color() != p.color() || style() != p.style() || m_pointWidth != p. pointWidth();
66 pen.setWidth(zoomHandler->zoomItY(m_pointWidth));
Pen that handles line widths in points.
double pointWidth() const KSpreadPen width in points.
bool operator!=(const KSpreadPen &p) const Compare pens if they differ.
void setPointWidth(double width) Set the pen width in points.
bool operator==(const KSpreadPen &p) const Compare pens if they are equal.
TQPen zoomedPen(KoZoomHandler *zoomHandler) Returns a zoomed TQPen.
|