kspread

#include <kspread_view.h>

Public Slots

void prependAvailableSheet (const TQString &sheetname)
void prependSelectedSheet (const TQString &sheetname)

Public Member Functions

 KPSheetSelectPage (TQWidget *parent=0)
void getOptions (TQMap< TQString, TQString > &opts, bool incldef=false)
void setOptions (const TQMap< TQString, TQString > &opts)
bool isValid (TQString &msg)
TQStringList selectedSheets ()
void clearSelection ()

Static Public Member Functions

static TQString printOptionForIndex (unsigned int index)
static TQStringList selectedSheets (KPrinter &prt)

Protected Slots

void selectAll ()
void select ()
void remove ()
void removeAll ()
void moveTop ()
void moveUp ()
void moveDown ()
void moveBottom ()

Detailed Description

Print dialog page for selecting sheets to print.

Author
rapha.nosp@m.el.l.nosp@m.anger.nosp@m.hors.nosp@m.t@kde.nosp@m.mail.nosp@m..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.

Constructor & Destructor Documentation

◆ KPSheetSelectPage()

KSpread::KPSheetSelectPage::KPSheetSelectPage ( TQWidget * parent = 0)

Definition at line 1405 of file kspread_view.cpp.

Member Function Documentation

◆ clearSelection()

void KSpread::KPSheetSelectPage::clearSelection ( )

Removes all sheets from the list of selected sheets.

Definition at line 1515 of file kspread_view.cpp.

◆ getOptions()

void KSpread::KPSheetSelectPage::getOptions ( TQMap< TQString, TQString > & opts,
bool incldef = false )
See also
printOptionPrefix()

Definition at line 1431 of file kspread_view.cpp.

◆ isValid()

bool KSpread::KPSheetSelectPage::isValid ( TQString & msg)
Returns
false if no sheet is selected for printing.

Definition at line 1459 of file kspread_view.cpp.

◆ moveBottom

void KSpread::KPSheetSelectPage::moveBottom ( )
protectedslot

Definition at line 1681 of file kspread_view.cpp.

◆ moveDown

void KSpread::KPSheetSelectPage::moveDown ( )
protectedslot

Definition at line 1656 of file kspread_view.cpp.

◆ moveTop

void KSpread::KPSheetSelectPage::moveTop ( )
protectedslot

Definition at line 1576 of file kspread_view.cpp.

◆ moveUp

void KSpread::KPSheetSelectPage::moveUp ( )
protectedslot

Definition at line 1619 of file kspread_view.cpp.

◆ prependAvailableSheet

void KSpread::KPSheetSelectPage::prependAvailableSheet ( const TQString & sheetname)
slot

Inserts given sheet to the list of available sheets.

Definition at line 1478 of file kspread_view.cpp.

◆ prependSelectedSheet

void KSpread::KPSheetSelectPage::prependSelectedSheet ( const TQString & sheetname)
slot

Inserts given sheet to the list of sheets for printing at the top.

Definition at line 1484 of file kspread_view.cpp.

◆ printOptionForIndex()

TQString 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
    indexthe index of the print order, starting at 0
    Returns
    the string that is used in the printoption for given index

Definition at line 1473 of file kspread_view.cpp.

◆ remove

void KSpread::KPSheetSelectPage::remove ( )
protectedslot

Definition at line 1557 of file kspread_view.cpp.

◆ removeAll

void KSpread::KPSheetSelectPage::removeAll ( )
protectedslot

Definition at line 1570 of file kspread_view.cpp.

◆ select

void KSpread::KPSheetSelectPage::select ( )
protectedslot

Definition at line 1538 of file kspread_view.cpp.

◆ selectAll

void KSpread::KPSheetSelectPage::selectAll ( )
protectedslot

Definition at line 1520 of file kspread_view.cpp.

◆ selectedSheets() [1/2]

TQStringList KSpread::KPSheetSelectPage::selectedSheets ( )
Returns
list of sheets that will be printed, in correct order.

Definition at line 1490 of file kspread_view.cpp.

◆ selectedSheets() [2/2]

TQStringList KSpread::KPSheetSelectPage::selectedSheets ( KPrinter & prt)
static
Parameters
prtthe printer from which the options should be read.
Returns
list of sheets to print in correct order configured for given printer.

Definition at line 1503 of file kspread_view.cpp.

◆ setOptions()

void KSpread::KPSheetSelectPage::setOptions ( const TQMap< TQString, TQString > & opts)
See also
printOptionPrefix()

Definition at line 1442 of file kspread_view.cpp.


The documentation for this class was generated from the following files: