eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'PrintingDialog':

Home

everywhere
www.exept.de
for:
[back]

Class: PrintingDialog


Inheritance:

   Object
   |
   +--Model
      |
      +--ApplicationModel
         |
         +--PrintingDialog

Package:
stx:libwidg2
Category:
Interface-Printing
Version:
rev: 1.25 date: 2016/12/21 17:49:34
user: cg
file: PrintingDialog.st directory: libwidg2
module: stx stc-classLibrary: libwidg2
Author:
Felix Madrid (fm@exept.de)

Description:


Opens a dialog to let user ask for a printer.


See more example in PrinterContext.


Class protocol:

accessing
o  askForConfirmUsageOfDefaultPrinterSettings: something

image specs
o  collateImage
This resource specification was automatically generated
by the ImageEditor of ST/X.

o  icon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):


     self icon inspect
     ImageEditor openOnClass:self andSelector:#icon
     Icon flushCachedIcons

o  landscapeImage
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):


     self landscapeImage inspect
     ImageEditor openOnClass:self andSelector:#landscapeImage
     Icon flushCachedIcons

o  nonCollateImage
This resource specification was automatically generated
by the ImageEditor of ST/X.

o  numberOfCopiesImage
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):


     self numberOfCopiesImage inspect
     ImageEditor openOnClass:self andSelector:#numberOfCopiesImage
     Icon flushCachedIcons

o  portraitImage
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):


     self portraitImage inspect
     ImageEditor openOnClass:self andSelector:#portraitImage
     Icon flushCachedIcons

initialization
o  initialize

interface specs
o  windowSpec
This resource specification was automatically generated
by the UIPainter of ST/X.
usage example(s):


     UIPainter new openOnClass:PrintingDialog andSelector:#windowSpec
     PrintingDialog new openInterface:#windowSpec
     PrintingDialog open

opening
o  getPrinterInfo

o  getPrinterInfoFromDialog
Opens the Printer Dialog and returns a PrinterInfo after selecting a printer and defining the printing settings

o  getPrinterInfoWithoutDialog: withoutDialog
Returns a PrinterInfo by opening the Printer Dialog or by using the lastUserPrinterSettings

others
o  version_CVS

queries
o  confirmUsageOfDefaultPrinterSettings
ask if printing should be done with the last printer.
Return true, false or nil (for cancel)
usage example(s):


     self confirmUsageOfDefaultPrinterSettings 

settings
o  lastUsedPrinterSettings

o  lastUsedPrinterSettings: aPrinterInfo

o  printersSettings

o  printersSettingsAt: printerName

o  printersSettingsAt: printerName ifAbsentPut: aPrinterInfo

o  printersSettingsAt: printerName put: aPrinterInfo

tables
o  orientationAt: anInteger

o  orientationTable


Instance protocol:

accessing
o  answer
Returns aPrinterInfo with all choosen settings if the print button has been pressed. Otherwise returns nil

o  collateImage

o  defaultPrinter

o  defaultPrinterIndex

o  orientationImage

o  orientationSymbol

o  paperSizeNameFromSelectedPrinter

o  paperSizeNames

o  printerUserFriendlyNames

o  printers

o  selectedPrinter

aspects
o  collateActionEnabledHolder

o  collateHolder

o  numberOfCopiesHolder

o  numberOfCopiesTextEnabledHolder

o  okButtonEnabledHolder

o  orientationRadioButtonEnabledHolder

o  paperSizeEnabledHolder

o  paperSizeListHolder

o  printerListHolder

o  selectedOrientationHolder

o  selectedPaperSizeHolder

o  selectedPrinterHolder

o  setupActionEnabledHolder

initialization & release
o  collateImagePostBuild: aLabel

o  commentLabelPostBuild: aLabel

o  driverNameLabelPostBuild: aLabel

o  locationLabelPostBuild: aLabel

o  orientationImagePostBuild: aLabel

o  postBuildWith: aBuilder
(comment from inherited method)
this is sent after an interface is built from a spec.
Can be redefined in subclasses for additional setup after
the view has been built, but not yet opened.

o  selectDefaultPrinter

o  statusLabelPostBuild: aLabel

queries
o  collateActionEnabled

o  hasSelectedPrinter

o  isPortraitSelected

o  isSelectedPaperSize

o  isSelectedPrinterAvailable

o  numberOfCopiesTextEnabled

o  okButtonEnabled

o  orientationRadioButtonEnabled

o  paperSizeEnabled

o  setupActionEnabled

settings
o  addOrRecoverPrinterSettings

o  updatePrinterInPrintersSettings

unknownPaperSize
o  addUnknownPaperSize

o  removeUnknownPaperSize

o  unknownPaperSizeNameDescription

update
o  clearProperties

o  updateCollateImage

o  updateInfo

o  updateLastUsedPrinterSettings

o  updateModifiedCollate

o  updateModifiedNumberOfCopies

o  updateModifiedOrientation

o  updateModifiedPageSize

o  updateModifiedProperties

o  updateOrientationImage

o  updatePaperSizeList

o  updatePrintersList

o  updateValueHolders

update properties
o  updateCollate

o  updateNumberOfCopies

o  updatePaperSize

o  updatePrinterOrientation

user actions
o  accept

o  collateHolderChanged

o  numberOfCopiesHolderChanged

o  openSetup

o  printerSelectionChanged

o  selectedOrientationHolderChanged

o  selectedPaperSizeHolderChanged


Examples:



    | printerInfo printer |

    printerInfo := PrintingDialog getPrinterInfo.
    printerInfo isNil ifTrue:[^self].

    printer := PrinterContext fromPrinterInfo: printerInfo.
    printer startPrintJob: 'Some printJob from ST/X'.
    printer endPrintJob.
see more example in PrinterContext.

ST/X 7.1.0.0; WebServer 1.653 at exept.de:8081; Sat, 21 Apr 2018 09:40:34 GMT