kspread
KSpread::View Class Reference
The View class displays a KSpread document.
More...
#include <View.h>
List of all members.
Detailed Description
The View class displays a KSpread document.
View is used to display a spreadsheet document and provide the interface for the user to perform editing and data analysis.
A view consists of several parts:
- canvas to display cells in a sheet
- line editor to display and edit cell contents
- location editor to show marker and/or selection
- column header to show columns
- row header to show rows
- horizontal and vertical scrollbars for navigation
- tab bar to select active worksheet
Definition at line 85 of file View.h.
Constructor & Destructor Documentation
| KSpread::View::View |
( |
QWidget * |
_parent, |
|
|
Doc * |
doc | |
|
) |
| | |
Creates a new view.
Definition at line 605 of file View.cpp.
Destroys the view.
Definition at line 660 of file View.cpp.
Member Function Documentation
| void KSpread::View::aboutToModify |
( |
const Region & |
region |
) |
[slot] |
| void KSpread::View::activateFormulaEditor |
( |
|
) |
[protected] |
Activates the formula editor for the current cell.
This function is usually called if the user presses a button in the formula toolbar.
Definition at line 1175 of file View.cpp.
| Sheet * KSpread::View::activeSheet |
( |
|
) |
|
| const Sheet * KSpread::View::activeSheet |
( |
|
) |
const |
| void KSpread::View::addSheet |
( |
Sheet * |
_t |
) |
|
| QColor KSpread::View::borderColor |
( |
|
) |
const |
| int KSpread::View::bottomBorder |
( |
|
) |
const [virtual] |
| void KSpread::View::calcStatusBarOp |
( |
|
) |
[slot] |
write in statusBar result of calc (Min, or Max, average, sum, count)
Definition at line 2263 of file View.cpp.
| QWidget * KSpread::View::canvas |
( |
|
) |
const [virtual] |
| KoCanvasController * KSpread::View::canvasController |
( |
|
) |
const |
Returns the canvas controller of the view.
Definition at line 862 of file View.cpp.
| Canvas * KSpread::View::canvasWidget |
( |
|
) |
const |
Returns the canvas of the view.
Definition at line 852 of file View.cpp.
| void KSpread::View::changeNbOfRecentFiles |
( |
int |
_nb |
) |
|
| void KSpread::View::changeSheet |
( |
const QString & |
_name |
) |
[slot] |
Switch the active sheet to the name.
This slot is connected to the tab bar and activated when the user selects a new sheet in the tab bar.
Definition at line 1477 of file View.cpp.
Returns the column header.
Definition at line 867 of file View.cpp.
| void KSpread::View::copyAsText |
( |
|
) |
[slot] |
| KoPrintJob * KSpread::View::createPrintJob |
( |
|
) |
[protected, virtual] |
| void KSpread::View::createTemplate |
( |
|
) |
[slot] |
| void KSpread::View::deleteSheet |
( |
|
) |
[slot] |
| Doc * KSpread::View::doc |
( |
|
) |
const |
| void KSpread::View::documentReadWriteToggled |
( |
bool |
readwrite |
) |
[signal] |
| void KSpread::View::duplicateSheet |
( |
|
) |
[slot] |
| void KSpread::View::editDeleteSelection |
( |
|
) |
[slot] |
| void KSpread::View::firstSheet |
( |
|
) |
[slot] |
Switch the active sheet to the first visible sheet in the workbook.
Does nothing if the current active sheet is already the first one.
Definition at line 1910 of file View.cpp.
| void KSpread::View::guiActivateEvent |
( |
KParts::GUIActivateEvent * |
ev |
) |
[protected, virtual] |
| void KSpread::View::handleDamages |
( |
const QList< Damage * > & |
damages |
) |
[slot] |
| void KSpread::View::helpUsing |
( |
|
) |
[slot] |
| void KSpread::View::hideSheet |
( |
|
) |
[slot] |
| QScrollBar * KSpread::View::horzScrollBar |
( |
|
) |
const |
Returns the horizontal scrollbar.
Definition at line 877 of file View.cpp.
| void KSpread::View::initCalcMenu |
( |
|
) |
|
| void KSpread::View::initConfig |
( |
|
) |
|
| void KSpread::View::initialiseMarkerFromSheet |
( |
Sheet * |
_sheet, |
|
|
const QPoint & |
point | |
|
) |
| | [slot] |
| void KSpread::View::initialPosition |
( |
|
) |
[slot] |
| void KSpread::View::insertSheet |
( |
|
) |
[slot] |
| bool KSpread::View::isLoading |
( |
|
) |
const |
- Returns:
true if document is being loaded. It is useful to suppress scrolling while the "View loading" process.
Definition at line 897 of file View.cpp.
| void KSpread::View::keyPressEvent |
( |
QKeyEvent * |
_ev |
) |
[protected, virtual] |
| void KSpread::View::lastSheet |
( |
|
) |
[slot] |
Switch the active sheet to the last visible sheet in the workbook.
Does nothing if the current active sheet is already the last one.
Definition at line 1924 of file View.cpp.
| int KSpread::View::leftBorder |
( |
|
) |
const [virtual] |
| QPoint KSpread::View::markerFromSheet |
( |
Sheet * |
sheet |
) |
const |
- Returns:
- marker for
sheet
Definition at line 2513 of file View.cpp.
| void KSpread::View::markSelectionAsDirty |
( |
|
) |
|
Mark all selected cells / regions of cells as 'dirty' (ie.
requiring a repaint) They will be repainted on the next call to paintUpdates()
Definition at line 2494 of file View.cpp.
| QMatrix KSpread::View::matrix |
( |
|
) |
const [virtual] |
| void KSpread::View::menuCalc |
( |
bool |
|
) |
[slot] |
| void KSpread::View::moveSheet |
( |
unsigned |
sheet, |
|
|
unsigned |
target | |
|
) |
| | [slot] |
| void KSpread::View::nextSheet |
( |
|
) |
[slot] |
Switch the active sheet to the next visible sheet.
Does nothing if the current active sheet is the last visible sheet in the workbook.
Definition at line 1882 of file View.cpp.
| QPointF KSpread::View::offsetFromSheet |
( |
Sheet * |
sheet |
) |
const |
- Returns:
- scroll offset for
sheet
Definition at line 2520 of file View.cpp.
| void KSpread::View::optionsNotifications |
( |
|
) |
[slot] |
| void KSpread::View::paintUpdates |
( |
|
) |
|
Repaint any cell with the paintDirty flag that is visible in this view.
Definition at line 2499 of file View.cpp.
| void KSpread::View::paperLayoutDlg |
( |
|
) |
[slot] |
| void KSpread::View::popupTabBarMenu |
( |
const QPoint & |
_point |
) |
[slot] |
Shows context menu when tabbar is double-clicked.
Definition at line 2406 of file View.cpp.
| void KSpread::View::preference |
( |
|
) |
[slot] |
| void KSpread::View::previousSheet |
( |
|
) |
[slot] |
Switch the active sheet to the previous visible sheet.
Does nothing if the current active sheet is the first visible sheet in the workbook.
Definition at line 1896 of file View.cpp.
| void KSpread::View::recalcWorkBook |
( |
|
) |
[slot] |
| void KSpread::View::recalcWorkSheet |
( |
|
) |
[slot] |
| void KSpread::View::refreshSelection |
( |
const Region & |
region |
) |
[slot] |
| void KSpread::View::refreshSheetViews |
( |
|
) |
[slot] |
| void KSpread::View::refreshView |
( |
|
) |
[slot] |
refresh view when you hide/show vertical scrollbar
Definition at line 1970 of file View.cpp.
| void KSpread::View::removeAllSheets |
( |
|
) |
|
| void KSpread::View::resetPrintRange |
( |
|
) |
[slot] |
| void KSpread::View::resizeEvent |
( |
QResizeEvent * |
_ev |
) |
[protected, virtual] |
| int KSpread::View::rightBorder |
( |
|
) |
const [virtual] |
| RowHeader * KSpread::View::rowHeader |
( |
|
) |
const |
Returns the row header.
Definition at line 872 of file View.cpp.
| void KSpread::View::saveCurrentSheetSelection |
( |
|
) |
|
Save current sheet selection.
Call when we change sheet, or before save in OpenDocument format.
Definition at line 2527 of file View.cpp.
| Selection * KSpread::View::selection |
( |
|
) |
const |
| void KSpread::View::setActiveSheet |
( |
Sheet * |
sheet, |
|
|
bool |
updatesheet = true | |
|
) |
| | [slot] |
| void KSpread::View::setSelectionAllBorderColor |
( |
const QColor & |
color |
) |
[slot] |
| void KSpread::View::setSelectionBackgroundColor |
( |
const QColor & |
bgColor |
) |
[slot] |
| void KSpread::View::setSelectionBorderColor |
( |
const QColor & |
bdColor |
) |
[slot] |
| void KSpread::View::setSelectionBottomBorderColor |
( |
const QColor & |
color |
) |
[slot] |
| void KSpread::View::setSelectionComment |
( |
const QString & |
comment |
) |
[slot] |
| void KSpread::View::setSelectionLeftBorderColor |
( |
const QColor & |
color |
) |
[slot] |
| void KSpread::View::setSelectionOutlineBorderColor |
( |
const QColor & |
color |
) |
[slot] |
| void KSpread::View::setSelectionRightBorderColor |
( |
const QColor & |
color |
) |
[slot] |
| void KSpread::View::setSelectionTextColor |
( |
const QColor & |
txtColor |
) |
[slot] |
| void KSpread::View::setSelectionTopBorderColor |
( |
const QColor & |
color |
) |
[slot] |
| void KSpread::View::setShapeAnchoring |
( |
const QString & |
mode |
) |
[slot] |
Switches the shape anchoring.
Shapes can either be anchored to cells or to the sheet/page.
- Parameters:
-
| mode | string indicating cell or sheet anchoring |
Definition at line 1648 of file View.cpp.
| void KSpread::View::setZoom |
( |
int |
zoom, |
|
|
bool |
updateViews | |
|
) |
| | |
| void KSpread::View::shapeSelectionChanged |
( |
|
) |
[slot] |
| void KSpread::View::sheetProperties |
( |
|
) |
[slot] |
Shows the sheet properties dialog.
Definition at line 1515 of file View.cpp.
| void KSpread::View::sheetProtectionToggled |
( |
bool |
protect |
) |
[signal] |
| void KSpread::View::showColumnHeader |
( |
bool |
enable |
) |
[slot] |
Shows the column header, if enable is true, otherwise it will be hidden.
Definition at line 1808 of file View.cpp.
| void KSpread::View::showHorizontalScrollBar |
( |
bool |
enable |
) |
[slot] |
Shows the horizontal scrollbar, if enable is true, otherwise it will be hidden.
Definition at line 1820 of file View.cpp.
| void KSpread::View::showRowHeader |
( |
bool |
enable |
) |
[slot] |
Shows the column header, if enable is true, otherwise it will be hidden.
Definition at line 1814 of file View.cpp.
| void KSpread::View::showSheet |
( |
|
) |
[slot] |
| bool KSpread::View::showSheet |
( |
const QString & |
sheetName |
) |
|
| void KSpread::View::showStatusBar |
( |
bool |
b |
) |
[slot] |
Shows the status bar if b is true, otherwise the status bar will be hidden.
Definition at line 1832 of file View.cpp.
| void KSpread::View::showTabBar |
( |
bool |
b |
) |
[slot] |
Shows the tab bar if b is true, otherwise the tab bar will be hidden.
Definition at line 1838 of file View.cpp.
| void KSpread::View::showVerticalScrollBar |
( |
bool |
enable |
) |
[slot] |
Shows the vertical scrollbar, if enable is true, otherwise it will be hidden.
Definition at line 1826 of file View.cpp.
| void KSpread::View::slotAddSheet |
( |
Sheet * |
_sheet |
) |
[slot] |
| void KSpread::View::slotChangeSelection |
( |
const Region & |
changedRegion |
) |
[slot] |
| void KSpread::View::slotRefreshView |
( |
|
) |
[slot] |
| void KSpread::View::slotRename |
( |
|
) |
[protected, slot] |
| void KSpread::View::slotScrollChoice |
( |
const Region & |
changedRegion |
) |
[slot] |
| void KSpread::View::slotSheetHidden |
( |
Sheet * |
_sheet |
) |
[slot] |
| void KSpread::View::slotSheetRemoved |
( |
Sheet * |
_sheet |
) |
[slot] |
| void KSpread::View::slotSheetRenamed |
( |
Sheet * |
sheet, |
|
|
const QString & |
old_name | |
|
) |
| | [slot] |
| void KSpread::View::slotSheetShown |
( |
Sheet * |
_sheet |
) |
[slot] |
| void KSpread::View::slotUpdateColumnHeader |
( |
Sheet * |
_sheet |
) |
[slot] |
| void KSpread::View::slotUpdateRowHeader |
( |
Sheet * |
_sheet |
) |
[slot] |
| void KSpread::View::slotUpdateView |
( |
Sheet * |
_sheet, |
|
|
const Region & |
region | |
|
) |
| | [slot] |
| void KSpread::View::slotUpdateView |
( |
Sheet * |
_sheet |
) |
[slot] |
| void KSpread::View::statusBarClicked |
( |
const QPoint & |
pos |
) |
[slot] |
| TabBar * KSpread::View::tabBar |
( |
|
) |
const |
Returns the tab bar.
Definition at line 887 of file View.cpp.
| void KSpread::View::togglePageBorders |
( |
bool |
mode |
) |
[slot] |
| void KSpread::View::toggleProtectDoc |
( |
bool |
mode |
) |
[slot] |
| void KSpread::View::toggleProtectSheet |
( |
bool |
mode |
) |
[slot] |
| int KSpread::View::topBorder |
( |
|
) |
const [virtual] |
| void KSpread::View::updateBorderButton |
( |
|
) |
|
| void KSpread::View::updateReadWrite |
( |
bool |
readwrite |
) |
[protected, virtual] |
| void KSpread::View::updateShowSheetMenu |
( |
|
) |
|
| QScrollBar * KSpread::View::vertScrollBar |
( |
|
) |
const |
Returns the vertical scrollbar.
Definition at line 882 of file View.cpp.
| void KSpread::View::viewZoom |
( |
KoZoomMode::Mode |
mode, |
|
|
qreal |
zoom | |
|
) |
| | [slot] |
| KoZoomController * KSpread::View::zoomController |
( |
|
) |
const [virtual] |
| KoZoomHandler * KSpread::View::zoomHandler |
( |
|
) |
const |
- Returns:
- the zoom handler
Definition at line 892 of file View.cpp.
The documentation for this class was generated from the following files:
|