2023-04-04 01:02:24 +00:00
|
|
|
Class {
|
|
|
|
#name : #PPCMHtml,
|
|
|
|
#superclass : #PPCMNode,
|
|
|
|
#instVars : [
|
|
|
|
'text'
|
|
|
|
],
|
|
|
|
#category : #'PetitMarkdown-AST'
|
|
|
|
}
|
|
|
|
|
|
|
|
{ #category : #visiting }
|
|
|
|
PPCMHtml >> accept: visitor [
|
|
|
|
^ visitor visitHtml: self
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
PPCMHtml >> text [
|
|
|
|
^ text
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
PPCMHtml >> text: anObject [
|
|
|
|
text := anObject
|
|
|
|
]
|
2023-04-06 14:08:04 +00:00
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
PPCMHtml >> viewBody [
|
|
|
|
|
|
|
|
| aText |
|
|
|
|
aText := (self className ,' ',
|
|
|
|
self text) asRopedText.
|
|
|
|
|
|
|
|
self children do: [ :child |
|
|
|
|
aText append: ' ' asRopedText.
|
|
|
|
aText append: (child className asRopedText foreground:
|
|
|
|
BrGlamorousColors disabledButtonTextColor)
|
|
|
|
].
|
|
|
|
|
|
|
|
|
|
|
|
^ aText
|
|
|
|
]
|