kopete/kopete
KRichTextEditPart Class Reference
#include <krichtexteditpart.h>

Detailed Description
Simple WYSIWYG rich text editor part.Technicaly it just a wrapper around KTextEdit with a toolbar of actions. The action toolbar adds buttons to set text bold, italic or underline, set font size and font familly and set text color.
Definition at line 45 of file krichtexteditpart.h.
Public Types | |
| enum | RichTextSupportValues { DisableRichText = 0, SupportBold, SupportItalic, SupportUnderline, SupportAlignment, SupportFont, SupportTextColor, FormattingSupport = SupportBold | SupportItalic | SupportUnderline, FullSupport = FormattingSupport | SupportAlignment | SupportFont | SupportTextColor } |
Public Slots | |
| void | checkToolbarEnabled () |
| void | reloadConfig () |
| void | setAlignCenter (bool yes) |
| void | setAlignJustify (bool yes) |
| void | setAlignLeft (bool yes) |
| void | setAlignRight (bool yes) |
| void | setFont (const QString &familyName) |
| void | setFont (const QFont &font) |
| void | setFont () |
| void | setFontBold (bool value) |
| void | setFontItalic (bool value) |
| void | setFontSize (int size) |
| void | setFontUnderline (bool value) |
| void | setRichTextEnabled (bool enable) |
| void | setTextColor (const QColor &) |
| void | setTextColor () |
Signals | |
| void | toolbarToggled (bool enabled) |
Public Member Functions | |
| bool | checkSpellingEnabled () const |
| void | clear () |
| QFont | font () const |
| bool | isRichTextAvailable () const |
| bool | isRichTextEnabled () const |
| KRichTextEditPart (QWidget *parent, QObject *, const QStringList &) | |
| virtual bool | openFile () |
| RichTextSupport | richTextSupport () const |
| void | setCheckSpellingEnabled (bool enabled) |
| void | setRichTextSupport (const KRichTextEditPart::RichTextSupport &support) |
| QString | text (Qt::TextFormat format=Qt::AutoText) const |
| QColor | textColor () const |
| KTextEdit * | textEdit () |
| ~KRichTextEditPart () | |
Static Public Member Functions | |
| static KAboutData * | createAboutData () |
Protected Slots | |
| void | updateActions () |
| void | updateAligment () |
| void | updateCharFormat () |
| void | updateFont () |
Protected Member Functions | |
| virtual void | createActions () |
| bool | useRichText () const |
Member Enumeration Documentation
- Enumerator:
-
DisableRichText SupportBold SupportItalic SupportUnderline SupportAlignment SupportFont SupportTextColor FormattingSupport FullSupport
Definition at line 49 of file krichtexteditpart.h.
Constructor & Destructor Documentation
| KRichTextEditPart::KRichTextEditPart | ( | QWidget * | parent, | |
| QObject * | , | |||
| const QStringList & | ||||
| ) |
Definition at line 116 of file krichtexteditpart.cpp.
| KRichTextEditPart::~KRichTextEditPart | ( | ) |
Definition at line 134 of file krichtexteditpart.cpp.
Member Function Documentation
| bool KRichTextEditPart::checkSpellingEnabled | ( | ) | const |
Get the state of auto spell checking.
- Returns:
- true if auto spell checking is turned on, false otherwise
Definition at line 172 of file krichtexteditpart.cpp.
| void KRichTextEditPart::checkToolbarEnabled | ( | ) | [slot] |
Definition at line 205 of file krichtexteditpart.cpp.
| void KRichTextEditPart::clear | ( | ) |
| KAboutData * KRichTextEditPart::createAboutData | ( | ) | [static] |
Definition at line 215 of file krichtexteditpart.cpp.
| void KRichTextEditPart::createActions | ( | ) | [protected, virtual] |
| QFont KRichTextEditPart::font | ( | ) | const |
| bool KRichTextEditPart::isRichTextAvailable | ( | ) | const |
Definition at line 159 of file krichtexteditpart.cpp.
| bool KRichTextEditPart::isRichTextEnabled | ( | ) | const |
| virtual bool KRichTextEditPart::openFile | ( | ) | [inline, virtual] |
Disable file open, because it's not used by this part.
Definition at line 117 of file krichtexteditpart.h.
| void KRichTextEditPart::reloadConfig | ( | ) | [slot] |
Definition at line 210 of file krichtexteditpart.cpp.
| RichTextSupport KRichTextEditPart::richTextSupport | ( | ) | const |
| void KRichTextEditPart::setAlignCenter | ( | bool | yes | ) | [slot] |
Definition at line 549 of file krichtexteditpart.cpp.
| void KRichTextEditPart::setAlignJustify | ( | bool | yes | ) | [slot] |
Definition at line 556 of file krichtexteditpart.cpp.
| void KRichTextEditPart::setAlignLeft | ( | bool | yes | ) | [slot] |
Definition at line 533 of file krichtexteditpart.cpp.
| void KRichTextEditPart::setAlignRight | ( | bool | yes | ) | [slot] |
Definition at line 541 of file krichtexteditpart.cpp.
| void KRichTextEditPart::setCheckSpellingEnabled | ( | bool | enabled | ) |
Enable or Disable the automatic spell checking.
- Parameters:
-
enabled the state that auto spell checking should beee
Definition at line 167 of file krichtexteditpart.cpp.
| void KRichTextEditPart::setFont | ( | const QString & | familyName | ) | [slot] |
Definition at line 493 of file krichtexteditpart.cpp.
| void KRichTextEditPart::setFont | ( | const QFont & | font | ) | [slot] |
Definition at line 484 of file krichtexteditpart.cpp.
| void KRichTextEditPart::setFont | ( | ) | [slot] |
Definition at line 475 of file krichtexteditpart.cpp.
| void KRichTextEditPart::setFontBold | ( | bool | value | ) | [slot] |
Definition at line 505 of file krichtexteditpart.cpp.
| void KRichTextEditPart::setFontItalic | ( | bool | value | ) | [slot] |
Definition at line 514 of file krichtexteditpart.cpp.
| void KRichTextEditPart::setFontSize | ( | int | size | ) | [slot] |
Definition at line 463 of file krichtexteditpart.cpp.
| void KRichTextEditPart::setFontUnderline | ( | bool | value | ) | [slot] |
Definition at line 523 of file krichtexteditpart.cpp.
| void KRichTextEditPart::setRichTextEnabled | ( | bool | enable | ) | [slot] |
Definition at line 182 of file krichtexteditpart.cpp.
| void KRichTextEditPart::setRichTextSupport | ( | const KRichTextEditPart::RichTextSupport & | support | ) |
Definition at line 197 of file krichtexteditpart.cpp.
| void KRichTextEditPart::setTextColor | ( | const QColor & | newColor | ) | [slot] |
Definition at line 447 of file krichtexteditpart.cpp.
| void KRichTextEditPart::setTextColor | ( | ) | [slot] |
Definition at line 432 of file krichtexteditpart.cpp.
| QString KRichTextEditPart::text | ( | Qt::TextFormat | format = Qt::AutoText |
) | const |
Get the text in the editor in the given format.
By default if return the text using the most appropriate format.
- Parameters:
-
format A value in Qt::TextFormat enum.
- Returns:
- text using the given format
Definition at line 563 of file krichtexteditpart.cpp.
| QColor KRichTextEditPart::textColor | ( | ) | const |
| KTextEdit * KRichTextEditPart::textEdit | ( | ) |
Get the inside KTextEdit.
- Returns:
- instance of KTextEdit
Definition at line 139 of file krichtexteditpart.cpp.
| void KRichTextEditPart::toolbarToggled | ( | bool | enabled | ) | [signal] |
| void KRichTextEditPart::updateActions | ( | ) | [protected, slot] |
Definition at line 313 of file krichtexteditpart.cpp.
| void KRichTextEditPart::updateAligment | ( | ) | [protected, slot] |
Definition at line 342 of file krichtexteditpart.cpp.
| void KRichTextEditPart::updateCharFormat | ( | ) | [protected, slot] |
Definition at line 335 of file krichtexteditpart.cpp.
| void KRichTextEditPart::updateFont | ( | ) | [protected, slot] |
Definition at line 365 of file krichtexteditpart.cpp.
| bool KRichTextEditPart::useRichText | ( | ) | const [protected] |
Definition at line 177 of file krichtexteditpart.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference