89class KSPREAD_EXPORT
Canvas :
public TQWidget
117 Canvas (View *_view);
129 Selection* selectionInfo()
const;
133 Selection* choice()
const;
141 TQRect selection()
const;
147 TQPoint marker()
const;
153 int markerColumn()
const;
159 int markerRow()
const;
164 const TQPen& defaultGridPen()
const;
175 double xOffset()
const;
179 double yOffset()
const;
183 void setXOffset(
double _xOffset );
187 void setYOffset(
double _yOffset );
192 TQRect visibleCells()
const;
197 Sheet* activeSheet()
const;
202 Sheet* findSheet(
const TQString& _name )
const;
208 void validateSelection();
222 void scrollToCell(TQPoint location)
const;
227 void createEditor(
bool captureArrowKeys=
false );
228 bool createEditor( EditorType type,
bool addFocus =
true,
bool captureArrowKeys=
false );
238 void deleteEditor(
bool saveChanges,
bool array =
false);
247 void setLastEditorWithFocus( EditorType type );
258 void startChoose(
const TQRect& selection );
268 void setChooseMode(
bool state);
272 bool chooseMode()
const;
275 void equalizeColumn();
280 void updatePosWidget();
291 virtual bool focusNextPrevChild(
bool );
299 double autoScrollAccelerationX(
int offset );
306 double autoScrollAccelerationY(
int offset );
309 EmbeddedObject* getObject(
const TQPoint &pos, Sheet *_sheet );
310 void selectAllObjects();
311 void deselectAllObjects();
312 void selectObject( EmbeddedObject* );
313 void deselectObject( EmbeddedObject* );
314 void setMouseSelectedObject(
bool b);
315 bool isObjectSelected();
323 void moveObjectsByMouse( KoPoint &pos,
bool keepXorYunchanged );
327 void resizeObject( ModifyType _modType,
const KoPoint & point,
bool keepRatio );
329 void finishResizeObject(
const TQString &name,
bool layout =
true );
339 void raiseObject( EmbeddedObject *
object );
353 void displayObjectList( TQPtrList<EmbeddedObject> &list );
355 KoRect objectRect(
bool all )
const;
357 void repaintObject( EmbeddedObject *obj );
365 void copyOasisObjects();
369 void slotScrollVert(
int _value );
370 void slotScrollHorz(
int _value );
372 void slotMaxColumn(
int _max_column );
373 void slotMaxRow(
int _max_row );
376 void objectSelectedChanged();
377 void objectSizeChanged();
380 virtual void keyPressEvent ( TQKeyEvent* _ev );
381 virtual void paintEvent ( TQPaintEvent* _ev );
382 virtual void mousePressEvent( TQMouseEvent* _ev );
383 virtual void mouseReleaseEvent( TQMouseEvent* _ev );
384 virtual void mouseMoveEvent( TQMouseEvent* _ev );
385 virtual void mouseDoubleClickEvent( TQMouseEvent* );
386 virtual void wheelEvent( TQWheelEvent* );
387 virtual void focusInEvent( TQFocusEvent* );
388 virtual void focusOutEvent( TQFocusEvent* );
389 virtual void resizeEvent( TQResizeEvent * _ev );
390 virtual void dragMoveEvent(TQDragMoveEvent * _ev);
391 virtual void dropEvent(TQDropEvent * _ev);
392 virtual void dragLeaveEvent(TQDragLeaveEvent * _ev);
403 bool highlightRangeSizeGripAt(
double x,
double y);
410 void slotAutoScroll(
const TQPoint &scrollDist);
413 void speakCell(TQWidget* w,
const TQPoint& p, uint flags);
416 virtual bool eventFilter( TQObject *o, TQEvent *e );
418 HBorder* hBorderWidget()
const;
419 VBorder* vBorderWidget()
const;
420 TQScrollBar* horzScrollBar()
const;
421 TQScrollBar* vertScrollBar()
const;
429 TQRect painterWindowGeometry(
const TQPainter& painter )
const;
436 void clipoutChildren( TQPainter& painter )
const;
444 TQRect cellsInArea(
const TQRect area )
const;
449 void paintChildren( TQPainter& painter, TQWMatrix& matrix );
454 EditorType lastEditorWithFocus()
const;
457 void moveObject(
int x,
int y,
bool key );
462 void paintNormalMarker(TQPainter& painter,
const KoRect &viewRect);
470 void paintHighlightedRanges(TQPainter& painter,
const KoRect& viewRect);
483 void sheetAreaToVisibleRect(
const TQRect& sheetArea,
484 KoRect& visibleRect );
494 void sheetAreaToRect(
const TQRect& sheetArea, KoRect& rect );
511 void retrieveMarkerInfo(
const TQRect &marker,
const KoRect &viewRect,
512 double positions[],
bool paintSides[] );
517 bool formatKeyPress( TQKeyEvent * _ev );
520 bool formatCellByKey(Cell *cell,
int key,
const TQRect &rect);
522 void processClickSelectionHandle(TQMouseEvent *event);
523 void processLeftClickAnchor();
532 TQRect moveDirection(KSpread::MoveTo direction,
bool extendSelection);
534 void processEnterKey(TQKeyEvent *event);
535 void processArrowKey(TQKeyEvent *event);
536 void processEscapeKey(TQKeyEvent *event);
537 bool processHomeKey(TQKeyEvent *event);
538 bool processEndKey(TQKeyEvent *event);
539 bool processPriorKey(TQKeyEvent *event);
540 bool processNextKey(TQKeyEvent *event);
541 void processDeleteKey(TQKeyEvent *event);
542 void processF2Key(TQKeyEvent *event);
543 void processF4Key(TQKeyEvent *event);
544 void processOtherKey(TQKeyEvent *event);
545 bool processControlArrowKey(TQKeyEvent *event);
547 void processIMEvent( TQIMEvent * event );
564 void setSelectionChangePaintDirty(Sheet* sheet,
const Region& changedRegion);