kspread

KSpread::KPSheetSelectPage Class Reference

#include <kspread_view.h>

List of all members.


Detailed Description

Print dialog page for selecting sheets to print.

Author:
raphael.langerhorst@kdemail.net
See also:
SheetSelectWidget
This dialog is shown in the print dialog and allows the user to select the sheets that should be printed and in which order they should be printed.

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 1512 of file kspread_view.cc.

void KSpread::KPSheetSelectPage::getOptions QMap< QString, QString > &  opts,
bool  incldef = false
 

See also:
printOptionPrefix()

Definition at line 1428 of file kspread_view.cc.

bool KSpread::KPSheetSelectPage::isValid QString &  msg  ) 
 

Returns:
false if no sheet is selected for printing.

Definition at line 1456 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 1475 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 1481 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 1470 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 1500 of file kspread_view.cc.

QStringList KSpread::KPSheetSelectPage::selectedSheets  ) 
 

Returns:
list of sheets that will be printed, in correct order.

Definition at line 1487 of file kspread_view.cc.

void KSpread::KPSheetSelectPage::setOptions const QMap< QString, QString > &  opts  ) 
 

See also:
printOptionPrefix()

Definition at line 1439 of file kspread_view.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys