#include <KWViewMode.h>
Public Member Functions | |
| KWViewModePreview (KWDocument *doc, KWCanvas *canvas, bool drawFrameBorders, int _nbPagePerRow) | |
| virtual TQPoint | normalToView (const TQPoint &nPoint) |
| virtual TQPoint | viewToNormal (const TQPoint &vPoint) |
| virtual TQRect | viewPageRect (int pgNum) |
| virtual TQSize | contentsSize () |
| virtual void | drawPageBorders (TQPainter *painter, const TQRect &crect, const TQRegion &emptySpaceRegion) |
| virtual void | setPagesPerRow (int _nb) |
| virtual int | pagesPerRow () |
| virtual const TQString | type () const |
| int | numRows () const |
| int | leftSpacing () |
| int | topSpacing () |
| Public Member Functions inherited from KWViewMode | |
| TQRect | normalToView (const TQRect &nRect) |
| TQRect | viewToNormal (const TQRect &nRect) |
| virtual TQSize | availableSizeForText (KWTextFrameSet *textfs) |
| virtual TQPoint | pageCorner () |
| virtual TQRect | rulerFrameRect () |
| virtual void | setPageLayout (KoRuler *hRuler, KoRuler *vRuler, const KoPageLayout &layout) |
| virtual bool | drawSelections () |
| virtual bool | drawFrameBackground () |
| bool | drawFrameBorders () const |
| void | setDrawFrameBorders (bool b) |
| virtual bool | isFrameSetVisible (const KWFrameSet *) |
| virtual bool | shouldFormatVertically () |
| virtual bool | shouldAdjustMargins () |
| virtual bool | hasFrames () |
| virtual bool | hasPages () |
| virtual bool | isTextModeFrameset (KWFrameSet *) const |
| KWCanvas * | canvas () const |
Additional Inherited Members | |
| Static Public Member Functions inherited from KWViewMode | |
| static KWViewMode * | create (const TQString &viewModeType, KWDocument *doc, KWCanvas *canvas) |
| Protected Member Functions inherited from KWViewMode | |
| KWViewMode (KWDocument *doc, KWCanvas *canvas, bool drawFrameBorders) | |
| void | drawOnePageBorder (TQPainter *painter, const TQRect &crect, const TQRect &pageRect, const TQRegion &emptySpaceRegion) |
| TQRect | drawRightShadow (TQPainter *painter, const TQRect &crect, const TQRect &pageRect, int topOffset) |
| TQRect | drawBottomShadow (TQPainter *painter, const TQRect &crect, const TQRect &pageRect, int leftOffset) |
| Protected Attributes inherited from KWViewMode | |
| KWDocument * | m_doc |
| KWCanvas * | m_canvas |
| bool | m_drawFrameBorders |
| Static Protected Attributes inherited from KWViewMode | |
| static const unsigned short | s_shadowOffset = 3 |
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.
Constructor & Destructor Documentation
◆ KWViewModePreview()
| KWViewModePreview::KWViewModePreview | ( | KWDocument * | doc, |
| KWCanvas * | canvas, | ||
| bool | drawFrameBorders, | ||
| int | _nbPagePerRow ) |
Definition at line 305 of file KWViewMode.cpp.
◆ ~KWViewModePreview()
|
inlinevirtual |
Definition at line 226 of file KWViewMode.h.
Member Function Documentation
◆ contentsSize()
|
virtual |
Size of the contents area, in pixels.
Implements KWViewMode.
Definition at line 345 of file KWViewMode.cpp.
◆ drawPageBorders()
|
virtual |
Implements KWViewMode.
Definition at line 406 of file KWViewMode.cpp.
◆ leftSpacing()
| int KWViewModePreview::leftSpacing | ( | ) |
Return the spacing between the left border of the canvas and the page.
Definition at line 312 of file KWViewMode.cpp.
◆ normalToView()
|
virtual |
◆ numRows()
| int KWViewModePreview::numRows | ( | ) | const |
Definition at line 340 of file KWViewMode.cpp.
◆ pagesPerRow()
|
inlinevirtual |
Reimplemented from KWViewMode.
Definition at line 235 of file KWViewMode.h.
◆ setPagesPerRow()
|
inlinevirtual |
Config option for KWViewModePreview (a bit of a hack).
Reimplemented from KWViewMode.
Definition at line 234 of file KWViewMode.h.
◆ topSpacing()
| int KWViewModePreview::topSpacing | ( | ) |
Return the spacing between the top border of the canvas and the page.
Definition at line 329 of file KWViewMode.cpp.
◆ type()
|
inlinevirtual |
Return the name of the viewmode, used for loading/saving.
Implements KWViewMode.
Definition at line 236 of file KWViewMode.h.
◆ viewPageRect()
|
virtual |
Return view coord for page rect.
Avoids rounding problems when doing normalToView(zoomedRect)
Implements KWViewMode.
Definition at line 377 of file KWViewMode.cpp.
◆ viewToNormal()
|
virtual |
The documentation for this class was generated from the following files:
