|
Class: PrintingDialog
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
Opens a dialog to let user ask for a printer.
See more example in PrinterContext.
copyrightCOPYRIGHT (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.
accessing
-
askForConfirmUsageOfDefaultPrinterSettings: something
-
image specs
-
collateImage
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
-
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
|
-
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
|
-
nonCollateImage
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
-
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
|
-
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
-
initialize
-
interface specs
-
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
-
getPrinterInfo
-
-
getPrinterInfoFromDialog
-
Opens the Printer Dialog and returns a PrinterInfo after selecting a printer and defining the printing settings
-
getPrinterInfoWithoutDialog: withoutDialog
-
Returns a PrinterInfo by opening the Printer Dialog or by using the lastUserPrinterSettings
others
-
version_CVS
-
queries
-
confirmUsageOfDefaultPrinterSettings
-
ask if printing should be done with the last printer.
Return true, false or nil (for cancel)
Usage example(s):
self confirmUsageOfDefaultPrinterSettings
|
settings
-
lastUsedPrinterSettings
-
-
lastUsedPrinterSettings: aPrinterInfo
-
-
printersSettings
-
-
printersSettingsAt: printerName
-
-
printersSettingsAt: printerName ifAbsentPut: aPrinterInfo
-
-
printersSettingsAt: printerName put: aPrinterInfo
-
tables
-
orientationAt: anInteger
-
-
orientationTable
-
accessing
-
answer
-
Returns aPrinterInfo with all choosen settings if the print button has been pressed. Otherwise returns nil
-
collateImage
-
-
defaultPrinter
-
-
defaultPrinterIndex
-
-
orientationImage
-
-
orientationSymbol
-
-
paperSizeNameFromSelectedPrinter
-
-
paperSizeNames
-
-
printerUserFriendlyNames
-
-
printers
-
-
selectedPrinter
-
aspects
-
collateActionEnabledHolder
-
-
collateHolder
-
-
numberOfCopiesHolder
-
-
numberOfCopiesTextEnabledHolder
-
-
okButtonEnabledHolder
-
-
orientationRadioButtonEnabledHolder
-
-
paperSizeEnabledHolder
-
-
paperSizeListHolder
-
-
printerListHolder
-
-
selectedOrientationHolder
-
-
selectedPaperSizeHolder
-
-
selectedPrinterHolder
-
-
setupActionEnabledHolder
-
initialization & release
-
collateImagePostBuild: aLabel
-
-
commentLabelPostBuild: aLabel
-
-
driverNameLabelPostBuild: aLabel
-
-
locationLabelPostBuild: aLabel
-
-
orientationImagePostBuild: aLabel
-
-
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.
-
selectDefaultPrinter
-
-
statusLabelPostBuild: aLabel
-
queries
-
collateActionEnabled
-
-
hasSelectedPrinter
-
-
isPortraitSelected
-
-
isSelectedPaperSize
-
-
isSelectedPrinterAvailable
-
-
numberOfCopiesTextEnabled
-
-
okButtonEnabled
-
-
orientationRadioButtonEnabled
-
-
paperSizeEnabled
-
-
setupActionEnabled
-
settings
-
addOrRecoverPrinterSettings
-
-
updatePrinterInPrintersSettings
-
unknownPaperSize
-
addUnknownPaperSize
-
-
removeUnknownPaperSize
-
-
unknownPaperSizeNameDescription
-
update
-
clearProperties
-
-
updateCollateImage
-
-
updateInfo
-
-
updateLastUsedPrinterSettings
-
-
updateModifiedCollate
-
-
updateModifiedNumberOfCopies
-
-
updateModifiedOrientation
-
-
updateModifiedPageSize
-
-
updateModifiedProperties
-
-
updateOrientationImage
-
-
updatePaperSizeList
-
-
updatePrintersList
-
-
updateValueHolders
-
update properties
-
updateCollate
-
-
updateNumberOfCopies
-
-
updatePaperSize
-
-
updatePrinterOrientation
-
user actions
-
accept
-
-
collateHolderChanged
-
-
numberOfCopiesHolderChanged
-
-
openSetup
-
-
printerSelectionChanged
-
-
selectedOrientationHolderChanged
-
-
selectedPaperSizeHolderChanged
-
| 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.
|