#include </home/clem/local/src/opie/qmake/include/private/qrichtext_p.h>
Collaboration diagram for QTextDocument:

Public Types | |
| enum | SelectionIds { Standard = 0, IMSelectionText = 31998, IMCompositionText = 31999, Temp = 32000 } |
Signals | |
| void | minimumWidthChanged (int) |
Public Member Functions | |
| QTextDocument (QTextDocument *p) | |
| QTextDocument (QTextDocument *d, QTextFormatCollection *f) | |
| virtual | ~QTextDocument () |
| QTextDocument * | parent () const |
| QTextParagraph * | parentParagraph () const |
| void | setText (const QString &text, const QString &context) |
| QMap< QString, QString > | attributes () const |
| void | setAttributes (const QMap< QString, QString > &attr) |
| QString | text () const |
| QString | text (int parag) const |
| QString | originalText () const |
| int | x () const |
| int | y () const |
| int | width () const |
| int | widthUsed () const |
| int | visibleWidth () const |
| int | height () const |
| void | setWidth (int w) |
| int | minimumWidth () const |
| bool | setMinimumWidth (int needed, int used=-1, QTextParagraph *parag=0) |
| void | setY (int y) |
| int | leftMargin () const |
| void | setLeftMargin (int lm) |
| int | rightMargin () const |
| void | setRightMargin (int rm) |
| QTextParagraph * | firstParagraph () const |
| QTextParagraph * | lastParagraph () const |
| void | setFirstParagraph (QTextParagraph *p) |
| void | setLastParagraph (QTextParagraph *p) |
| void | invalidate () |
| void | setPreProcessor (QTextPreProcessor *sh) |
| QTextPreProcessor * | preProcessor () const |
| void | setFormatter (QTextFormatter *f) |
| QTextFormatter * | formatter () const |
| void | setIndent (QTextIndent *i) |
| QTextIndent * | indent () const |
| QColor | selectionColor (int id) const |
| bool | invertSelectionText (int id) const |
| void | setSelectionColor (int id, const QColor &c) |
| void | setInvertSelectionText (int id, bool b) |
| bool | hasSelection (int id, bool visible=FALSE) const |
| void | setSelectionStart (int id, const QTextCursor &cursor) |
| bool | setSelectionEnd (int id, const QTextCursor &cursor) |
| void | selectAll (int id) |
| bool | removeSelection (int id) |
| void | selectionStart (int id, int ¶gId, int &index) |
| QTextCursor | selectionStartCursor (int id) |
| QTextCursor | selectionEndCursor (int id) |
| void | selectionEnd (int id, int ¶gId, int &index) |
| void | setFormat (int id, QTextFormat *f, int flags) |
| int | numSelections () const |
| void | addSelection (int id) |
| QString | selectedText (int id, bool asRichText=FALSE) const |
| void | removeSelectedText (int id, QTextCursor *cursor) |
| void | indentSelection (int id) |
| QTextParagraph * | paragAt (int i) const |
| void | addCommand (QTextCommand *cmd) |
| QTextCursor * | undo (QTextCursor *c=0) |
| QTextCursor * | redo (QTextCursor *c=0) |
| QTextCommandHistory * | commands () const |
| QTextFormatCollection * | formatCollection () const |
| bool | find (QTextCursor &cursor, const QString &expr, bool cs, bool wo, bool forward) |
| void | setTextFormat (Qt::TextFormat f) |
| Qt::TextFormat | textFormat () const |
| bool | inSelection (int selId, const QPoint &pos) const |
| QStyleSheet * | styleSheet () const |
| QMimeSourceFactory * | mimeSourceFactory () const |
| QString | context () const |
| void | setStyleSheet (QStyleSheet *s) |
| void | setDefaultFormat (const QFont &font, const QColor &color) |
| void | setMimeSourceFactory (QMimeSourceFactory *f) |
| void | setContext (const QString &c) |
| void | setUnderlineLinks (bool b) |
| bool | underlineLinks () const |
| void | setPaper (QBrush *brush) |
| QBrush * | paper () const |
| void | doLayout (QPainter *p, int w) |
| void | draw (QPainter *p, const QRect &rect, const QColorGroup &cg, const QBrush *paper=0) |
| void | eraseParagraphEmptyArea (QTextParagraph *parag, QPainter *p, const QColorGroup &cg) |
| bool | useDoubleBuffer (QTextParagraph *parag, QPainter *p) |
| void | drawParagraph (QPainter *p, QTextParagraph *parag, int cx, int cy, int cw, int ch, QPixmap *&doubleBuffer, const QColorGroup &cg, bool drawCursor, QTextCursor *cursor, bool resetChanged=TRUE) |
| QTextParagraph * | draw (QPainter *p, int cx, int cy, int cw, int ch, const QColorGroup &cg, bool onlyChanged=FALSE, bool drawCursor=FALSE, QTextCursor *cursor=0, bool resetChanged=TRUE) |
| void | registerCustomItem (QTextCustomItem *i, QTextParagraph *p) |
| void | unregisterCustomItem (QTextCustomItem *i, QTextParagraph *p) |
| void | setFlow (QTextFlow *f) |
| void | takeFlow () |
| QTextFlow * | flow () const |
| bool | isPageBreakEnabled () const |
| void | setPageBreakEnabled (bool b) |
| void | setUseFormatCollection (bool b) |
| bool | useFormatCollection () const |
| QTextTableCell * | tableCell () const |
| void | setTableCell (QTextTableCell *c) |
| void | setPlainText (const QString &text) |
| void | setRichText (const QString &text, const QString &context) |
| QString | richText () const |
| QString | plainText () const |
| bool | focusNextPrevChild (bool next) |
| int | alignment () const |
| void | setAlignment (int a) |
| int * | tabArray () const |
| int | tabStopWidth () const |
| void | setTabArray (int *a) |
| void | setTabStops (int tw) |
| void | setUndoDepth (int d) |
| int | undoDepth () const |
| int | length () const |
| void | clear (bool createEmptyParag=FALSE) |
| virtual QTextParagraph * | createParagraph (QTextDocument *d, QTextParagraph *pr=0, QTextParagraph *nx=0, bool updateIds=TRUE) |
| void | insertChild (QObject *o) |
| void | removeChild (QObject *o) |
| void | insertChild (QTextDocument *d) |
| void | removeChild (QTextDocument *d) |
| QPtrList< QTextDocument > | children () const |
| bool | hasFocusParagraph () const |
| QString | focusHref () const |
| QString | focusName () const |
| void | invalidateOriginalText () |
Private Member Functions | |
| void | init () |
| QPixmap * | bufferPixmap (const QSize &s) |
| bool | hasPrefix (const QChar *doc, int length, int pos, QChar c) |
| bool | hasPrefix (const QChar *doc, int length, int pos, const QString &s) |
| QTextCustomItem * | parseTable (const QMap< QString, QString > &attr, const QTextFormat &fmt, const QChar *doc, int length, int &pos, QTextParagraph *curpar) |
| bool | eatSpace (const QChar *doc, int length, int &pos, bool includeNbsp=FALSE) |
| bool | eat (const QChar *doc, int length, int &pos, QChar c) |
| QString | parseOpenTag (const QChar *doc, int length, int &pos, QMap< QString, QString > &attr, bool &emptyTag) |
| QString | parseCloseTag (const QChar *doc, int length, int &pos) |
| QChar | parseHTMLSpecialChar (const QChar *doc, int length, int &pos) |
| QString | parseWord (const QChar *doc, int length, int &pos, bool lower=TRUE) |
| QChar | parseChar (const QChar *doc, int length, int &pos, QStyleSheetItem::WhiteSpaceMode wsm) |
| void | setRichTextInternal (const QString &text, QTextCursor *cursor=0) |
| void | setRichTextMarginsInternal (QPtrList< QPtrVector< QStyleSheetItem > > &styles, QTextParagraph *stylesPar) |
Private Attributes | |
| int | cx |
| int | cy |
| int | cw |
| int | vw |
| QTextParagraph * | fParag |
| QTextParagraph * | lParag |
| QTextPreProcessor * | pProcessor |
| QMap< int, QColor > | selectionColors |
| QMap< int, QTextDocumentSelection > | selections |
| QMap< int, bool > | selectionText |
| QTextCommandHistory * | commandHistory |
| QTextFormatter * | pFormatter |
| QTextIndent * | indenter |
| QTextFormatCollection * | fCollection |
| Qt::TextFormat | txtFormat |
| uint | preferRichText: 1 |
| uint | pages: 1 |
| uint | useFC: 1 |
| uint | withoutDoubleBuffer: 1 |
| uint | underlLinks: 1 |
| uint | nextDoubleBuffered: 1 |
| uint | oTextValid: 1 |
| uint | mightHaveCustomItems: 1 |
| int | align |
| int | nSelections |
| QTextFlow * | flow_ |
| QTextDocument * | par |
| QTextParagraph * | parentPar |
| QTextTableCell * | tc |
| QBrush * | backBrush |
| QPixmap * | buf_pixmap |
| Focus | focusIndicator |
| int | minw |
| int | wused |
| int | leftmargin |
| int | rightmargin |
| QTextParagraph * | minwParag |
| QTextParagraph * | curParag |
| QStyleSheet * | sheet_ |
| QMimeSourceFactory * | factory_ |
| QString | contxt |
| QMap< QString, QString > | attribs |
| int * | tArray |
| int | tStopWidth |
| int | uDepth |
| QString | oText |
| QPtrList< QTextDocument > | childList |
| QColor | linkColor |
| double | scaleFontsFactor |
| short | list_tm |
| short | list_bm |
| short | list_lm |
| short | li_tm |
| short | li_bm |
| short | par_tm |
| short | par_bm |
Friends | |
| class | QTextTableCell |
| class | QTextCursor |
| class | QTextEdit |
| class | QTextParagraph |
Classes | |
| struct | Focus |
|
|
Definition at line 732 of file qrichtext_p.h. |
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 1799 of file qrichtext_p.h. References align. |
|
|
Definition at line 748 of file qrichtext_p.h. References attributes. |
|
|
|
|
|
Definition at line 900 of file qrichtext_p.h. |
|
|
|
|
|
Definition at line 813 of file qrichtext_p.h. |
|
|
Definition at line 828 of file qrichtext_p.h. |
|
||||||||||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
|
|
|
Definition at line 1686 of file qrichtext_p.h. References fParag. |
|
|
Definition at line 862 of file qrichtext_p.h. |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 1794 of file qrichtext_p.h. References fCollection. |
|
|
Definition at line 1759 of file qrichtext_p.h. References pFormatter. |
|
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
Definition at line 1769 of file qrichtext_p.h. |
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
Definition at line 898 of file qrichtext_p.h. |
|
|
Definition at line 896 of file qrichtext_p.h. |
|
|
|
|
|
Definition at line 906 of file qrichtext_p.h. References FALSE. |
|
|
Definition at line 1779 of file qrichtext_p.h. References selectionText. |
|
|
Definition at line 863 of file qrichtext_p.h. |
|
|
Definition at line 1691 of file qrichtext_p.h. References lParag. |
|
|
Definition at line 1723 of file qrichtext_p.h. References leftmargin. |
|
|
|
|
|
Definition at line 826 of file qrichtext_p.h. |
|
|
Definition at line 1713 of file qrichtext_p.h. References minw. |
|
|
|
|
|
Definition at line 801 of file qrichtext_p.h. |
|
|
Definition at line 1829 of file qrichtext_p.h. References oText, oTextValid, and text(). |
|
|
Definition at line 841 of file qrichtext_p.h. |
|
|
|
|
|
Definition at line 744 of file qrichtext_p.h. |
|
|
Definition at line 745 of file qrichtext_p.h. |
|
||||||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
|
Definition at line 1743 of file qrichtext_p.h. References pProcessor. |
|
|
|
|
||||||||||||
|
|
|
|
Definition at line 899 of file qrichtext_p.h. |
|
|
Definition at line 897 of file qrichtext_p.h. |
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
Definition at line 1733 of file qrichtext_p.h. References rightmargin. |
|
|
|
|
||||||||||||
|
|
|
|
Definition at line 1774 of file qrichtext_p.h. References selectionColors. |
|
||||||||||||||||
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
Definition at line 1804 of file qrichtext_p.h. References align. |
|
|
Definition at line 749 of file qrichtext_p.h. |
|
|
Definition at line 835 of file qrichtext_p.h. |
|
||||||||||||
|
|
|
|
Definition at line 1696 of file qrichtext_p.h. References fParag. |
|
|
Definition at line 1836 of file qrichtext_p.h. References flow_. |
|
||||||||||||||||
|
|
|
|
Definition at line 1753 of file qrichtext_p.h. References pFormatter. |
|
|
Definition at line 1764 of file qrichtext_p.h. |
|
||||||||||||
|
Definition at line 1789 of file qrichtext_p.h. References selectionText. |
|
|
Definition at line 1701 of file qrichtext_p.h. References lParag. |
|
|
Definition at line 1728 of file qrichtext_p.h. References leftmargin. |
|
|
Definition at line 833 of file qrichtext_p.h. |
|
||||||||||||||||
|
|
|
|
Definition at line 864 of file qrichtext_p.h. |
|
|
Definition at line 840 of file qrichtext_p.h. |
|
|
|
|
|
Definition at line 1748 of file qrichtext_p.h. References pProcessor. |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Definition at line 1738 of file qrichtext_p.h. References rightmargin. |
|
||||||||||||
|
Definition at line 1784 of file qrichtext_p.h. References selectionColors. |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
Definition at line 1819 of file qrichtext_p.h. References tArray. |
|
|
Definition at line 871 of file qrichtext_p.h. |
|
|
Definition at line 1824 of file qrichtext_p.h. References tStopWidth. |
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
Definition at line 889 of file qrichtext_p.h. |
|
|
Definition at line 866 of file qrichtext_p.h. |
|
|
Definition at line 1706 of file qrichtext_p.h. References cw, flow_, minw, QTextFlow::setWidth(), and vw. |
|
|
Definition at line 1718 of file qrichtext_p.h. References cy. |
|
|
Definition at line 824 of file qrichtext_p.h. |
|
|
Definition at line 1809 of file qrichtext_p.h. References tArray. |
|
|
Definition at line 870 of file qrichtext_p.h. |
|
|
Definition at line 1814 of file qrichtext_p.h. References tStopWidth. |
|
|
Definition at line 1843 of file qrichtext_p.h. References flow_. |
|
|
|
|
|
Referenced by originalText(), and Qt3::QTextDocument::originalText(). |
|
|
|
|
|
Definition at line 838 of file qrichtext_p.h. |
|
|
|
|
|
Definition at line 890 of file qrichtext_p.h. |
|
||||||||||||
|
|
|
||||||||||||
|
Definition at line 1848 of file qrichtext_p.h. References QTextParagraph::document(), and QInternal::Printer. |
|
|
Definition at line 867 of file qrichtext_p.h. |
|
|
Definition at line 1681 of file qrichtext_p.h. References vw. |
|
|
Definition at line 1676 of file qrichtext_p.h. References cw, flow_, and QTextFlow::width(). |
|
|
|
|
|
Definition at line 1666 of file qrichtext_p.h. References cx. |
|
|
Definition at line 1671 of file qrichtext_p.h. References cy. |
|
|
Definition at line 727 of file qrichtext_p.h. |
|
|
Definition at line 728 of file qrichtext_p.h. |
|
|
Definition at line 729 of file qrichtext_p.h. |
|
|
Definition at line 722 of file qrichtext_p.h. |
|
|
Definition at line 958 of file qrichtext_p.h. Referenced by alignment(), Qt3::QTextDocument::alignment(), setAlignment(), and Qt3::QTextDocument::setAlignment(). |
|
|
Definition at line 979 of file qrichtext_p.h. |
|
|
Definition at line 966 of file qrichtext_p.h. |
|
|
Definition at line 967 of file qrichtext_p.h. |
|
|
Definition at line 984 of file qrichtext_p.h. |
|
|
Definition at line 945 of file qrichtext_p.h. |
|
|
Definition at line 978 of file qrichtext_p.h. |
|
|
Definition at line 973 of file qrichtext_p.h. |
|
|
Definition at line 939 of file qrichtext_p.h. Referenced by setWidth(), Qt3::QTextDocument::setWidth(), width(), and Qt3::QTextDocument::width(). |
|
|
Definition at line 939 of file qrichtext_p.h. Referenced by x(), and Qt3::QTextDocument::x(). |
|
|
Definition at line 939 of file qrichtext_p.h. Referenced by setY(), Qt3::QTextDocument::setY(), y(), and Qt3::QTextDocument::y(). |
|
|
Definition at line 976 of file qrichtext_p.h. |
|
|
Definition at line 948 of file qrichtext_p.h. Referenced by formatCollection(), and Qt3::QTextDocument::formatCollection(). |
|
|
Definition at line 960 of file qrichtext_p.h. Referenced by setFlow(), Qt3::QTextDocument::setFlow(), setWidth(), Qt3::QTextDocument::setWidth(), takeFlow(), Qt3::QTextDocument::takeFlow(), width(), and Qt3::QTextDocument::width(). |
|
|
Definition at line 968 of file qrichtext_p.h. |
|
|
Definition at line 940 of file qrichtext_p.h. Referenced by firstParagraph(), Qt3::QTextDocument::firstParagraph(), setFirstParagraph(), and Qt3::QTextDocument::setFirstParagraph(). |
|
|
Definition at line 947 of file qrichtext_p.h. |
|
|
Definition at line 971 of file qrichtext_p.h. Referenced by leftMargin(), Qt3::QTextDocument::leftMargin(), setLeftMargin(), and Qt3::QTextDocument::setLeftMargin(). |
|
|
Definition at line 988 of file qrichtext_p.h. |
|
|
Definition at line 988 of file qrichtext_p.h. |
|
|
Definition at line 985 of file qrichtext_p.h. |
|
|
Definition at line 988 of file qrichtext_p.h. |
|
|
Definition at line 988 of file qrichtext_p.h. |
|
|
Definition at line 988 of file qrichtext_p.h. |
|
|
Definition at line 940 of file qrichtext_p.h. Referenced by lastParagraph(), Qt3::QTextDocument::lastParagraph(), setLastParagraph(), and Qt3::QTextDocument::setLastParagraph(). |
|
|
Definition at line 957 of file qrichtext_p.h. |
|
|
Definition at line 969 of file qrichtext_p.h. Referenced by minimumWidth(), Qt3::QTextDocument::minimumWidth(), setWidth(), and Qt3::QTextDocument::setWidth(). |
|
|
Definition at line 973 of file qrichtext_p.h. |
|
|
Definition at line 955 of file qrichtext_p.h. |
|
|
Definition at line 959 of file qrichtext_p.h. |
|
|
Definition at line 983 of file qrichtext_p.h. Referenced by originalText(), and Qt3::QTextDocument::originalText(). |
|
|
Definition at line 956 of file qrichtext_p.h. Referenced by originalText(), and Qt3::QTextDocument::originalText(). |
|
|
Definition at line 951 of file qrichtext_p.h. |
|
|
Definition at line 961 of file qrichtext_p.h. |
|
|
Definition at line 988 of file qrichtext_p.h. |
|
|
Definition at line 988 of file qrichtext_p.h. |
|
|
Definition at line 962 of file qrichtext_p.h. |
|
|
Definition at line 946 of file qrichtext_p.h. Referenced by formatter(), Qt3::QTextDocument::formatter(), setFormatter(), and Qt3::QTextDocument::setFormatter(). |
|
|
Definition at line 941 of file qrichtext_p.h. Referenced by preProcessor(), Qt3::QTextDocument::preProcessor(), setPreProcessor(), and Qt3::QTextDocument::setPreProcessor(). |
|
|
Definition at line 950 of file qrichtext_p.h. |
|
|
Definition at line 972 of file qrichtext_p.h. Referenced by rightMargin(), Qt3::QTextDocument::rightMargin(), setRightMargin(), and Qt3::QTextDocument::setRightMargin(). |
|
|
Definition at line 986 of file qrichtext_p.h. |
|
|
Definition at line 942 of file qrichtext_p.h. Referenced by selectionColor(), Qt3::QTextDocument::selectionColor(), setSelectionColor(), and Qt3::QTextDocument::setSelectionColor(). |
|
|
Definition at line 943 of file qrichtext_p.h. |
|
|
Definition at line 944 of file qrichtext_p.h. Referenced by invertSelectionText(), Qt3::QTextDocument::invertSelectionText(), setInvertSelectionText(), and Qt3::QTextDocument::setInvertSelectionText(). |
|
|
Definition at line 974 of file qrichtext_p.h. |
|
|
Definition at line 980 of file qrichtext_p.h. Referenced by setTabArray(), Qt3::QTextDocument::setTabArray(), tabArray(), and Qt3::QTextDocument::tabArray(). |
|
|
Definition at line 964 of file qrichtext_p.h. |
|
|
Definition at line 981 of file qrichtext_p.h. Referenced by setTabStops(), Qt3::QTextDocument::setTabStops(), tabStopWidth(), and Qt3::QTextDocument::tabStopWidth(). |
|
|
Definition at line 949 of file qrichtext_p.h. |
|
|
Definition at line 982 of file qrichtext_p.h. |
|
|
Definition at line 954 of file qrichtext_p.h. |
|
|
Definition at line 952 of file qrichtext_p.h. |
|
|
Definition at line 939 of file qrichtext_p.h. Referenced by setWidth(), Qt3::QTextDocument::setWidth(), visibleWidth(), and Qt3::QTextDocument::visibleWidth(). |
|
|
Definition at line 953 of file qrichtext_p.h. |
|
|
Definition at line 970 of file qrichtext_p.h. |
1.4.2