lib Library API Documentation

KoFontChooser Class Reference

The embeddable font chooser widget. More...

#include <koFontDia.h>

Inheritance diagram for KoFontChooser:

QTabWidget List of all members.

Public Member Functions

 KoFontChooser (QWidget *parent, const char *name=0L, bool _withSubSuperScript=true, uint fontListCriteria=0)
void setFormat (const KoTextFormat &format)
KoTextFormat newFormat () const
int changedFlags () const

Protected Slots

void slotSuperScriptClicked ()
void slotSubScriptClicked ()
void slotStrikeOutTypeChanged (int)
void slotFontChanged (const QFont &)
void slotChangeColor ()
void slotChangeBackGroundColor ()
void slotUnderlineColor ()
void slotChangeUnderlineType (int)
void slotChangeUnderlining (int)
void slotChangeStrikeOutType (int)
void slotShadowChanged ()
void slotRelativeSizeChanged (int)
void slotOffsetFromBaseLineChanged (int)
void slotChangeAttributeFont (int)
void slotWordByWordClicked ()
void slotChangeLanguage (int)
void slotHyphenationClicked ()

Protected Member Functions

void setFont (const QFont &_font, bool _subscript, bool _superscript)
void setColor (const QColor &col)
void setBackGroundColor (const QColor &col)
bool superScript () const
bool subScript () const
KoTextFormat::VerticalAlignment vAlign () const
QFont newFont () const
QColor color () const
QColor backGroundColor () const
QColor underlineColor () const
void setUnderlineColor (const QColor &col)
KoTextFormat::UnderlineType underlineType () const
KoTextFormat::UnderlineStyle underlineStyle () const
KoTextFormat::StrikeOutType strikeOutType () const
KoTextFormat::StrikeOutStyle strikeOutStyle () const
void setUnderlineType (KoTextFormat::UnderlineType nb)
void setStrikeOutlineType (KoTextFormat::StrikeOutType nb)
void setUnderlineStyle (KoTextFormat::UnderlineStyle _t)
void setStrikeOutStyle (KoTextFormat::StrikeOutStyle _t)
void setShadow (double shadowDistanceX, double shadowDistanceY, const QColor &shadowColor)
double shadowDistanceX () const
double shadowDistanceY () const
QColor shadowColor () const
bool wordByWord () const
void setWordByWord (bool _b)
bool hyphenation () const
void setHyphenation (bool _b)
QString language () const
void setLanguage (const QString &)
KoTextFormat::AttributeStyle fontAttribute () const
void setFontAttribute (KoTextFormat::AttributeStyle _att)
double relativeTextSize () const
void setRelativeTextSize (double _size)
int offsetFromBaseLine () const
void setOffsetFromBaseLine (int _offset)
void setupTab1 (bool _withSubSuperScript, uint fontListCriteria)
void setupTab2 ()
void updatePositionButton ()

Detailed Description

The embeddable font chooser widget.

Definition at line 32 of file koFontDia.h.


Constructor & Destructor Documentation

KoFontChooser::KoFontChooser QWidget parent,
const char *  name = 0L,
bool  _withSubSuperScript = true,
uint  fontListCriteria = 0
 

Constructor.

Parameters:
fontListCriteria should contain all the restrictions for font selection as OR-ed values
See also:
KFontChooser::FontListCriteria for the individual values

Definition at line 348 of file koFontDia.cc.

References KoFontChooser().

Referenced by KoFontChooser().


Member Function Documentation

void KoFontChooser::setFormat const KoTextFormat format  ) 
 

Set the text format to be displayed.

This contains all the attributes - no need to use setFont etc.

Definition at line 1049 of file koFontDia.cc.

References KoTextFormat::attributeFont(), KoTextFormat::color(), KoTextFormat::font(), KoTextFormat::hyphenation(), KoTextFormat::language(), KoTextFormat::offsetFromBaseLine(), KoTextFormat::relativeTextSize(), setFormat(), KoTextFormat::shadowColor(), KoTextFormat::shadowDistanceX(), KoTextFormat::shadowDistanceY(), KoTextFormat::strikeOutStyle(), KoTextFormat::strikeOutType(), KoTextFormat::textBackgroundColor(), KoTextFormat::textUnderlineColor(), KoTextFormat::underlineStyle(), KoTextFormat::underlineType(), KoTextFormat::vAlign(), and KoTextFormat::wordByWord().

Referenced by setFormat().

KoTextFormat KoFontChooser::newFormat  )  const
 

Returns:
the modified text format, once the dialog is closed. This contains all the attributes - no need to use newFont() etc.

Definition at line 1077 of file koFontDia.cc.

int KoFontChooser::changedFlags  )  const [inline]
 

Returns:
a bitfield (see KoTextFormat) which identifies which parts of the text format have been modified.

Definition at line 55 of file koFontDia.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Nov 17 06:54:22 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003