kspread
KSpread::KPSheetSelectPage Class Reference
#include <kspread_view.h>
Detailed Description
Print dialog page for selecting sheets to print.
- See also:
- SheetSelectWidget
Definition at line 80 of file kspread_view.h.
Public Slots | |
void | prependAvailableSheet (const QString &sheetname) |
void | prependSelectedSheet (const QString &sheetname) |
Public Member Functions | |
KPSheetSelectPage (QWidget *parent=0) | |
void | getOptions (QMap< QString, QString > &opts, bool incldef=false) |
void | setOptions (const QMap< QString, QString > &opts) |
bool | isValid (QString &msg) |
QStringList | selectedSheets () |
void | clearSelection () |
Static Public Member Functions | |
static QString | printOptionForIndex (unsigned int index) |
static QStringList | selectedSheets (KPrinter &prt) |
Protected Slots | |
void | selectAll () |
void | select () |
void | remove () |
void | removeAll () |
void | moveTop () |
void | moveUp () |
void | moveDown () |
void | moveBottom () |
Member Function Documentation
void KSpread::KPSheetSelectPage::clearSelection | ( | ) |
Removes all sheets from the list of selected sheets.
Definition at line 1516 of file kspread_view.cc.
void KSpread::KPSheetSelectPage::getOptions | ( | QMap< QString, QString > & | opts, | |
bool | incldef = false | |||
) |
bool KSpread::KPSheetSelectPage::isValid | ( | QString & | msg | ) |
- Returns:
- false if no sheet is selected for printing.
Definition at line 1460 of file kspread_view.cc.
void KSpread::KPSheetSelectPage::prependAvailableSheet | ( | const QString & | sheetname | ) | [slot] |
Inserts given sheet to the list of available sheets.
Definition at line 1479 of file kspread_view.cc.
void KSpread::KPSheetSelectPage::prependSelectedSheet | ( | const QString & | sheetname | ) | [slot] |
Inserts given sheet to the list of sheets for printing at the top.
Definition at line 1485 of file kspread_view.cc.
QString KSpread::KPSheetSelectPage::printOptionForIndex | ( | unsigned int | index | ) | [static] |
The print order of the sheets is stored in the option map, using a prefix plus the index of the sheet, like the following:.
- sheetprintorder0
- sheetprintorder1
- sheetprintorder2 Please note that this is just the key to the value, not the value itself. The value of the option is the sheetname itself.
- Parameters:
-
index the index of the print order, starting at 0
- Returns:
- the string that is used in the printoption for given index
Definition at line 1474 of file kspread_view.cc.
QStringList KSpread::KPSheetSelectPage::selectedSheets | ( | KPrinter & | prt | ) | [static] |
- Parameters:
-
prt the printer from which the options should be read.
- Returns:
- list of sheets to print in correct order configured for given printer.
Definition at line 1504 of file kspread_view.cc.
QStringList KSpread::KPSheetSelectPage::selectedSheets | ( | ) |
- Returns:
- list of sheets that will be printed, in correct order.
Definition at line 1491 of file kspread_view.cc.
void KSpread::KPSheetSelectPage::setOptions | ( | const QMap< QString, QString > & | opts | ) |
The documentation for this class was generated from the following files: