21#ifndef frame_picture_frame_set_h
22#define frame_picture_frame_set_h
24#include "KWFrameSet.h"
30 KWPictureFrameSet( KWDocument *_doc, const TQString & name );
32 KWPictureFrameSet( KWDocument* doc, const TQDomElement& frame, const TQDomElement& imageTag, KoOasisContext& context );
33 virtual ~KWPictureFrameSet();
35 virtual KWordFrameSetIface* dcopObject();
41 virtual FrameSetType type() const;
43 void setPicture( const KoPicture &picture ) { m_picture = picture; }
44 KoPicture picture() const { return m_picture; }
46 KoPictureKey key() const { return m_picture.getKey(); }
48 void loadPicture( const TQString &fileName );
49 void insertPicture( const KoPicture& picture );
55 void reloadPicture( const KoPictureKey& key );
57 virtual TQDomElement save( TQDomElement &parentElem, bool saveFrames = true );
58 virtual void load( TQDomElement &attributes, bool loadFrames = true );
59 virtual void saveOasis( KoXmlWriter& writer, KoSavingContext& context, bool saveFrames ) const;
61 virtual void drawFrameContents( KWFrame * frame, TQPainter *painter, const TQRect & crect,
62 const TQColorGroup &cg, bool onlyChanged, bool resetChanged,
63 KWFrameSetEdit * edit, KWViewMode *viewMode );
66 virtual void createEmptyRegion( const TQRect &, TQRegion &, KWViewMode * ) { }
69 virtual void printDebug( KWFrame* frame );
72 bool keepAspectRatio() const;
73 void setKeepAspectRatio( bool b );
79 virtual void setProtectContent ( bool ) { };
84 virtual bool protectContent() const { return false; }
87 void loadOasis( const TQDomElement& frame, const TQDomElement& imageTag, KoOasisContext& context );
91 bool m_keepAspectRatio;
Class: KWFrameSet Base type, a frameset holds content as well as frames to show that content.
virtual FrameSetType type() const The type of frameset.
KWFrame * frame(unsigned int _num) const get a frame by number
TQString name() const get/set frameset name. For tables in particular, this must be unique
|