Qt:Документация 4.3.2/qabstractprintdialog

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

[править] QAbstractPrintDialog Class Reference
[модуль QtGui ]

The QAbstractPrintDialog class provides a base implementation for print dialogs used to configure printers. More...

 #include <QAbstractPrintDialog>

Inherits QDialog.

Inherited by QPrintDialog.

[править] Открытые типы

[править] Открытые функции

  • 5 открытых функций унаследованных от QDialog
  • 201 открытых функций унаследованных от QWidget
  • 29 открытых функций унаследованных от QObject
  • 12 открытых функций унаследованных от QPaintDevice

[править] Дополнительные унаследованные члены

  • 2 свойства унаследованных от QDialog
  • 56 свойства унаследованных от QWidget
  • 1 свойство унаследованное от QObject
  • 4 открытых слотов унаследованных от QDialog
  • 19 открытых слотов унаследованных от QWidget
  • 1 открытый слот унаследованный от QObject
  • 3 сигнала унаследованных от QDialog
  • 1 сигнал унаследованный от QWidget
  • 1 сигнал унаследованный от QObject
  • 4 статических открытых члена унаследованных от QWidget
  • 5 статических открытых члена унаследованных от QObject
  • 38 защищенных функций унаследованных от QWidget
  • 7 защищенных функций унаследованных от QObject
  • 1 защищенная функция унаследованна от QPaintDevice
  • 1 защищенный слот унаследованный от QWidget

[править] Подробное описание

The QAbstractPrintDialog class provides a base implementation for print dialogs used to configure printers.

This class implements getter and setter functions that are used to customize settings shown in print dialogs, but it is not used directly. Use QPrintDialog to display a print dialog in your application.

See also QPrintDialog, QPrinter, and Printing with Qt.


[править] Описание типов членов

[править]
enum QAbstractPrintDialog::PrintDialogOption
flags QAbstractPrintDialog::PrintDialogOptions

Used to specify which parts of the print dialog should be enabled.


Constant Value Description
QAbstractPrintDialog::None 0x0000 None of the options are enabled.
QAbstractPrintDialog::PrintToFile 0x0001 The print to file option is enabled.
QAbstractPrintDialog::PrintSelection 0x0002 The print selection option is enalbed.
QAbstractPrintDialog::PrintPageRange 0x0004 The page range selection option is enabled.
QAbstractPrintDialog::PrintCollateCopies 0x0010

The PrintDialogOptions type is a typedef for QFlags<PrintDialogOption>. It stores an OR combination of PrintDialogOption values.

[править]
enum QAbstractPrintDialog::PrintRange

Used to specify the print range selection option.


Constant Value Description
QAbstractPrintDialog::AllPages 0 All pages should be printed.
QAbstractPrintDialog::Selection 1 Only the selection should be printed.
QAbstractPrintDialog::PageRange 2 The specified page range should be printed.

See also QPrinter::PrintRange.


[править] Описание функций-членов

[править]
QAbstractPrintDialog::QAbstractPrintDialog ( QPrinter * printer, QWidget * parent = 0 )

Constructs an abstract print dialog for printer with parent as parent widget.

[править]
void QAbstractPrintDialog::addEnabledOption ( PrintDialogOption option )

Adds the option option to the set of enabled options in this dialog.

Note that this function has no effect on Mac OS X. See the QPrintDialog documentation for more information.

[править]
PrintDialogOptions QAbstractPrintDialog::enabledOptions () const

Returns the set of enabled options in this dialog.

See also setEnabledOptions().

[править]
int QAbstractPrintDialog::exec () [pure virtual]

This virtual function is called to pop up the dialog. It must be reimplemented in subclasses.

[править]
int QAbstractPrintDialog::fromPage () const

Returns the first page to be printed

[править]
bool QAbstractPrintDialog::isOptionEnabled ( PrintDialogOption option ) const

Returns true if the specified option is enabled; otherwise returns false

[править]
int QAbstractPrintDialog::maxPage () const

Returns the maximum page in the page range.

[править]
int QAbstractPrintDialog::minPage () const

Returns the minimum page in the page range.

[править]
PrintRange QAbstractPrintDialog::printRange () const

Returns the print range.

See also setPrintRange().

[править]
QPrinter * QAbstractPrintDialog::printer () const

Returns the printer that this printer dialog operates on.

[править]
void QAbstractPrintDialog::setEnabledOptions ( PrintDialogOptions options )

Sets the set of options that should be enabled in the print dialog to options.

Note that this function has no effect on Mac OS X. See the QPrintDialog documentation for more information.

See also enabledOptions().

[править]
void QAbstractPrintDialog::setFromTo ( int from, int to )

Sets the range in the print dialog to be from from to to.

[править]
void QAbstractPrintDialog::setMinMax ( int min, int max )

Sets the page range in this dialog to be from min to max. This also enables the PrintPageRange option.

[править]
void QAbstractPrintDialog::setPrintRange ( PrintRange range )

Sets the print range option in to be range.

See also printRange().

[править]
int QAbstractPrintDialog::toPage () const

Returns the last page to be printed.


Copyright © 2007 Trolltech Trademarks
Qt 4.3.2