23#include <tqguardedptr.h>
25#include <tdeparts/part.h>
28#include <koffice_export.h>
48 class PartActivateEvent;
49 class PartSelectEvent;
90 void setDocumentDeleted();
96 bool documentDeleted() const;
124 virtual KoDocument *hitTest( const TQPoint &pos );
144 virtual int leftBorder() const;
148 virtual int rightBorder() const;
152 virtual int topBorder() const;
156 virtual int bottomBorder() const;
168 virtual void setZoom( double zoom );
174 virtual double zoom() const;
182 virtual TQWidget *canvas() const;
191 virtual int canvasXOffset() const;
200 virtual int canvasYOffset() const;
227 void enableAutoScroll();
232 void disableAutoScroll();
237 virtual void paintEverything( TQPainter &painter, const TQRect &rect, bool transparent = false );
255 virtual TQWMatrix matrix() const TDE_DEPRECATED;
263 virtual TQPoint applyViewTransformations( const TQPoint& ) const;
272 virtual TQPoint reverseViewTransformations( const TQPoint& ) const;
277 virtual TQRect applyViewTransformations( const TQRect& ) const;
282 virtual TQRect reverseViewTransformations( const TQRect& ) const;
308 virtual void setupPrinter( KPrinter &printer );
314 virtual void print( KPrinter &printer );
347 void addStatusBarItem( TQWidget * widget, int stretch = 0, bool permanent = false );
352 void removeStatusBarItem( TQWidget * widget );
357 void showAllStatusBarItems( bool show );
370 bool isInOperation() const;
376 virtual void newView();
384 virtual void beginOperation();
392 virtual void endOperation();
398 void slotActionStatusText( const TQString &text );
404 void slotClearStatusText();
412 virtual void customEvent( TQCustomEvent *ev );
428 void activated( bool active );
429 void selected( bool select );
431 void autoScroll( const TQPoint &scrollDistance);
439 void regionInvalidated( const TQRegion ®ion, bool erase );
445#define signals public
456#define signals protected
459 virtual void slotChildActivated( bool a );
461 virtual void slotAutoScroll( );
465 virtual void setupGlobalActions( void );
467 int autoScrollAcceleration( int offset ) const;
482 KoView *parentView() const { return m_parentView; }
483 KoFrame *frame() const { return m_frame; }
485 void setInitialFrameGeometry();
490 void reposition() { slotDocGeometryChanged(); }
493 void slotFrameGeometryChanged();
494 void slotDocGeometryChanged();
497 TQGuardedPtr<KoDocumentChild> m_child;
498 TQGuardedPtr<KoFrame> m_frame;
499 TQGuardedPtr<KoView> m_parentView;
500 class KoViewChildPrivate;
501 KoViewChildPrivate *d;
TDEAction * action(const char *name) const
KoChild is an abstract base class that represents the geometry associated with an embedded document.
Holds an embedded object.
The KOffice document class.
Main window for a KOffice application.
This class represents an active embedded document.
This class is used to display a KoDocument.
void embeddImage(const TQString &filename) Make it possible for plugins to request the embedding of an image into the current document.
virtual void updateReadWrite(bool readwrite)=0 You have to implement this method and disable/enable certain functionality (actions for example) in y...
|