kword
KWPage Class Reference
#include <KWPage.h>
Detailed Description
This class represents a printed page of the document.
Definition at line 30 of file KWPage.h.
Public Types | |
enum | PageSideEnum { Left, Right } |
Public Member Functions | |
void | setWidth (const double &x) |
void | setHeight (const double &y) |
void | setTopMargin (const double &x) |
void | setBottomMargin (const double &y) |
void | setPageEdgeMargin (const double &x) |
void | setMarginClosestBinding (const double &y) |
void | setLeftMargin (const double &l) |
void | setRightMargin (const double &r) |
double | width () const |
double | height () const |
double | topMargin () const |
double | bottomMargin () const |
double | leftMargin () const |
double | rightMargin () const |
double | pageEdgeMargin () const |
double | marginClosestBinding () const |
double | offsetInDocument () const |
PageSideEnum | pageSide () const |
void | setPageSide (PageSideEnum ps) |
int | pageNumber () const |
QRect | zoomedRect (KoZoomHandler *zoomHandler) |
const KoRect | rect () const |
Friends | |
class | KWPageManager |
Member Enumeration Documentation
|
An enum to define if this is a page that is printed to be a left or a right page.
|
Member Function Documentation
|
return the height of the margin at bottom (in pt);
Definition at line 92 of file KWPage.cpp. |
|
return the height of this page (in pt)
Definition at line 44 of file KWPage.cpp. |
|
return the width of the margin at left (in pt);
Definition at line 97 of file KWPage.cpp. |
|
return width of the margin that is the closest to the binding, i.e. right for even pages
Definition at line 122 of file KWPage.cpp. |
|
All Pages are in a document-wide coordinate system that simply puts every page under the next page and keeps the Y coordinate counting throughout the doc. The X coordinate off each page in the document is zero, i.e. aligned to the left. This method returns the offset of this page in the whole document which means it will add the height of all the pages that come before this one. Definition at line 128 of file KWPage.cpp. |
|
return width of the margin that is the closest to the page edge, i.e. left for even pages
Definition at line 117 of file KWPage.cpp. |
|
returns the number of this page as it will be shown to the user.
|
|
Return the pageSide of this page, see the PageSideEnum.
|
|
return a KoRect with the (pt) sizes of this page. Margins are ignored for this function.
Definition at line 137 of file KWPage.cpp. |
|
return the width of the margin at left (in pt);
Definition at line 108 of file KWPage.cpp. |
|
set height of the bottom margin in pt
Definition at line 59 of file KWPage.cpp. |
|
set the height of the page in pt
Definition at line 53 of file KWPage.cpp. |
|
set width of the left margin. Any page should either use valid left and right margins, or valid pageedge/binding ones, setting this one will remove the pageedge/closest-binding ones. Definition at line 72 of file KWPage.cpp. |
|
set width of the margin that is the closest to the binding, i.e. right for even pages. Any page should either use valid left and right margins, or valid pageedge/binding ones, setting this one will remove the left/right ones. Definition at line 67 of file KWPage.cpp. |
|
set width of the margin that is the closest to the page edge, i.e. left for even pages. Any page should either use valid left and right margins, or valid pageedge/binding ones, setting this one will remove the left/right ones. Definition at line 62 of file KWPage.cpp. |
|
set the pageSide of this page, see the PageSideEnum
|
|
set width of the right margin. Any page should either use valid left and right margins, or valid pageedge/binding ones, setting this one will remove the pageedge/closest-binding ones. Definition at line 79 of file KWPage.cpp. |
|
set height of the top margin in pt
Definition at line 56 of file KWPage.cpp. |
|
set the width of the page in pt
Definition at line 50 of file KWPage.cpp. |
|
return the height of the margin at top (in pt);
Definition at line 87 of file KWPage.cpp. |
|
return the width of this page (in pt)
Definition at line 38 of file KWPage.cpp. |
|
return a QRect with the size of this page in pixels.
Definition at line 132 of file KWPage.cpp. |
The documentation for this class was generated from the following files: