--- a/DevWorkst.st Thu Feb 13 13:46:51 1997 +0100
+++ b/DevWorkst.st Thu Feb 13 13:47:45 1997 +0100
@@ -4602,6 +4602,34 @@
"Modified: 11.12.1996 / 12:56:57 / cg"
!
+selectionAsString
+ "return my current selection as a string"
+
+ |o s|
+
+ o := self getCopyBuffer.
+ s := o.
+ o isString ifFalse:[
+ o isNil ifTrue:[
+ s := ''
+ ] ifFalse:[
+ (o isKindOf:StringCollection) ifTrue:[
+ s := o asStringWithCRsFrom:1 to:(o size) compressTabs:false withCR:false.
+ s := s string.
+ ] ifFalse:[
+ o isString ifTrue:[
+ s := o string
+ ] ifFalse:[
+ s := o storeString
+ ]
+ ]
+ ]
+ ].
+ ^ s
+
+ "Created: 13.2.1997 / 13:10:30 / cg"
+!
+
setCopyBuffer:something
"set the copyBuffers contents.
This is an ST/X internal buffer (i.e. its not visible to alien views)."
@@ -5052,6 +5080,6 @@
!DeviceWorkstation class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libview/Attic/DevWorkst.st,v 1.174 1997-02-07 15:18:13 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libview/Attic/DevWorkst.st,v 1.175 1997-02-13 12:47:45 cg Exp $'
! !
DeviceWorkstation initialize!
--- a/DeviceWorkstation.st Thu Feb 13 13:46:51 1997 +0100
+++ b/DeviceWorkstation.st Thu Feb 13 13:47:45 1997 +0100
@@ -4602,6 +4602,34 @@
"Modified: 11.12.1996 / 12:56:57 / cg"
!
+selectionAsString
+ "return my current selection as a string"
+
+ |o s|
+
+ o := self getCopyBuffer.
+ s := o.
+ o isString ifFalse:[
+ o isNil ifTrue:[
+ s := ''
+ ] ifFalse:[
+ (o isKindOf:StringCollection) ifTrue:[
+ s := o asStringWithCRsFrom:1 to:(o size) compressTabs:false withCR:false.
+ s := s string.
+ ] ifFalse:[
+ o isString ifTrue:[
+ s := o string
+ ] ifFalse:[
+ s := o storeString
+ ]
+ ]
+ ]
+ ].
+ ^ s
+
+ "Created: 13.2.1997 / 13:10:30 / cg"
+!
+
setCopyBuffer:something
"set the copyBuffers contents.
This is an ST/X internal buffer (i.e. its not visible to alien views)."
@@ -5052,6 +5080,6 @@
!DeviceWorkstation class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libview/DeviceWorkstation.st,v 1.174 1997-02-07 15:18:13 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libview/DeviceWorkstation.st,v 1.175 1997-02-13 12:47:45 cg Exp $'
! !
DeviceWorkstation initialize!