! prints the current sheet (worksheet, spreadsheet or matrix) */
| 1927 | prints the current sheet (worksheet, spreadsheet or matrix) |
| 1928 | */ |
| 1929 | void MainWin::print() { |
| 1930 | if (!m_currentAspectDock) |
| 1931 | return; |
| 1932 | |
| 1933 | AbstractPart* part = static_cast<ContentDockWidget*>(m_currentAspectDock)->part(); |
| 1934 | statusBar()->showMessage(i18n("Preparing printing of %1", part->name())); |
| 1935 | if (part->printView()) |
| 1936 | statusBar()->showMessage(i18n("%1 printed", part->name())); |
| 1937 | else |
| 1938 | statusBar()->clearMessage(); |
| 1939 | } |
| 1940 | |
| 1941 | void MainWin::printPreview() { |
| 1942 | if (!m_currentAspectDock) |