KWFrame Class Reference
This class represents a single frame.
More...
#include <KWFrame.h>
List of all members.
Detailed Description
This class represents a single frame.
A frame belongs to a frameset which states its contents. A frame does NOT have contents, the frameset stores that. A frame is really just a shape that is used to place the content of a frameset.
Definition at line 42 of file KWFrame.h.
Constructor & Destructor Documentation
| KWFrame::KWFrame |
( |
KoShape * |
shape, |
|
|
KWFrameSet * |
parent, |
|
|
int |
pageNumber = -1 | |
|
) |
| | |
Constructor.
- Parameters:
-
| shape | the shape that displays the content, containing size/position |
| parent | the parent frameset |
| pageNumber | the page number is normally -1, only set when loading page anchored frames to the page where the frame should be positioned |
Definition at line 29 of file KWFrame.cpp.
| KWFrame::~KWFrame |
( |
|
) |
[virtual] |
Member Function Documentation
| void KWFrame::attachAnchor |
( |
KoTextAnchor * |
anchor |
) |
|
| void KWFrame::clearLoadingData |
( |
|
) |
[inline] |
| void KWFrame::copySettings |
( |
const KWFrame * |
frame |
) |
[virtual] |
Copy all the settings from the parameter frame and apply them to this frame.
- Parameters:
-
| frame | the frame to use as original |
Definition at line 74 of file KWFrame.cpp.
This property what should happen when the frame is full.
Definition at line 58 of file KWFrame.h.
| bool KWFrame::frameOnBothSheets |
( |
|
) |
const [inline] |
For frame duplication policy on new page creation.
Determines if this frame will be copied on even or odd pages only.
Definition at line 73 of file KWFrame.h.
Return the parent frameset.
- Returns:
- the parent frameset
Definition at line 158 of file KWFrame.h.
| KoTextAnchor * KWFrame::getAnchor |
( |
|
) |
|
| bool KWFrame::isCopy |
( |
|
) |
const |
States if this frame is a copy of the previous one.
If this frame is a copy, then this frame is drawn with the same content as the previous frame in this frameset.
- Returns:
- true if this is a copy
Definition at line 107 of file KWFrame.cpp.
| int KWFrame::loadingPageNumber |
( |
|
) |
const [inline] |
For frame duplication policy on new page creation.
Definition at line 88 of file KWFrame.h.
| qreal KWFrame::runAroundDistance |
( |
|
) |
const [inline] |
The space between this frames edge and the text when that text runs around this frame.
- Returns:
- the space around this frame to keep free from text
Definition at line 135 of file KWFrame.h.
Return the side around text from another (text)frame should flow.
Definition at line 103 of file KWFrame.h.
| void KWFrame::saveOdf |
( |
KoShapeSavingContext & |
context |
) |
|
Save the frame as ODF.
- Parameters:
-
| context | the context for saving. |
Definition at line 86 of file KWFrame.cpp.
Set what should happen when the frame is full.
- Parameters:
-
Definition at line 65 of file KWFrame.h.
| void KWFrame::setFrameOnBothSheets |
( |
bool |
both |
) |
[inline] |
Determines if this frame will be copied on even or odd pages only.
Altering this does not change the frames placed until a new page is created.
- Parameters:
-
| both | if true this frame will be copied to every page, if false only every other page |
Definition at line 81 of file KWFrame.h.
| void KWFrame::setFrameSet |
( |
KWFrameSet * |
newFrameSet |
) |
[virtual] |
Set the frameset this frame will work on.
Altering the frameset requires you to remove this frame on the old and add the frame on the new frameset
- Parameters:
-
| newFrameSet | the new frameset |
Definition at line 63 of file KWFrame.cpp.
For frame duplication policy on new page creation.
Altering this does not change the frames placed until a new page is created.
- Parameters:
-
Definition at line 96 of file KWFrame.h.
| void KWFrame::setRunAroundDistance |
( |
qreal |
distance |
) |
[inline] |
Set the space between this frames edge and the text when that text runs around this frame.
- Parameters:
-
| distance | the space around this frame to keep free from text |
Definition at line 142 of file KWFrame.h.
Set the side around text from another (text)frame should flow.
- Parameters:
-
Definition at line 110 of file KWFrame.h.
| void KWFrame::setShape |
( |
KoShape * |
shape |
) |
[protected] |
replace the current set shape with the argument one.
Definition at line 96 of file KWFrame.cpp.
Set the text runaround property for this frame.
This property specifies how text from another textframe will behave when this frame intersects with it.
Definition at line 127 of file KWFrame.h.
| KoShape* KWFrame::shape |
( |
|
) |
const [inline] |
Each frame will be rendered by a shape which also holds the position etc.
- Returns:
- the shape that represents this frame.
Definition at line 150 of file KWFrame.h.
Return the text runaround property for this frame.
This property specifies how text from another textframe will behave when this frame intersects with it.
Definition at line 119 of file KWFrame.h.
The documentation for this class was generated from the following files: