[squeak-dev] The Trunk: Morphic-dtl.997.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Aug 24 01:35:28 UTC 2015


David T. Lewis uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-dtl.997.mcz

==================== Summary ====================

Name: Morphic-dtl.997
Author: dtl
Time: 23 August 2015, 9:32:02.122 pm
UUID: e66cf3fd-1cd2-42c6-9fe2-c745eb1f688c
Ancestors: Morphic-topa.996

Workspace "Send contents to printer" works in MVC, not in Morphic, due to missing implementation in the new Editor hierarchy. Add TextEditor>>sendContentsToPrinterWithLabel: for use with PluggableTextMorph.

=============== Diff against Morphic-topa.996 ===============

Item was changed:
  ----- Method: PluggableTextMorph>>sendContentsToPrinter (in category 'menu commands') -----
  sendContentsToPrinter
+ 	self handleEdit: [textMorph editor sendContentsToPrinterWithLabel: owner knownName]!
- 	self handleEdit: [textMorph editor sendContentsToPrinter]!

Item was added:
+ ----- Method: TextEditor>>sendContentsToPrinterWithLabel: (in category 'menu messages') -----
+ sendContentsToPrinterWithLabel: label
+ 	| textToPrint printer |
+ 	textToPrint := paragraph text.
+ 	textToPrint size = 0 ifTrue: [^self inform: 'nothing to print.'].
+ 	printer := TextPrinter defaultTextPrinter.
+ 	printer documentTitle: (label ifNil: ['Untitled']).
+ 	printer printText: textToPrint!



More information about the Squeak-dev mailing list