kword

KWTextImage Class Reference

#include <KWTextImage.h>

Public Member Functions

 KWTextImage (KWTextDocument *textdoc, const TQString &filename)
virtual Placement placement () const
virtual void resize ()
virtual int widthHint () const
virtual int minimumWidth () const
void setImage (const KoPictureCollection &collection)
KoPicture image () const
virtual void drawCustomItem (TQPainter *p, int x, int y, int wpix, int hpix, int ascentpix, int cx, int cy, int cw, int ch, const TQColorGroup &cg, bool selected, int offset, bool drawingShadow)
virtual void save (TQDomElement &formatElem)
virtual void saveOasis (KoXmlWriter &, KoSavingContext &) const
virtual int typeId () const
void load (TQDomElement &formatElem)
KoPictureKey getKey (void) const

Detailed Description

This class is used by "Insert Picture", i.e.

having an image inline in a paragraph. It is going to be removed from KWord (inline picture frames are so much better), but we might need it in KPresenter !

Definition at line 33 of file KWTextImage.h.

Constructor & Destructor Documentation

◆ KWTextImage()

KWTextImage::KWTextImage ( KWTextDocument * textdoc,
const TQString & filename )

Set filename to load a real file from the disk Otherwise use setImage() - this is what's done on loading.

Definition at line 30 of file KWTextImage.cpp.

◆ ~KWTextImage()

KWTextImage::~KWTextImage ( )
inline

Definition at line 41 of file KWTextImage.h.

Member Function Documentation

◆ drawCustomItem()

void KWTextImage::drawCustomItem ( TQPainter * p,
int x,
int y,
int wpix,
int hpix,
int ascentpix,
int cx,
int cy,
int cw,
int ch,
const TQColorGroup & cg,
bool selected,
int offset,
bool drawingShadow )
virtual

Definition at line 67 of file KWTextImage.cpp.

◆ getKey()

KoPictureKey KWTextImage::getKey ( void ) const

Get the key of the picture.

Definition at line 153 of file KWTextImage.cpp.

◆ image()

KoPicture KWTextImage::image ( ) const
inline

Definition at line 53 of file KWTextImage.h.

◆ load()

void KWTextImage::load ( TQDomElement & formatElem)

Definition at line 113 of file KWTextImage.cpp.

◆ minimumWidth()

virtual int KWTextImage::minimumWidth ( ) const
inlinevirtual

Definition at line 49 of file KWTextImage.h.

◆ placement()

virtual Placement KWTextImage::placement ( ) const
inlinevirtual

Definition at line 46 of file KWTextImage.h.

◆ resize()

void KWTextImage::resize ( )
virtual

Definition at line 51 of file KWTextImage.cpp.

◆ save()

void KWTextImage::save ( TQDomElement & formatElem)
virtual

Definition at line 98 of file KWTextImage.cpp.

◆ saveOasis()

void KWTextImage::saveOasis ( KoXmlWriter & ,
KoSavingContext &  ) const
virtual

Definition at line 158 of file KWTextImage.cpp.

◆ setImage()

void KWTextImage::setImage ( const KoPictureCollection & collection)

Definition at line 42 of file KWTextImage.cpp.

◆ typeId()

virtual int KWTextImage::typeId ( ) const
inlinevirtual

Definition at line 60 of file KWTextImage.h.

◆ widthHint()

virtual int KWTextImage::widthHint ( ) const
inlinevirtual

Definition at line 48 of file KWTextImage.h.


The documentation for this class was generated from the following files: