56 virtual int compareItems(TQPtrCollection::Item a, TQPtrCollection::Item b);
75 enum RunAround { RA_NO = 0, RA_BOUNDINGRECT = 1, RA_SKIP = 2 };
96 double runAroundLeft()
const {
return m_runAroundLeft; }
97 double runAroundRight()
const {
return m_runAroundRight; }
98 double runAroundTop()
const {
return m_runAroundTop; }
99 double runAroundBottom()
const {
return m_runAroundBottom; }
101 void setRunAroundGap(
double left,
double right,
double top,
double bottom ) {
102 m_runAroundLeft = left;
103 m_runAroundRight = right;
104 m_runAroundTop = top;
105 m_runAroundBottom = bottom;
108 RunAround runAround()
const {
return m_runAround; }
109 void setRunAround(
RunAround _ra ) { m_runAround = _ra; }
111 RunAroundSide runAroundSide()
const {
return m_runAroundSide; }
112 void setRunAroundSide(
RunAroundSide rs ) { m_runAroundSide = rs; }
118 FrameBehavior frameBehavior()
const {
return m_frameBehavior; }
119 void setFrameBehavior(
FrameBehavior fb ) { m_frameBehavior = fb; }
127 SheetSide sheetSide()
const {
return m_sheetSide; }
128 void setSheetSide(
SheetSide ss ) { m_sheetSide = ss; }
134 void setNewFrameBehavior(
NewFrameBehavior nfb ) { m_newFrameBehavior = nfb; }
139 void setCopy(
bool copy ) { m_bCopy = copy; }
144 void setFrameSet(
KWFrameSet *fs ) { m_frameSet = fs; }
156 int zOrder()
const {
return m_zOrder; }
166 void setFrameStack(
KWFrameList *fl) { m_frameStack = fl; }
171 const KoBorder &rightBorder()
const {
return m_borderRight; }
172 const KoBorder &topBorder()
const {
return m_borderTop; }
173 const KoBorder &bottomBorder()
const {
return m_borderBottom; }
176 void setLeftBorder( KoBorder _brd ) { m_borderLeft = _brd; }
177 void setRightBorder( KoBorder _brd ) { m_borderRight = _brd; }
178 void setTopBorder( KoBorder _brd ) { m_borderTop = _brd; }
179 void setBottomBorder( KoBorder _brd ) { m_borderBottom = _brd; }
201 const KoRect&
rect()
const {
return *
this; }
207 void updateRulerHandles();
209 TQBrush backgroundColor()
const {
return m_backgroundColor; }
210 void setBackgroundColor(
const TQBrush &_color );
211 bool isTransparent()
const {
return m_backgroundColor.style() != TQt::SolidPattern; }
213 KoRect innerRect()
const;
215 double innerWidth()
const;
216 double innerHeight()
const;
224 double internalY()
const {
return m_internalY; }
244 void setFramePadding(
double _left,
double _top,
double right,
double bottom);
249 void copySettings(
KWFrame *frm);
253 void save( TQDomElement &frameElem );
257 void loadCommonOasisProperties( KoOasisContext& context,
KWFrameSet*
frameSet,
const char* typeProperties );
258 void loadBorderProperties( KoStyleStack& styleStack );
260 TQString saveOasisFrameStyle( KoGenStyles& mainStyles )
const;
266 void startOasisFrame( KoXmlWriter &xmlWriter, KoGenStyles& mainStyles,
const TQString& name,
267 const TQString& lastFrameName = TQString() )
const;
268 void saveBorderProperties( KoGenStyle& frameStyle )
const;
269 void saveMarginProperties( KoGenStyle& frameStyle )
const;
270 void saveMarginAttributes( KoXmlWriter &writer )
const;
290 bool frameAtPos(
const TQPoint& nPoint,
bool borderOfFrameOnly=
false )
const;
298 bool drawFootNoteLine()
const {
return m_drawFootNoteLine; }
307 bool m_drawFootNoteLine;
309 double m_runAroundLeft, m_runAroundRight, m_runAroundTop, m_runAroundBottom;
310 double m_paddingLeft, m_paddingRight, m_paddingTop, m_paddingBottom;
311 double m_minFrameHeight;
316 TQBrush m_backgroundColor;
317 KoBorder m_borderLeft, m_borderRight, m_borderTop, m_borderBottom;
Class: KWCanvas This class is responsible for the rendering of the frames to the screen as well as th...
This class calculates and caches a list of frames that are on top or below the KWFrame instance this ...
Class: KWFrameSet Base type, a frameset holds content as well as frames to show that content.
This class represents a single frame.
bool frameAtPos(const TQPoint &nPoint, bool borderOfFrameOnly=false) const
Return if the point is on the frame.
NewFrameBehavior
What happens on new page (create a new frame and reconnect, no followup, make copy)
TQRect outerRect(KWViewMode *viewMode) const
Return the zoomed rectangle for this frame, including the border - for drawing.
double minimumFrameHeight(void) const
KWFrameSet * frameSet() const
Data stucture methods.
double paddingTop() const
get top padding
double paddingBottom() const
get bottom padding
void setPaddingLeft(double b)
set left padding (distance between frame contents and frame border)
void setDrawFootNoteLine(bool b)
Only applicable to frames of the main text frameset.
void setMinimumFrameHeight(double h)
The property minimum frame height is used to make the automatic frame shrinking code stop.
static bool compareFrameZOrder(KWFrame *f1, KWFrame *f2)
This is a method used to sort a list using the STL sorting methods.
virtual ~KWFrame()
Destructor.
void setPaddingRight(double b)
set right padding
FrameBehavior
what should happen when the frame is full
void setZOrder(int z)
The z-order of the frame, relative to the other frames on the same page.
void save(TQDomElement &frameElem)
create XML to describe yourself
RunAround
Runaround types RA_NO = No run around, all text is just printed.
void setPaddingBottom(double b)
set bottom padding
void setInternalY(double y)
The "internal Y" is the offset (in pt) of the real frame showed in this one ("real" means "the last t...
double paddingLeft() const
get left padding
bool isCopy() const
Drawing property: if isCopy, this frame is a copy of the previous frame in the frameset.
double paddingRight() const
get right padding
void setPaddingTop(double b)
set top padding
int pageNumber() const
The page on which this frame is.
const KoBorder & leftBorder() const
All borders can be custom drawn with their own colors etc.
KoRect outerKoRect() const
Return the unzoomed rectangle, including the border, for the frames-on-top list.
void startOasisFrame(KoXmlWriter &xmlWriter, KoGenStyles &mainStyles, const TQString &name, const TQString &lastFrameName=TQString()) const
Write out a draw:frame element and its style.
void load(TQDomElement &frameElem, KWFrameSet *frameSet, int syntaxVersion)
read attributes from XML.
RunAroundSide
Runaround side - only meaningful when RA_BOUNDINGRECT is used.
KoRect runAroundRect() const
Return the rectangle for this frame including the border and the runaround gap.
const KoRect & rect() const
Return the rectangle for this frame.
KWFrame * getCopy()
returns a copy of self
SheetSide
This frame will only be copied to: AnySide, OddSide or EvenSide.
void frameBordersChanged()
Marks a frame to have changed position/borders.
Abstract base class for KWCanvas's view modes.
small utility class representing a sortable (by z-order) list of frames you can use sort() and inSort...