Logo Search packages:      
Sourcecode: koffice version File versions

KoBorder Class Reference

#include <koborder.h>

List of all members.

Detailed Description

This class represents a border - for anything, like paragraph, or frame

Definition at line 32 of file koborder.h.

Public Types

enum  BorderStyle {
  SOLID = 0, DASH = 1, DOT = 2, DASH_DOT = 3,

Public Member Functions

BorderStyle getStyle () const
 KoBorder (const QColor &c, BorderStyle s, double width)
bool operator!= (const KoBorder _brd) const
bool operator== (const KoBorder _brd) const
double penWidth () const
void save (QDomElement &elem) const
void setPenWidth (double _w)
void setStyle (BorderStyle _style)
double width () const

Static Public Member Functions

static QPen borderPen (const KoBorder &brd, int width, QColor defaultColor)
static void drawBorders (QPainter &painter, KoZoomHandler *zoomHandler, QRect rect, KoBorder left, KoBorder right, KoBorder top, KoBorder bottom, int minborder, QPen defaultPen)
static QString getStyle (const BorderStyle &style)
static BorderStyle getStyle (const QString &style)
static KoBorder loadBorder (const QDomElement &elem)
static int zoomWidthX (double ptWidth, KoZoomHandler *zoomHandler, int minborder)
static int zoomWidthY (double ptWidth, KoZoomHandler *zoomHandler, int minborder)

Public Attributes

QColor color

Private Attributes

double ptPenWidth
double ptWidth
BorderStyle style

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index