KWCanvas.h
128 void insertPictureDirect( const KoPicture& picture, const KoPoint& pos, const TQSize& sz = TQSize() );
192 KWFootNoteVariable::Numbering numberingFootNoteType() const { return m_footEndNote.numberingType;}
195 void setNumberingFootNoteType(KWFootNoteVariable::Numbering _type) { m_footEndNote.numberingType = _type; }
241 void drawPageBorders( TQPainter * painter, const TQRect & crect, const TQRegion & emptySpaceRegion );
414 static InteractionPolicy* createPolicy(KWCanvas *parent, MouseMeaning meaning, KoPoint &point, TQt::ButtonState buttonState, TQt::ButtonState keyState);
479 FrameSelectPolicy(KWCanvas *parent, MouseMeaning meaning, KoPoint &point, TQt::ButtonState state, TQt::ButtonState keyState);
void handleMouseMove(TQt::ButtonState keyState, const KoPoint &point)
Extending classes should implement this method to alter the frames or other data based on the new mou...
Definition KWCanvas.cpp:2326
void finishInteraction()
Override to make final changes to the data on the end of an interaction.
Definition KWCanvas.cpp:2435
KCommand * createCommand()
For interactions that are undo-able this method should be implemented to return such a command.
Definition KWCanvas.cpp:2425
void finishInteraction()
Override to make final changes to the data on the end of an interaction.
Definition KWCanvas.cpp:2300
KCommand * createCommand()
For interactions that are undo-able this method should be implemented to return such a command.
Definition KWCanvas.cpp:2289
void handleMouseMove(TQt::ButtonState keyState, const KoPoint &point)
Extending classes should implement this method to alter the frames or other data based on the new mou...
Definition KWCanvas.cpp:2161
void finishInteraction()
Override to make final changes to the data on the end of an interaction.
Definition KWCanvas.cpp:2490
void handleMouseMove(TQt::ButtonState keyState, const KoPoint &point)
Extending classes should implement this method to alter the frames or other data based on the new mou...
Definition KWCanvas.cpp:2481
KCommand * createCommand()
For interactions that are undo-able this method should be implemented to return such a command.
Definition KWCanvas.cpp:2486
Interaction policy defines the behavior in case the user clicks or drags the mouse.
Definition KWCanvas.h:379
virtual void handleMouseMove(TQt::ButtonState keyState, const KoPoint &point)=0
Extending classes should implement this method to alter the frames or other data based on the new mou...
static InteractionPolicy * createPolicy(KWCanvas *parent, MouseMeaning meaning, KoPoint &point, TQt::ButtonState buttonState, TQt::ButtonState keyState)
This instanciates a new policy object and decides which policy is created based on the params.
Definition KWCanvas.cpp:2064
virtual void finishInteraction()=0
Override to make final changes to the data on the end of an interaction.
InteractionPolicy(KWCanvas *parent, bool doInit=true, bool includeInlineFrames=false)
Constructor.
Definition KWCanvas.cpp:2042
void cancelInteraction()
This method will undo frames based interactions by calling createCommand() and unexecuting that.
Definition KWCanvas.cpp:2113
virtual KCommand * createCommand()=0
For interactions that are undo-able this method should be implemented to return such a command.
Class: KWCanvas This class is responsible for the rendering of the frames to the screen as well as th...
Definition KWCanvas.h:61
virtual void drawContents(TQPainter *p, int cx, int cy, int cw, int ch)
Reimplemented from TQScrollView, to draw the contents of the canvas.
Definition KWCanvas.cpp:256
void viewportResizeEvent(TQResizeEvent *)
We need to repaint if the window is resized.
Definition KWCanvas.cpp:207
int currentTableRow() const
When the cursor is in a table cell, this returns the row.
Definition KWCanvas.cpp:1973
void drawDocument(TQPainter *painter, const TQRect &crect, KWViewMode *viewMode)
The main drawing method.
Definition KWCanvas.cpp:271
void editTextFrameSet(KWFrameSet *fs, KoTextParag *parag, int index)
Starting editing fs if we're not yet doing it.
Definition KWCanvas.cpp:1261
void repaintChanged(KWFrameSet *fs, bool resetChanged)
Only repaint the frameset fs.
Definition KWCanvas.cpp:186
int currentTableCol() const
When the cursor is in a table cell, this returns the column.
Definition KWCanvas.cpp:1986
void drawPageBorders(TQPainter *painter, const TQRect &crect, const TQRegion &emptySpaceRegion)
Draw page borders, but also clear up the space between the frames and the page borders,...
KWTableFrameSet * getCurrentTable() const
The current table (either because one or more cells are selected, or because the cursor is in a table...
Definition KWCanvas.h:162
This object is created to edit a particular frameset in a particular view The view's canvas creates i...
Definition KWFrameSetEdit.h:51
Class: KWFrameSet Base type, a frameset holds content as well as frames to show that content.
Definition KWFrameSet.h:62
Class that knows about all the (visible) frames in the document and will act as a manager between the...
Definition KWFrameViewManager.h:51
an instance of a KWFrameView represents the view in the MVC model of a frame; there can be multiple K...
Definition KWFrameView.h:82
This class implements tables by acting as the manager for the frame(set)s which make up the table cel...
Definition KWTableFrameSet.h:59
Object that is created to edit a Text frame set (KWTextFrameSet).
Definition KWTextFrameSet.h:386
