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
|
Size of the contents area, in pixels.
Implements KWViewMode. Definition at line 347 of file KWViewMode.cpp. |
|
Return the spacing between the left border of the canvas and the page.
Definition at line 314 of file KWViewMode.cpp. |
|
Normal coord -> view coord.
Implements KWViewMode. Definition at line 356 of file KWViewMode.cpp. |
|
Config option for KWViewModePreview (a bit of a hack).
Reimplemented from KWViewMode. Definition at line 234 of file KWViewMode.h. |
|
Return the spacing between the top border of the canvas and the page.
Definition at line 331 of file KWViewMode.cpp. |
|
Return the name of the viewmode, used for loading/saving.
Implements KWViewMode. Definition at line 236 of file KWViewMode.h. |
|
Return view coord for page rect. Avoids rounding problems when doing normalToView(zoomedRect) Implements KWViewMode. Definition at line 379 of file KWViewMode.cpp. |
|
View coord -> normal coord.
Implements KWViewMode. Definition at line 391 of file KWViewMode.cpp. |
The documentation for this class was generated from the following files: