kword
KWViewModePreview Class Reference
#include <KWViewMode.h>
Inheritance diagram for KWViewModePreview:

Detailed Description
A mode for previewing the overall document Pages are organized in a grid (mostly useful when zooming out a lot).
Definition at line 222 of file KWViewMode.h.
Public Member Functions | |
KWViewModePreview (KWDocument *doc, KWCanvas *canvas, bool drawFrameBorders, int _nbPagePerRow) | |
virtual | ~KWViewModePreview () |
virtual QPoint | normalToView (const QPoint &nPoint) |
virtual QPoint | viewToNormal (const QPoint &vPoint) |
virtual QRect | viewPageRect (int pgNum) |
virtual QSize | contentsSize () |
virtual void | drawPageBorders (QPainter *painter, const QRect &crect, const QRegion &emptySpaceRegion) |
virtual void | setPagesPerRow (int _nb) |
virtual int | pagesPerRow () |
virtual const QString | type () const |
int | numRows () const |
int | leftSpacing () |
int | topSpacing () |
Member Function Documentation
QSize KWViewModePreview::contentsSize | ( | ) | [virtual] |
Size of the contents area, in pixels.
Implements KWViewMode.
Definition at line 347 of file KWViewMode.cpp.
int KWViewModePreview::leftSpacing | ( | ) |
Return the spacing between the left border of the canvas and the page.
Definition at line 314 of file KWViewMode.cpp.
QPoint KWViewModePreview::normalToView | ( | const QPoint & | nPoint | ) | [virtual] |
virtual void KWViewModePreview::setPagesPerRow | ( | int | _nb | ) | [inline, virtual] |
Config option for KWViewModePreview (a bit of a hack).
Reimplemented from KWViewMode.
Definition at line 234 of file KWViewMode.h.
int KWViewModePreview::topSpacing | ( | ) |
Return the spacing between the top border of the canvas and the page.
Definition at line 331 of file KWViewMode.cpp.
virtual const QString KWViewModePreview::type | ( | ) | const [inline, virtual] |
Return the name of the viewmode, used for loading/saving.
Implements KWViewMode.
Definition at line 236 of file KWViewMode.h.
QRect KWViewModePreview::viewPageRect | ( | int | pgNum | ) | [virtual] |
Return view coord for page rect.
Avoids rounding problems when doing normalToView(zoomedRect)
Implements KWViewMode.
Definition at line 379 of file KWViewMode.cpp.
QPoint KWViewModePreview::viewToNormal | ( | const QPoint & | vPoint | ) | [virtual] |
The documentation for this class was generated from the following files: