KWViewMode.h
92 virtual void drawPageBorders( TQPainter * painter, const TQRect & crect, const TQRegion & emptySpaceRegion ) = 0;
145 TQRect drawRightShadow( TQPainter * painter, const TQRect & crect, const TQRect & pageRect, int topOffset );
225 KWViewModePreview( KWDocument * doc, KWCanvas* canvas, bool drawFrameBorders, int _nbPagePerRow );
Class: KWCanvas This class is responsible for the rendering of the frames to the screen as well as th...
Definition KWCanvas.h:61
Class: KWFrameSet Base type, a frameset holds content as well as frames to show that content.
Definition KWFrameSet.h:62
Class: KWTextFrameSet Contains text (KoTextObject) and frames to display that text.
Definition KWTextFrameSet.h:64
The 'embedded' view mode (usually a single page, no selections)
Definition KWViewMode.h:189
virtual TQPoint viewToNormal(const TQPoint &vPoint)
View coord -> normal coord.
Definition KWViewMode.h:203
virtual const TQString type() const
Return the name of the viewmode, used for loading/saving.
Definition KWViewMode.h:211
virtual bool drawFrameBackground()
Should frame background be drawn? Usually yes, but not for embedded docs with transparent=true.
Definition KWViewMode.h:212
virtual TQPoint normalToView(const TQPoint &nPoint)
Normal coord -> view coord.
Definition KWViewMode.h:202
virtual TQPoint viewToNormal(const TQPoint &vPoint)
View coord -> normal coord.
Definition KWViewMode.cpp:209
virtual const TQString type() const
Return the name of the viewmode, used for loading/saving.
Definition KWViewMode.h:167
virtual TQPoint normalToView(const TQPoint &nPoint)
Normal coord -> view coord.
Definition KWViewMode.cpp:197
A mode for previewing the overall document Pages are organized in a grid (mostly useful when zooming ...
Definition KWViewMode.h:223
virtual const TQString type() const
Return the name of the viewmode, used for loading/saving.
Definition KWViewMode.h:236
virtual void setPagesPerRow(int _nb)
Config option for KWViewModePreview (a bit of a hack)
Definition KWViewMode.h:234
int leftSpacing()
Return the spacing between the left border of the canvas and the page.
Definition KWViewMode.cpp:312
int topSpacing()
Return the spacing between the top border of the canvas and the page.
Definition KWViewMode.cpp:329
virtual TQPoint normalToView(const TQPoint &nPoint)
Normal coord -> view coord.
Definition KWViewMode.cpp:354
virtual TQPoint viewToNormal(const TQPoint &vPoint)
View coord -> normal coord.
Definition KWViewMode.cpp:389
The view mode used when printing (pages under one another, no selections)
Definition KWViewMode.h:177
virtual TQRect rulerFrameRect()
The result of this is passed to setFrameStartEnd for both rulers (after adjustement with pageCorner()...
Definition KWViewMode.cpp:569
static KWTextFrameSet * determineTextFrameSet(KWDocument *doc)
Return a text frameset that the user has either selected or is currently editing, returning the main ...
Definition KWViewMode.cpp:462
virtual bool isFrameSetVisible(const KWFrameSet *fs)
Should this frameset be visible in this viewmode? True by default, all are shown.
Definition KWViewMode.cpp:524
virtual TQPoint pageCorner()
"Topleft of current page" - concept used by the rulers.
Definition KWViewMode.h:274
virtual void setPageLayout(KoRuler *hRuler, KoRuler *vRuler, const KoPageLayout &layout)
Called when the page layout is set, or changes.
Definition KWViewMode.cpp:574
virtual TQPoint viewToNormal(const TQPoint &vPoint)
View coord -> normal coord.
Definition KWViewMode.cpp:495
virtual TQPoint normalToView(const TQPoint &nPoint)
Normal coord -> view coord.
Definition KWViewMode.cpp:488
virtual bool shouldAdjustMargins()
Should adjust[LR]Margin() happen (to run the text around frames on top etc.)
Definition KWViewMode.h:281
static const int OFFSET
hardcoded distance from the left side this viewmode starts its rendering
Definition KWViewMode.h:290
virtual TQSize availableSizeForText(KWTextFrameSet *textfs)
Size (in pixels) of the total area available for text in a given textframeset This is used by KWTextF...
Definition KWViewMode.cpp:519
virtual const TQString type() const
Return the name of the viewmode, used for loading/saving.
Definition KWViewMode.h:279
virtual bool shouldFormatVertically()
Should formatVertically() happen (to skip frame bottom, frames on top, etc.)
Definition KWViewMode.h:280
virtual bool isTextModeFrameset(KWFrameSet *fs) const
Answers the question if argument frameset has to be drawn as a text-mode text area if true,...
Definition KWViewMode.cpp:594
virtual void setPagesPerRow(int)
Config option for KWViewModePreview (a bit of a hack)
Definition KWViewMode.h:95
virtual void setPageLayout(KoRuler *hRuler, KoRuler *vRuler, const KoPageLayout &layout)
Called when the page layout is set, or changes.
Definition KWViewMode.cpp:147
virtual bool isTextModeFrameset(KWFrameSet *) const
Answers the question if argument frameset has to be drawn as a text-mode text area if true,...
Definition KWViewMode.h:129
virtual TQRect rulerFrameRect()
The result of this is passed to setFrameStartEnd for both rulers (after adjustement with pageCorner()...
Definition KWViewMode.cpp:115
virtual TQPoint pageCorner()
"Topleft of current page" - concept used by the rulers.
Definition KWViewMode.cpp:92
virtual TQSize availableSizeForText(KWTextFrameSet *textfs)
Size (in pixels) of the total area available for text in a given textframeset This is used by KWTextF...
Definition KWViewMode.cpp:37
virtual TQPoint normalToView(const TQPoint &nPoint)=0
Normal coord -> view coord.
virtual bool shouldFormatVertically()
Should formatVertically() happen (to skip frame bottom, frames on top, etc.)
Definition KWViewMode.h:113
virtual bool shouldAdjustMargins()
Should adjust[LR]Margin() happen (to run the text around frames on top etc.)
Definition KWViewMode.h:116
bool drawFrameBorders() const
Should we see frame borders? This setting doesn't always come from KWView...
Definition KWViewMode.h:105
virtual TQPoint viewToNormal(const TQPoint &vPoint)=0
View coord -> normal coord.
virtual bool drawFrameBackground()
Should frame background be drawn? Usually yes, but not for embedded docs with transparent=true.
Definition KWViewMode.h:102
virtual bool isFrameSetVisible(const KWFrameSet *)
Should this frameset be visible in this viewmode? True by default, all are shown.
Definition KWViewMode.h:109
void drawOnePageBorder(TQPainter *painter, const TQRect &crect, const TQRect &pageRect, const TQRegion &emptySpaceRegion)
Draw the border around one page, and clear up the empty space in that page.
Definition KWViewMode.cpp:44
virtual const TQString type() const =0
Return the name of the viewmode, used for loading/saving.
