eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'PrintingDialog':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: PrintingDialog


Inheritance:

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

Package:
stx:libwidg2
Category:
Interface-Printing
Version:
rev: 1.28 date: 2022/02/11 15:24:17
user: cg
file: PrintingDialog.st directory: libwidg2
module: stx stc-classLibrary: libwidg2

Description:


Opens a dialog to let user ask for a printer.


See more example in PrinterContext.

copyright

COPYRIGHT (c) 2006 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

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,
but only iff the appModel is not the same as the topView's app
(i.e. if it is not a build for the same appModel again).
In the other case, postBuildAsSubcanvasWith is invoked.
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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 17:21:34 GMT