summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-write/qtextedit.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-write/qtextedit.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-write/qtextedit.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/noncore/apps/opie-write/qtextedit.h b/noncore/apps/opie-write/qtextedit.h
index b4e5701..64e8f45 100644
--- a/noncore/apps/opie-write/qtextedit.h
+++ b/noncore/apps/opie-write/qtextedit.h
@@ -63,5 +63,7 @@ class QTextCursor;
class QTextCommand;
-class QTextParag;
+class QTextParagraph;
class QTextFormat;
+class QTextEdit;
class QTextBrowser;
+class QTextString;
class QTextEditPrivate;
@@ -198,3 +200,6 @@ public:
int undoDepth() const;
+
+ // do not use, will go away
virtual bool getFormat( int para, int index, QFont *font, QColor *color, VerticalAlignment *verticalAlignment );
+ // do not use, will go away
virtual bool getParagraphFormat( int para, QFont *font, QColor *color,
@@ -204,2 +209,4 @@ public:
int *listDepth );
+
+
bool isOverwriteMode() const { return overWrite; }
@@ -259,3 +266,6 @@ public slots:
virtual void setAlignment( int a );
+
+ // do not use, will go away
virtual void setParagType( QStyleSheetItem::DisplayMode dm, QStyleSheetItem::ListStyle listStyle );
+
virtual void setCursorPosition( int parag, int index );
@@ -348,3 +358,3 @@ private:
struct Q_EXPORT UndoRedoInfo {
- enum Type { Invalid, Insert, Delete, Backspace, Return, RemoveSelected, Format, Alignment, ParagType };
+ enum Type { Invalid, Insert, Delete, Backspace, Return, RemoveSelected, Format, Style };
@@ -364,8 +374,3 @@ private:
QTextDocument *doc;
- QMemArray<int> oldAligns;
- int newAlign;
- bool list;
- QStyleSheetItem::ListStyle listStyle;
- QValueList< QPtrVector<QStyleSheetItem> > oldStyles;
- QValueList<QStyleSheetItem::ListStyle> oldListStyles;
+ QByteArray styleInformation;
};
@@ -381,3 +386,3 @@ private:
bool handleReadOnlyKeyEvent( QKeyEvent *e );
- void makeParagVisible( QTextParag *p );
+ void makeParagVisible( QTextParagraph *p );
#ifndef QT_NO_MIME
@@ -393,3 +398,3 @@ private:
- void readFormats( QTextCursor &c1, QTextCursor &c2, int oldLen, QTextString &text, bool fillStyles = FALSE );
+ void readFormats( QTextCursor &c1, QTextCursor &c2, QTextString &text, bool fillStyles = FALSE );
void clearUndoRedo();
@@ -397,4 +402,5 @@ private:
void moveCursor( CursorAction action );
- void ensureFormatted( QTextParag *p );
+ void ensureFormatted( QTextParagraph *p );
void placeCursor( const QPoint &pos, QTextCursor *c, bool link );
+ void updateMicroFocusHint();
@@ -404,3 +410,3 @@ private:
QTimer *formatTimer, *scrollTimer, *changeIntervalTimer, *blinkTimer, *dragStartTimer;
- QTextParag *lastFormatted;
+ QTextParagraph *lastFormatted;
int interval;