#include <KWCanvas.h>
|
| enum | MouseMode {
MM_EDIT = 0
, MM_CREATE_TEXT = 2
, MM_CREATE_PIX = 3
, MM_CREATE_TABLE = 5
,
MM_CREATE_FORMULA = 6
, MM_CREATE_PART = 7
} |
|
|
void | currentFrameSetEditChanged () |
|
void | selectionChanged (bool hasSelection) |
|
void | currentMouseModeChanged (int newMouseMode) |
|
void | frameSelectedChanged () |
|
void | docStructChanged (int _type) |
|
void | overwriteModeChanged (bool m_overwriteMode) |
|
void | viewTransformationsChanged () |
|
void | updateRuler () |
|
| | KWCanvas (const TQString &viewMode, TQWidget *parent, KWDocument *d, KWGUI *lGui) |
| KWDocument * | kWordDocument () const |
| KWGUI * | gui () const |
| KWFrameViewManager * | frameViewManager () |
| KWFrameSetEdit * | currentFrameSetEdit () const |
| void | switchViewMode (const TQString &newViewMode) |
| KWViewMode * | viewMode () const |
| void | repaintAll (bool erase=false) |
| void | repaintChanged (KWFrameSet *fs, bool resetChanged) |
| void | viewportResizeEvent (TQResizeEvent *) |
| void | print (TQPainter *painter, KPrinter *printer) |
| bool | eventFilter (TQObject *o, TQEvent *e) |
| bool | focusNextPrevChild (bool next) |
| void | setFrameBackgroundColor (const TQBrush &backColor) |
| void | editFrameProperties () |
| void | editFrameProperties (KWFrameSet *frameset) |
|
void | pasteFrames () |
| void | mpCreate (const TQPoint &normalPoint, bool noGrid) |
| void | mpCreatePixmap (const TQPoint &normalPoint, bool noGrid) |
| void | mmCreate (const TQPoint &normalPoint, bool noGrid) |
| void | mrEditFrame () |
| void | mrCreateText () |
| void | mrCreatePixmap () |
| void | mrCreatePart () |
| void | mrCreateFormula () |
| void | mrCreateTable () |
| void | setMouseMode (MouseMode _mm) |
| MouseMode | mouseMode () const |
| void | insertPicture (const KoPicture &newPicture, TQSize pixmapSize, bool _keepRatio) |
| void | insertPart (const KoDocumentEntry &entry) |
| void | pasteImage (TQMimeSource *e, const KoPoint &docPoint) |
| void | insertPictureDirect (const KoPicture &picture, const KoPoint &pos, const TQSize &sz=TQSize()) |
| void | updateCurrentFormat () |
|
void | updateFrameFormat () |
| unsigned int | tableRows () const |
| void | setTableRows (unsigned int rows) |
| unsigned int | tableCols () const |
| void | setTableCols (unsigned int cols) |
| int | tableWidthMode () const |
| int | tableHeightMode () const |
| bool | tableIsFloating () const |
| int | tableFormat () const |
| void | setTableFormat (int _nb) |
| TQString | tableTemplateName () const |
| void | setTableTemplateName (const TQString &_name) |
| void | setPictureInline (bool _inline) |
| bool | pictureInline () const |
| void | setPictureKeepRatio (bool _keep) |
| bool | pictureKeepRatio () const |
| void | createTable (unsigned int rows, unsigned int cols, int wid, int hei, bool isFloating, KWTableTemplate *tt=0L, int format=31) |
| KWTableFrameSet * | getCurrentTable () const |
| int | currentTableRow () const |
| int | currentTableCol () const |
| void | scrollToOffset (const KoPoint &dPoint) |
| void | dragStarted () |
| void | setXimPosition (int x, int y, int w, int h) |
| void | updateRulerOffsets (int cx=-1, int cy=-1) |
| void | inlinePictureStarted () |
| void | ensureCursorVisible () |
| void | editFrameSet (KWFrameSet *frameSet, bool onlyText=false) |
| void | editTextFrameSet (KWFrameSet *fs, KoTextParag *parag, int index) |
| bool | checkCurrentEdit (KWFrameSet *fs, bool onlyText=false) |
| NoteType | footNoteType () const |
| KWFootNoteVariable::Numbering | numberingFootNoteType () const |
| void | setFootNoteType (NoteType _type) |
| void | setNumberingFootNoteType (KWFootNoteVariable::Numbering _type) |
| void | tableSelectCell (KWTableFrameSet *table, KWFrameSet *cell) |
| void | selectAllFrames (bool select) |
| KCommand * | createTextBox (const KoRect &rect) |
| void | viewportScroll (bool up) |
| void | resetStatusBarText () |
| KoPoint | caretPos () |
| void | applyGrid (KoPoint &p) |
| bool | overwriteMode () const |
| KWTextFrameSetEdit * | currentTextEdit () const |
| bool | insertInlinePicture () |
Class: KWCanvas This class is responsible for the rendering of the frames to the screen as well as the interaction with the user via mouse and keyboard.
There is one per view.
Definition at line 60 of file KWCanvas.h.
◆ MouseMode
◆ KWCanvas()
| KWCanvas::KWCanvas |
( |
const TQString & | viewMode, |
|
|
TQWidget * | parent, |
|
|
KWDocument * | d, |
|
|
KWGUI * | lGui ) |
◆ ~KWCanvas()
◆ applyGrid()
| void KWCanvas::applyGrid |
( |
KoPoint & | p | ) |
|
◆ caretPos()
| KoPoint KWCanvas::caretPos |
( |
| ) |
|
Returns the caret position in document coordinates.
The current frame must be editable, i.e., a caret is possible.
Definition at line 2019 of file KWCanvas.cpp.
◆ checkCurrentEdit()
| bool KWCanvas::checkCurrentEdit |
( |
KWFrameSet * | fs, |
|
|
bool | onlyText = false ) |
◆ contentsDragEnterEvent()
| void KWCanvas::contentsDragEnterEvent |
( |
TQDragEnterEvent * | e | ) |
|
|
protectedvirtual |
◆ contentsDragLeaveEvent()
| void KWCanvas::contentsDragLeaveEvent |
( |
TQDragLeaveEvent * | e | ) |
|
|
protectedvirtual |
◆ contentsDragMoveEvent()
| void KWCanvas::contentsDragMoveEvent |
( |
TQDragMoveEvent * | e | ) |
|
|
protectedvirtual |
◆ contentsDropEvent()
| void KWCanvas::contentsDropEvent |
( |
TQDropEvent * | e | ) |
|
|
protectedvirtual |
◆ contentsMouseDoubleClickEvent()
| void KWCanvas::contentsMouseDoubleClickEvent |
( |
TQMouseEvent * | e | ) |
|
|
protectedvirtual |
◆ contentsMouseMoveEvent()
| void KWCanvas::contentsMouseMoveEvent |
( |
TQMouseEvent * | e | ) |
|
|
protectedvirtual |
◆ contentsMousePressEvent()
| void KWCanvas::contentsMousePressEvent |
( |
TQMouseEvent * | e | ) |
|
|
protectedvirtual |
◆ contentsMouseReleaseEvent()
| void KWCanvas::contentsMouseReleaseEvent |
( |
TQMouseEvent * | e | ) |
|
|
protectedvirtual |
◆ createTable() [1/2]
◆ createTable() [2/2]
| void KWCanvas::createTable |
( |
unsigned int | rows, |
|
|
unsigned int | cols, |
|
|
int | wid, |
|
|
int | hei, |
|
|
bool | isFloating, |
|
|
KWTableTemplate * | tt = 0L, |
|
|
int | format = 31 ) |
◆ createTextBox()
| KCommand * KWCanvas::createTextBox |
( |
const KoRect & | rect | ) |
|
◆ currentFrameSetEdit()
◆ currentTableCol()
| int KWCanvas::currentTableCol |
( |
| ) |
const |
When the cursor is in a table cell, this returns the column.
Definition at line 1986 of file KWCanvas.cpp.
◆ currentTableRow()
| int KWCanvas::currentTableRow |
( |
| ) |
const |
When the cursor is in a table cell, this returns the row.
Definition at line 1973 of file KWCanvas.cpp.
◆ currentTextEdit()
◆ dragStarted()
| void KWCanvas::dragStarted |
( |
| ) |
|
|
inline |
◆ drawContents()
| void KWCanvas::drawContents |
( |
TQPainter * | p, |
|
|
int | cx, |
|
|
int | cy, |
|
|
int | cw, |
|
|
int | ch ) |
|
protectedvirtual |
Reimplemented from TQScrollView, to draw the contents of the canvas.
Definition at line 256 of file KWCanvas.cpp.
◆ drawDocument()
| void KWCanvas::drawDocument |
( |
TQPainter * | painter, |
|
|
const TQRect & | crect, |
|
|
KWViewMode * | viewMode ) |
|
protected |
The main drawing method.
- Parameters
-
| painter | guess |
| crect | the area to be repainted, in contents coordinates |
| viewMode | the view mode to be used (usually m_viewMode, except when printing) |
Definition at line 271 of file KWCanvas.cpp.
◆ drawGrid()
| void KWCanvas::drawGrid |
( |
TQPainter & | p, |
|
|
const TQRect & | rect ) |
|
protected |
◆ drawPageBorders()
| void KWCanvas::drawPageBorders |
( |
TQPainter * | painter, |
|
|
const TQRect & | crect, |
|
|
const TQRegion & | emptySpaceRegion ) |
|
protected |
Draw page borders, but also clear up the space between the frames and the page borders, draw the page shadow, and the gray area.
◆ editFrameProperties() [1/2]
| void KWCanvas::editFrameProperties |
( |
| ) |
|
◆ editFrameProperties() [2/2]
| void KWCanvas::editFrameProperties |
( |
KWFrameSet * | frameset | ) |
|
◆ editFrameSet()
| void KWCanvas::editFrameSet |
( |
KWFrameSet * | frameSet, |
|
|
bool | onlyText = false ) |
◆ editTextFrameSet()
| void KWCanvas::editTextFrameSet |
( |
KWFrameSet * | fs, |
|
|
KoTextParag * | parag, |
|
|
int | index ) |
Starting editing fs if we're not yet doing it.
In all cases, position the cursor at parag and index.
Definition at line 1261 of file KWCanvas.cpp.
◆ ensureCursorVisible()
| void KWCanvas::ensureCursorVisible |
( |
| ) |
|
◆ eventFilter()
| bool KWCanvas::eventFilter |
( |
TQObject * | o, |
|
|
TQEvent * | e ) |
◆ focusNextPrevChild()
| bool KWCanvas::focusNextPrevChild |
( |
bool | next | ) |
|
◆ footNoteType()
| NoteType KWCanvas::footNoteType |
( |
| ) |
const |
|
inline |
◆ frameViewManager()
◆ getCurrentTable()
The current table (either because one or more cells are selected, or because the cursor is in a table cell.
Definition at line 162 of file KWCanvas.h.
◆ gui()
| KWGUI * KWCanvas::gui |
( |
| ) |
const |
|
inline |
◆ inlinePictureStarted()
| void KWCanvas::inlinePictureStarted |
( |
| ) |
|
◆ insertInlinePicture()
| bool KWCanvas::insertInlinePicture |
( |
| ) |
|
◆ insertInlineTable()
| bool KWCanvas::insertInlineTable |
( |
| ) |
|
|
protected |
◆ insertPart()
| void KWCanvas::insertPart |
( |
const KoDocumentEntry & | entry | ) |
|
◆ insertPicture()
| void KWCanvas::insertPicture |
( |
const KoPicture & | newPicture, |
|
|
TQSize | pixmapSize, |
|
|
bool | _keepRatio ) |
◆ insertPictureDirect()
| void KWCanvas::insertPictureDirect |
( |
const KoPicture & | picture, |
|
|
const KoPoint & | pos, |
|
|
const TQSize & | sz = TQSize() ) |
◆ keyPressEvent()
| void KWCanvas::keyPressEvent |
( |
TQKeyEvent * | e | ) |
|
|
protectedvirtual |
◆ kWordDocument()
| KWDocument * KWCanvas::kWordDocument |
( |
| ) |
const |
|
inline |
◆ mmCreate()
| void KWCanvas::mmCreate |
( |
const TQPoint & | normalPoint, |
|
|
bool | noGrid ) |
◆ mouseMode()
| MouseMode KWCanvas::mouseMode |
( |
| ) |
const |
|
inline |
◆ mpCreate()
| void KWCanvas::mpCreate |
( |
const TQPoint & | normalPoint, |
|
|
bool | noGrid ) |
◆ mpCreatePixmap()
| void KWCanvas::mpCreatePixmap |
( |
const TQPoint & | normalPoint, |
|
|
bool | noGrid ) |
◆ mrCreateFormula()
| void KWCanvas::mrCreateFormula |
( |
| ) |
|
◆ mrCreatePart()
| void KWCanvas::mrCreatePart |
( |
| ) |
|
◆ mrCreatePixmap()
| void KWCanvas::mrCreatePixmap |
( |
| ) |
|
◆ mrCreateTable()
| void KWCanvas::mrCreateTable |
( |
| ) |
|
◆ mrCreateText()
| void KWCanvas::mrCreateText |
( |
| ) |
|
◆ mrEditFrame()
| void KWCanvas::mrEditFrame |
( |
| ) |
|
◆ numberingFootNoteType()
| KWFootNoteVariable::Numbering KWCanvas::numberingFootNoteType |
( |
| ) |
const |
|
inline |
◆ overwriteMode()
| bool KWCanvas::overwriteMode |
( |
| ) |
const |
|
inline |
◆ pasteImage()
| void KWCanvas::pasteImage |
( |
TQMimeSource * | e, |
|
|
const KoPoint & | docPoint ) |
◆ pictureInline()
| bool KWCanvas::pictureInline |
( |
| ) |
const |
|
inline |
◆ pictureKeepRatio()
| bool KWCanvas::pictureKeepRatio |
( |
| ) |
const |
|
inline |
◆ print()
| void KWCanvas::print |
( |
TQPainter * | painter, |
|
|
KPrinter * | printer ) |
◆ repaintAll()
| void KWCanvas::repaintAll |
( |
bool | erase = false | ) |
|
◆ repaintChanged()
| void KWCanvas::repaintChanged |
( |
KWFrameSet * | fs, |
|
|
bool | resetChanged ) |
◆ resetStatusBarText()
| void KWCanvas::resetStatusBarText |
( |
| ) |
|
◆ resizeEvent()
| void KWCanvas::resizeEvent |
( |
TQResizeEvent * | e | ) |
|
|
protectedvirtual |
◆ scrollToOffset()
| void KWCanvas::scrollToOffset |
( |
const KoPoint & | dPoint | ) |
|
◆ selectAllFrames()
| void KWCanvas::selectAllFrames |
( |
bool | select | ) |
|
◆ setFootNoteType()
| void KWCanvas::setFootNoteType |
( |
NoteType | _type | ) |
|
|
inline |
◆ setFrameBackgroundColor()
| void KWCanvas::setFrameBackgroundColor |
( |
const TQBrush & | backColor | ) |
|
◆ setMouseMode()
| void KWCanvas::setMouseMode |
( |
MouseMode | _mm | ) |
|
◆ setNumberingFootNoteType()
| void KWCanvas::setNumberingFootNoteType |
( |
KWFootNoteVariable::Numbering | _type | ) |
|
|
inline |
◆ setPictureInline()
| void KWCanvas::setPictureInline |
( |
bool | _inline | ) |
|
|
inline |
◆ setPictureKeepRatio()
| void KWCanvas::setPictureKeepRatio |
( |
bool | _keep | ) |
|
|
inline |
◆ setTableCols()
| void KWCanvas::setTableCols |
( |
unsigned int | cols | ) |
|
|
inline |
◆ setTableFormat()
| void KWCanvas::setTableFormat |
( |
int | _nb | ) |
|
|
inline |
◆ setTableRows()
| void KWCanvas::setTableRows |
( |
unsigned int | rows | ) |
|
|
inline |
◆ setTableTemplateName()
| void KWCanvas::setTableTemplateName |
( |
const TQString & | _name | ) |
|
|
inline |
◆ setXimPosition()
| void KWCanvas::setXimPosition |
( |
int | x, |
|
|
int | y, |
|
|
int | w, |
|
|
int | h ) |
◆ switchViewMode()
| void KWCanvas::switchViewMode |
( |
const TQString & | newViewMode | ) |
|
◆ tableCols()
| unsigned int KWCanvas::tableCols |
( |
| ) |
const |
|
inline |
◆ tableFormat()
| int KWCanvas::tableFormat |
( |
| ) |
const |
|
inline |
◆ tableHeightMode()
| int KWCanvas::tableHeightMode |
( |
| ) |
const |
|
inline |
◆ tableIsFloating()
| bool KWCanvas::tableIsFloating |
( |
| ) |
const |
|
inline |
◆ tableRows()
| unsigned int KWCanvas::tableRows |
( |
| ) |
const |
|
inline |
◆ tableSelectCell()
◆ tableTemplateName()
| TQString KWCanvas::tableTemplateName |
( |
| ) |
const |
|
inline |
◆ tableWidthMode()
| int KWCanvas::tableWidthMode |
( |
| ) |
const |
|
inline |
◆ terminateCurrentEdit()
| void KWCanvas::terminateCurrentEdit |
( |
| ) |
|
|
protected |
◆ updateCurrentFormat()
| void KWCanvas::updateCurrentFormat |
( |
| ) |
|
◆ updateRulerOffsets()
| void KWCanvas::updateRulerOffsets |
( |
int | cx = -1, |
|
|
int | cy = -1 ) |
◆ viewMode()
◆ viewportResizeEvent()
| void KWCanvas::viewportResizeEvent |
( |
TQResizeEvent * | | ) |
|
We need to repaint if the window is resized.
Definition at line 207 of file KWCanvas.cpp.
◆ viewportScroll()
| void KWCanvas::viewportScroll |
( |
bool | up | ) |
|
◆ cols
| unsigned int KWCanvas::cols |
◆ floating
◆ format
◆ height
◆ keepRatio
◆ noteType
| NoteType KWCanvas::noteType |
◆ numberingType
| KWFootNoteVariable::Numbering KWCanvas::numberingType |
◆ pictureInline
| bool KWCanvas::pictureInline |
◆ rows
| unsigned int KWCanvas::rows |
◆ tableTemplateName
| TQString KWCanvas::tableTemplateName |
◆ tt
| KWTableTemplate* KWCanvas::tt |
◆ width
The documentation for this class was generated from the following files:
|