kword
KWViewModeEmbedded Class Reference
#include <KWViewMode.h>

Detailed Description
The 'embedded' view mode (usually a single page, no selections).Definition at line 188 of file KWViewMode.h.
Public Member Functions | |
KWViewModeEmbedded (KWDocument *doc, KWCanvas *canvas) | |
void | setDrawFrameBackground (bool b) |
void | setDrawSelections (bool b) |
virtual QPoint | normalToView (const QPoint &nPoint) |
virtual QPoint | viewToNormal (const QPoint &vPoint) |
virtual QRect | viewPageRect (int pgNum) |
virtual QSize | contentsSize () |
virtual bool | hasPages () |
virtual void | drawPageBorders (QPainter *, const QRect &, const QRegion &) |
virtual bool | drawSelections () |
virtual const QString | type () const |
virtual bool | drawFrameBackground () |
Member Function Documentation
virtual QPoint KWViewModeEmbedded::normalToView | ( | const QPoint & | nPoint | ) | [inline, virtual] |
virtual QPoint KWViewModeEmbedded::viewToNormal | ( | const QPoint & | vPoint | ) | [inline, virtual] |
QRect KWViewModeEmbedded::viewPageRect | ( | int | pgNum | ) | [virtual] |
Return view coord for page rect.
Avoids rounding problems when doing normalToView(zoomedRect)
Implements KWViewMode.
Definition at line 297 of file KWViewMode.cpp.
virtual QSize KWViewModeEmbedded::contentsSize | ( | ) | [inline, virtual] |
Size of the contents area, in pixels.
Implements KWViewMode.
Definition at line 205 of file KWViewMode.h.
virtual bool KWViewModeEmbedded::hasPages | ( | ) | [inline, virtual] |
Does this viewmode know anything about pages?
Reimplemented from KWViewMode.
Definition at line 206 of file KWViewMode.h.
virtual bool KWViewModeEmbedded::drawSelections | ( | ) | [inline, virtual] |
Should selected text be drawn as such?
Reimplemented from KWViewMode.
Definition at line 209 of file KWViewMode.h.
virtual const QString KWViewModeEmbedded::type | ( | ) | const [inline, virtual] |
Return the name of the viewmode, used for loading/saving.
Implements KWViewMode.
Definition at line 211 of file KWViewMode.h.
virtual bool KWViewModeEmbedded::drawFrameBackground | ( | ) | [inline, virtual] |
Should frame background be drawn? Usually yes, but not for embedded docs with transparent=true.
Reimplemented from KWViewMode.
Definition at line 212 of file KWViewMode.h.
The documentation for this class was generated from the following files: