lib Library API Documentation

kotextcustomitem.h

00001 // -*- c++ -*-
00002 // File included by korichtext.h to add our own methods to KoTextCustomItem
00003 
00011 public:
00013     KoTextDocument * textDocument() const { return parent; }
00014 
00018     virtual void setDeleted( bool b ) { m_deleted = b; }
00019 
00020     bool isDeleted() const { return m_deleted; }
00021 
00027     virtual KCommand * createCommand() { return 0L; }
00028     virtual KCommand * deleteCommand() { return 0L; }
00029 
00031     virtual void save( QDomElement & /*formatElem*/ ) = 0;
00033     virtual int typeId() const = 0;
00034 
00037     virtual void resize() {}
00038 
00043     virtual void recalc() { resize(); }
00044 
00047     int index() const;
00048 
00051     KoTextFormat * format() const;
00052 
00056     virtual void drawCustomItem(QPainter* p, int x, int y, int wpix, int hpix, int ascentpix, int cx, int cy, int cw, int ch, const QColorGroup& cg, bool selected, int offset,  bool drawingShadow) = 0;
00057 
00058 protected:
00059     bool m_deleted;
00060 
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Mar 20 14:25:27 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003