187class KSPREAD_EXPORT
View :
public KoView
196 View( TQWidget *_parent,
const char *_name,
205 Canvas* canvasWidget()
const;
208 HBorder* hBorderWidget()
const;
211 VBorder* vBorderWidget()
const;
214 TQScrollBar* horzScrollBar()
const;
217 TQScrollBar* vertScrollBar()
const;
226 KoTabBar* tabBar()
const;
228 void setZoom(
int zoom,
bool updateViews );
230 void addSheet( Sheet *_t );
232 void removeAllSheets();
233 void setActiveSheet( Sheet *_t,
bool updatesheet=
true );
235 const Sheet* activeSheet()
const;
236 Sheet* activeSheet();
238 void openPopupMenu(
const TQPoint &_global );
239 void popupRowMenu(
const TQPoint & _point ) ;
240 void popupColumnMenu(
const TQPoint & _point);
247 void setText(
const TQString& _text,
bool array =
false );
249 void enableUndo(
bool _b );
250 void enableRedo(
bool _b );
251 void enableInsertColumn(
bool _b );
252 void enableInsertRow(
bool _b );
261 void insertChart(
const TQRect& _geometry, KoDocumentEntry& _entry );
269 void insertChild(
const TQRect& _geometry, KoDocumentEntry& _entry );
273 virtual void print( KPrinter &printer );
274 virtual void setupPrinter( KPrinter &printer );
281 void updateEditWidget();
285 void updateEditWidgetOnPress();
291 void deleteEditor(
bool saveChanges =
true );
293 virtual DCOPObject* dcopObject();
295 virtual TQWidget *canvas()
const;
296 virtual int canvasXOffset()
const;
297 virtual int canvasYOffset()
const;
302 KoDocument *hitTest(
const TQPoint &pos );
310 void changeNbOfRecentFiles(
int _nb);
312 void updateBorderButton();
314 void removeSheet( Sheet *_t );
315 void insertSheet( Sheet* sheet );
316 TQColor borderColor()
const;
318 Selection* selectionInfo()
const;
319 Selection* choice()
const;
321 void updateShowSheetMenu();
327 void markSelectionAsDirty();
337 void resetInsertHandle();
339 bool isInsertingObject();
341 bool showSheet(
const TQString& sheetName);
346 TQPoint markerFromSheet( Sheet* sheet )
const;
351 KoPoint offsetFromSheet( Sheet* sheet )
const;
357 void saveCurrentSheetSelection();
359 void deleteSelectedObjects();
364 static TQColor highlightColor();
371 void initialPosition();
375 void createTemplate();
376 void transformPart();
377 void copySelection();
379 void deleteSelection();
380 void clearTextSelection();
381 void clearCommentSelection();
382 void clearValiditySelection();
383 void clearConditionalSelection();
388 void recalcWorkBook();
389 void recalcWorkSheet();
396 void defaultSelection();
397 void paperLayoutDlg();
399 void definePrintRange();
400 void resetPrintRange();
402 void insertFromDatabase();
403 void insertFromTextfile();
404 void insertFromClipboard();
405 void insertSpecialChar();
406 void togglePageBorders(
bool );
407 void toggleProtectSheet(
bool );
408 void toggleProtectDoc(
bool );
409 void viewZoom(
const TQString & );
418 void insertHyperlink();
419 void removeHyperlink();
421 void multipleOperations();
423 void textToColumns();
431 void insertPicture();
432 void moneyFormat(
bool b);
433 void alignLeft(
bool b );
434 void alignRight(
bool b );
435 void alignCenter(
bool b );
436 void alignTop(
bool b );
437 void alignMiddle(
bool b );
438 void alignBottom(
bool b );
439 void wrapText(
bool b );
440 void precisionMinus();
441 void precisionPlus();
442 void createStyleFromCell();
443 void styleSelected(
const TQString & );
444 void setSelectionPrecision(
int delta);
445 void percent(
bool b);
446 void fontSelected(
const TQString &_font );
447 void fontSizeSelected(
int size );
449 void italic(
bool b );
450 void underline(
bool b );
451 void strikeOut(
bool b );
461 void showSelColumns();
462 void insertMathExpr();
463 void formulaSelection(
const TQString &_math );
464 void changeTextColor();
465 void changeBackgroundColor();
469 void extraProperties();
474 void borderOutline();
477 void changeBorderColor();
482 void increaseFontSize();
483 void decreaseFontSize();
484 void setSelectionFontSize(
int size);
486 void setSelectionTextColor(
const TQColor &txtColor);
487 void setSelectionBackgroundColor(
const TQColor &bgColor);
488 void setSelectionBorderColor(
const TQColor &bdColor);
490 void setSelectionLeftBorderColor(
const TQColor &color);
491 void setSelectionRightBorderColor(
const TQColor &color);
492 void setSelectionTopBorderColor(
const TQColor &color);
493 void setSelectionBottomBorderColor(
const TQColor &color);
494 void setSelectionAllBorderColor(
const TQColor &color);
495 void setSelectionOutlineBorderColor(
const TQColor &color);
499 void equalizeColumn();
502 void firstLetterUpper();
503 void verticalText(
bool );
504 void addModifyComment();
505 void setSelectionComment(TQString comment);
506 void removeComment();
508 void setSelectionAngle(
int angle);
517 void mergeCellHorizontal();
518 void mergeCellVertical();
526 void dissociateCell();
529 void increaseIndent();
530 void decreaseIndent();
533 void moveSheet(
unsigned sheet,
unsigned target );
538 void sheetProperties();
544 void changeSheet(
const TQString& _name );
556 void previousSheet();
572 void statusBarClicked(
int _id);
578 void showStatusBar(
bool b );
583 void showTabBar(
bool b );
588 void showFormulaBar(
bool b );
593 void popupTabBarMenu(
const TQPoint& );
595 void handleDamages(
const TQValueList<Damage*>& damages );
597 void runInternalTests();
600 void initialiseMarkerFromSheet( Sheet *_sheet,
const TQPoint &point );
605 void calcStatusBarOp();
611 void slotActivateTool(
int _id );
613 void slotInsertCellCopy();
620 void popupChildMenu( KoChild*,
const TQPoint& global_pos );
626 void slotPopupDeleteChild();
631 void slotPopupAdjustColumn();
632 void slotPopupAdjustRow();
637 void slotItemSelected(
int );
638 void slotListChoosePopupMenu( );
643 void slotHighlight(
const TQString &text,
int matchingIndex,
int matchedLength );
647 void slotReplace(
const TQString &newText,
int,
int,
int );
649 void slotSpecialChar( TQChar c,
const TQString & _font );
650 void slotSpecialCharDlgClosed();
654 void objectSelectedChanged();
657 void slotChildSelected( KoDocumentChild* ch );
658 void slotChildUnselected( KoDocumentChild* );
662 void slotRefreshView();
663 void slotUpdateView( Sheet *_sheet );
664 void slotUpdateView( Sheet *_sheet,
const Region& );
666 void slotUpdateHBorder( Sheet *_sheet );
667 void slotUpdateVBorder( Sheet *_sheet );
668 void slotChangeSelection(
const Region&);
669 void slotChangeChoice(
const Region&);
670 void slotScrollChoice(
const Region&);
671 void slotAddSheet( Sheet *_sheet );
673 void slotSheetRenamed( Sheet* sheet,
const TQString& old_name );
674 void slotSheetHidden( Sheet*_sheet );
675 void slotSheetShown( Sheet*_sheet );
676 void slotSheetRemoved( Sheet*_sheet );
677 void refreshLocale();
678 void extraSpelling();
680 void spellCheckerReady();
681 void spellCheckerMisspelling(
const TQString &,
const TQStringList &,
unsigned int);
682 void spellCheckerCorrected(
const TQString &,
const TQString &,
unsigned int);
683 void spellCheckerDone(
const TQString & );
684 void spellCheckerFinished( );
685 void spellCheckerIgnoreAll(
const TQString & word);
686 void spellCheckerReplaceAll(
const TQString &,
const TQString &);
693 void commandExecuted();
695 virtual int leftBorder()
const;
696 virtual int rightBorder()
const;
697 virtual int topBorder()
const;
698 virtual int bottomBorder()
const;
702 virtual void keyPressEvent ( TQKeyEvent * _ev );
703 virtual void resizeEvent( TQResizeEvent *_ev );
705 virtual TQWMatrix matrix()
const;
713 KoPoint markerDocumentPosition();
720 void activateFormulaEditor();
722 virtual void updateReadWrite(
bool readwrite );
724 virtual void guiActivateEvent( KParts::GUIActivateEvent *ev );
726 void initFindReplace();
727 Cell* findNextCell();
739 bool spellSwitchToOtherSheet();
746 bool isLoading()
const;
748 Cell* nextFindValidCell(
int col,
int row );
750 friend class Private;
Print dialog page for selecting sheets to print.
void prependSelectedSheet(const TQString &sheetname)
Inserts given sheet to the list of sheets for printing at the top.
void prependAvailableSheet(const TQString &sheetname)
Inserts given sheet to the list of available sheets.
void getOptions(TQMap< TQString, TQString > &opts, bool incldef=false)
void clearSelection()
Removes all sheets from the list of selected sheets.
bool isValid(TQString &msg)
static TQString printOptionForIndex(unsigned int index)
The print order of the sheets is stored in the option map, using a prefix plus the index of the sheet...
void setOptions(const TQMap< TQString, TQString > &opts)