#include <KWViewMode.h>
Public Member Functions | |
| KWViewModeEmbedded (KWDocument *doc, KWCanvas *canvas) | |
| void | setDrawFrameBackground (bool b) |
| void | setDrawSelections (bool b) |
| virtual TQPoint | normalToView (const TQPoint &nPoint) |
| virtual TQPoint | viewToNormal (const TQPoint &vPoint) |
| virtual TQRect | viewPageRect (int pgNum) |
| virtual TQSize | contentsSize () |
| virtual bool | hasPages () |
| virtual void | drawPageBorders (TQPainter *, const TQRect &, const TQRegion &) |
| virtual bool | drawSelections () |
| virtual const TQString | type () const |
| virtual bool | drawFrameBackground () |
| 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 void | setPagesPerRow (int) |
| virtual int | pagesPerRow () |
| bool | drawFrameBorders () const |
| void | setDrawFrameBorders (bool b) |
| virtual bool | isFrameSetVisible (const KWFrameSet *) |
| virtual bool | shouldFormatVertically () |
| virtual bool | shouldAdjustMargins () |
| virtual bool | hasFrames () |
| 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
The 'embedded' view mode (usually a single page, no selections).
Definition at line 188 of file KWViewMode.h.
Constructor & Destructor Documentation
◆ KWViewModeEmbedded()
|
inline |
Definition at line 191 of file KWViewMode.h.
◆ ~KWViewModeEmbedded()
|
inlinevirtual |
Definition at line 196 of file KWViewMode.h.
Member Function Documentation
◆ contentsSize()
|
inlinevirtual |
Size of the contents area, in pixels.
Implements KWViewMode.
Definition at line 205 of file KWViewMode.h.
◆ drawFrameBackground()
|
inlinevirtual |
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.
◆ drawPageBorders()
|
inlinevirtual |
Implements KWViewMode.
Definition at line 208 of file KWViewMode.h.
◆ drawSelections()
|
inlinevirtual |
Should selected text be drawn as such?
Reimplemented from KWViewMode.
Definition at line 209 of file KWViewMode.h.
◆ hasPages()
|
inlinevirtual |
Does this viewmode know anything about pages?
Reimplemented from KWViewMode.
Definition at line 206 of file KWViewMode.h.
◆ normalToView()
|
inlinevirtual |
◆ setDrawFrameBackground()
|
inline |
Definition at line 198 of file KWViewMode.h.
◆ setDrawSelections()
|
inline |
Definition at line 199 of file KWViewMode.h.
◆ type()
|
inlinevirtual |
Return the name of the viewmode, used for loading/saving.
Implements KWViewMode.
Definition at line 211 of file KWViewMode.h.
◆ viewPageRect()
|
virtual |
Return view coord for page rect.
Avoids rounding problems when doing normalToView(zoomedRect)
Implements KWViewMode.
Definition at line 297 of file KWViewMode.cpp.
◆ viewToNormal()
|
inlinevirtual |
The documentation for this class was generated from the following files:
