|
Class: PrintingDialog
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)
Opens a dialog to let user ask for a printer.
See more example in PrinterContext.
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 that 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.
|