Référence de la classe KoBorder

#include <KoBorder.h>

Liste de tous les membres

Types publics

enum  BorderStyle {
  SOLID = 0, DASH = 1, DOT = 2, DASH_DOT = 3,
  DASH_DOT_DOT = 4, DOUBLE_LINE = 5
}
enum  BorderType { LeftBorder = 0, RightBorder, TopBorder, BottomBorder }

Fonctions membres publiques

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

Fonctions membres publiques statiques

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

Attributs publics

QColor color

Attributs privés

double ptWidth
double ptPenWidth
BorderStyle m_style

Amis

class KoTextCursor


Description détaillée

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

Définition à la ligne 34 du fichier KoBorder.h.


Documentation des énumérations membres

enum KoBorder::BorderStyle

Valeurs énumérées:
SOLID 
DASH 
DOT 
DASH_DOT 
DASH_DOT_DOT 
DOUBLE_LINE 

Définition à la ligne 39 du fichier KoBorder.h.

enum KoBorder::BorderType

Valeurs énumérées:
LeftBorder 
RightBorder 
TopBorder 
BottomBorder 

Définition à la ligne 40 du fichier KoBorder.h.


Documentation des contructeurs et destructeur

KoBorder::KoBorder (  ) 

Définition à la ligne 44 du fichier KoBorder.cpp.

Références setPenWidth().

Voici le graphe d'appel pour cette fonction :

KoBorder::KoBorder ( const QColor &  c,
BorderStyle  s,
double  width 
)

Définition à la ligne 50 du fichier KoBorder.cpp.

Références setPenWidth().

Voici le graphe d'appel pour cette fonction :


Documentation des fonctions membres

void KoBorder::setPenWidth ( double  _w  ) 

Définition à la ligne 70 du fichier KoBorder.cpp.

Références DOUBLE_LINE, m_style, ptPenWidth, et ptWidth.

Référencé par KoParagDecorationWidget::brdBottomToggled(), KoParagDecorationWidget::brdLeftToggled(), KoParagDecorationWidget::brdRightToggled(), KoParagDecorationWidget::brdTopToggled(), KoTextParagCommand::execute(), KoParagLayout::initialise(), KoBorder(), loadBorder(), loadFoBorder(), KoParagLayout::loadOasisParagLayout(), KoParagLayout::loadParagLayout(), main(), KoTextObject::setBordersCommand(), KoTextViewIface::setBottomBorderWidth(), KoTextViewIface::setLeftBorderWidth(), KoTextViewIface::setRightBorderWidth(), setStyle(), KoTextViewIface::setTopBorderWidth(), et KoParagDecorationWidget::updateBorder().

Voici le graphe d'appel pour cette fonction :

void KoBorder::setStyle ( BorderStyle  _style  ) 

Définition à la ligne 64 du fichier KoBorder.cpp.

Références m_style, ptPenWidth, et setPenWidth().

Référencé par KoParagDecorationWidget::brdBottomToggled(), KoParagDecorationWidget::brdLeftToggled(), KoParagDecorationWidget::brdRightToggled(), KoParagDecorationWidget::brdTopToggled(), main(), et KoParagDecorationWidget::updateBorder().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

BorderStyle KoBorder::getStyle (  )  const [inline]

Définition à la ligne 48 du fichier KoBorder.h.

Référencé par KoParagDecorationWidget::borderChanged(), KoParagDecorationWidget::curBorderStyle(), KoBorderPreview::drawContents(), KoParagDecorationWidget::KoParagDecorationWidget(), operator<<(), et KoBorderPreview::setBorderPen().

Voici le graphe d'appel pour cette fonction :

BorderStyle KoBorder::style (  )  const [inline]

Définition à la ligne 49 du fichier KoBorder.h.

double KoBorder::penWidth (  )  const [inline]

Définition à la ligne 50 du fichier KoBorder.h.

Référencé par KoParagDecorationWidget::borderChanged(), drawBorders(), loadFoBorder(), operator<<(), KoParagLayout::saveOasis(), KoParagLayout::saveParagLayout(), KoBorderPreview::setBorderPen(), et KoParagDecorationWidget::updateBorders().

Voici le graphe d'appel pour cette fonction :

double KoBorder::width (  )  const [inline]

Définition à la ligne 51 du fichier KoBorder.h.

Référencé par KoTextViewIface::bottomBorderWidth(), KoTextParag::bottomMargin(), KoTextObject::doKeyboardAction(), drawBorders(), KoBorderPreview::drawContents(), KoTextViewIface::leftBorderWidth(), KoTextParag::leftMargin(), operator<<(), KoTextParag::paint(), KoTextViewIface::rightBorderWidth(), KoTextParag::rightMargin(), KoTextViewIface::topBorderWidth(), et KoTextParag::topMargin().

Voici le graphe d'appel pour cette fonction :

bool KoBorder::operator== ( const KoBorder  _brd  )  const

Définition à la ligne 56 du fichier KoBorder.cpp.

Références color, m_style, et ptPenWidth.

bool KoBorder::operator!= ( const KoBorder  _brd  )  const

