24#include <tqscrollview.h>
25#include <koffice_export.h>
34class KARBONCOMMON_EXPORT VCanvas : public TQScrollView
39 VCanvas( TQWidget *parent, KarbonView* view, KarbonPart* part );
42 void repaintAll( const KoRect & );
43 void repaintAll( bool drawVObjects = true );
45 TQPixmap *pixmap() { return m_pixmap; }
50 void setPos( const KoPoint& p );
52 KoPoint toViewport( const KoPoint & ) const;
53 KoPoint toContents( const KoPoint & ) const;
54 KoRect boundingBox() const;
62 void setViewport( double centerX, double centerY );
68 void setViewportRect( const KoRect &rect );
70 int pageOffsetX() const;
71 int pageOffsetY() const;
73 KoPoint snapToGrid( const KoPoint & );
76 virtual void dragEnterEvent( TQDragEnterEvent * );
77 virtual void dropEvent( TQDropEvent * );
78 virtual void focusInEvent( TQFocusEvent * );
79 virtual void viewportPaintEvent( TQPaintEvent* );
80 virtual void drawContents( TQPainter* painter, int clipx, int clipy,
81 int clipw, int cliph );
82 void drawDocument( TQPainter* painter, const KoRect& rect, bool drawVObjects = true );
84 virtual void resizeEvent( TQResizeEvent* event );
86 virtual bool eventFilter( TQObject* object, TQEvent* event );
88 void setYMirroring( VPainter * );
91 void slotContentsMoving( int , int );
94 void viewportChanged();
Keeps track of visual per document properties.
|