28#include "kformuladefs.h"
29#include "contextstyle.h"
33KFORMULA_NAMESPACE_BEGIN
50class KOFORMULA_EXPORT View : public TQObject {
62 TQPoint getCursorPoint() const;
67 void setReadOnly( bool ro);
69 void mousePressEvent(TQMouseEvent* event);
70 void mouseReleaseEvent(TQMouseEvent* event);
71 void mouseDoubleClickEvent(TQMouseEvent* event);
72 void mouseMoveEvent(TQMouseEvent* event);
73 void wheelEvent(TQWheelEvent* event);
76 void mousePressEvent( TQMouseEvent* event, const PtPoint& pos );
77 void mouseReleaseEvent( TQMouseEvent* event, const PtPoint& pos );
78 void mouseDoubleClickEvent( TQMouseEvent* event, const PtPoint& pos );
79 void mouseMoveEvent( TQMouseEvent* event, const PtPoint& pos );
80 void wheelEvent( TQWheelEvent* event, const PtPoint& pos );
83 void mousePressEvent( TQMouseEvent* event, const LuPixelPoint& pos );
84 void mouseReleaseEvent( TQMouseEvent* event, const LuPixelPoint& pos );
85 void mouseDoubleClickEvent( TQMouseEvent* event, const LuPixelPoint& pos );
86 void mouseMoveEvent( TQMouseEvent* event, const LuPixelPoint& pos );
87 void wheelEvent( TQWheelEvent* event, const LuPixelPoint& pos );
89 void keyPressEvent(TQKeyEvent* event);
90 virtual void focusInEvent(TQFocusEvent* event);
91 virtual void focusOutEvent(TQFocusEvent* event);
95 void draw(TQPainter& painter, const TQRect& rect, const TQColorGroup& cg);
96 void draw(TQPainter& painter, const TQRect& rect);
108 void setSmallCursor( bool small);
112 void moveLeft( int flag = NormalMovement );
113 void moveRight( int flag = NormalMovement );
114 void moveUp( int flag = NormalMovement );
115 void moveDown( int flag = NormalMovement );
117 void moveHome( int flag = NormalMovement );
118 void moveEnd( int flag = NormalMovement );
126 void eraseSelection( Direction direction = beforeCursor );
127 void addText( TQString str );
138 void slotSelectAll();
162 void slotBlinkCursor();
166 virtual bool cursorVisible();
173 void emitCursorChanged();
175 bool& cursorHasChanged();
177 bool& activeCursor();
179 void startCursorTimer();
180 void stopCursorTimer();
188KFORMULA_NAMESPACE_END
Basis of every formula element.
Contains all the style information for the formela.
A point whose coordinates are floating-point values ( "double"s ).
The view that shows the formula.
void cursorChanged(bool visible, bool selecting) Is emitted every time the cursor might have changed.
FormulaCursor * getCursor() const Our cursor.
virtual Container * getDocument() const The document we show.
|