Définition à la ligne 60 du fichier KoBorder.cpp.

Références color, m_style, et ptPenWidth.

KoBorder KoBorder::loadBorder ( const QDomElement &  elem  )  [static]

Définition à la ligne 91 du fichier KoBorder.cpp.

Références color, m_style, et setPenWidth().

Référencé par KoParagLayout::loadParagLayout().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoBorder::loadFoBorder ( const QString &  border  ) 

Définition à la ligne 106 du fichier KoBorder.cpp.

Références color, m_style, KoUnit::parseValue(), penWidth(), s_borderStyles, setPenWidth(), et SOLID.

Référencé par KoParagLayout::loadOasisParagLayout().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoBorder::save ( QDomElement &  elem  )  const

Définition à la ligne 172 du fichier KoBorder.cpp.

Références color, m_style, et ptPenWidth.

Référencé par KoParagLayout::saveParagLayout().

Voici le graphe d'appel pour cette fonction :

QString KoBorder::saveFoBorder (  )  const

Définition à la ligne 156 du fichier KoBorder.cpp.

Références color, m_style, ptPenWidth, et s_borderStyles.

Référencé par KoParagLayout::saveOasis().

Voici le graphe d'appel pour cette fonction :

KoBorder::BorderStyle KoBorder::getStyle ( const QString &  style  )  [static]

Définition à la ligne 183 du fichier KoBorder.cpp.

Références s_borderStyles, et SOLID.

QString KoBorder::getStyle ( const BorderStyle style  )  [static]

Définition à la ligne 193 du fichier KoBorder.cpp.

Références s_borderStyles.

int KoBorder::zoomWidthX ( double  ptWidth,
KoZoomHandler zoomHandler,
int  minborder 
) [static]

Définition à la ligne 198 du fichier KoBorder.cpp.

Références KoZoomHandler::zoomItXOld().

Référencé par drawBorders().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

int KoBorder::zoomWidthY ( double  ptWidth,
KoZoomHandler zoomHandler,
int  minborder 
) [static]

Définition à la ligne 205 du fichier KoBorder.cpp.

Références KoZoomHandler::zoomItYOld().

Référencé par drawBorders(), KoTextParag::drawFontEffects(), et KoTextParag::paint().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

QPen KoBorder::borderPen ( const KoBorder brd,
int  width,
QColor  defaultColor 
) [static]

Définition à la ligne 79 du fichier KoBorder.cpp.

Références color, m_style, et s_borderStyles.

Référencé par drawBorders().

Voici le graphe d'appel pour cette fonction :

void KoBorder::drawBorders ( QPainter &  painter,
KoZoomHandler zoomHandler,
const QRect &  rect,
const KoBorder left,
const KoBorder right,
const KoBorder top,
const KoBorder bottom,
int  minborder,
const QPen &  defaultPen,
bool  drawTopBorder = true,
bool  drawBottomBorder = true 
) [static]

Définition à la ligne 212 du fichier KoBorder.cpp.

Références borderPen(), KoTextFormat::defaultTextColor(), DOUBLE_LINE, penWidth(), width(), zoomWidthX(), et zoomWidthY().

Référencé par KoTextParag::paint(), et MyWidget::paintEvent().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :


Documentation des fonctions amies et associées

friend class KoTextCursor [friend]

Définition à la ligne 36 du fichier KoBorder.h.


Documentation des données membres

QColor KoBorder::color

Définition à la ligne 44 du fichier KoBorder.h.

Référencé par KoParagDecorationWidget::borderChanged(), borderPen(), KoTextViewIface::bottomBorderColor(), KoParagDecorationWidget::brdBottomToggled(), KoParagDecorationWidget::brdLeftToggled(), KoParagDecorationWidget::brdRightToggled(), KoParagDecorationWidget::brdTopToggled(), KoTextViewIface::leftBorderColor(), loadBorder(), loadFoBorder(), main(), operator!=(), operator<<(), operator==(), KoTextViewIface::rightBorderColor(), save(), saveFoBorder(), KoBorderPreview::setBorderPen(), KoTextViewIface::setBottomBorderColor(), KoTextViewIface::setLeftBorderColor(), KoTextViewIface::setRightBorderColor(), KoTextViewIface::setTopBorderColor(), KoTextViewIface::topBorderColor(), et KoParagDecorationWidget::updateBorder().

double KoBorder::ptWidth [private]

Définition à la ligne 83 du fichier KoBorder.h.

Référencé par setPenWidth().

double KoBorder::ptPenWidth [private]

Définition à la ligne 84 du fichier KoBorder.h.

Référencé par operator!=(), operator==(), save(), saveFoBorder(), setPenWidth(), et setStyle().

BorderStyle KoBorder::m_style [private]

Définition à la ligne 85 du fichier KoBorder.h.

Référencé par borderPen(), loadBorder(), loadFoBorder(), operator!=(), operator==(), save(), saveFoBorder(), setPenWidth(), et setStyle().


La documentation de cette classe a été générée à partir des fichiers suivants :
Généré le Wed Nov 22 23:44:02 2006 pour KPlato par  doxygen 1.5.1-p1