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
QPoint KWViewModePreview::normalToView | ( | const QPoint & | nPoint | ) | [virtual] |
QPoint KWViewModePreview::viewToNormal | ( | const QPoint & | vPoint | ) | [virtual] |
QRect KWViewModePreview::viewPageRect | ( | int | pgNum | ) | [virtual] |
Return view coord for page rect.
Avoids rounding problems when doing normalToView(zoomedRect)
Implements KWViewMode.
Definition at line 377 of file KWViewMode.cpp.
QSize KWViewModePreview::contentsSize | ( | ) | [virtual] |
Size of the contents area, in pixels.
Implements KWViewMode.
Definition at line 345 of file KWViewMode.cpp.
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.
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.
int KWViewModePreview::leftSpacing | ( | ) |
Return the spacing between the left border of the canvas and the page.
Definition at line 312 of file KWViewMode.cpp.
int KWViewModePreview::topSpacing | ( | ) |
Return the spacing between the top border of the canvas and the page.
Definition at line 329 of file KWViewMode.cpp.
The documentation for this class was generated from the following files: