equal
deleted
inserted
replaced
462 def select[A]( |
462 def select[A]( |
463 range: Text.Range, |
463 range: Text.Range, |
464 elements: Markup.Elements, |
464 elements: Markup.Elements, |
465 result: List[Command.State] => Text.Markup => Option[A], |
465 result: List[Command.State] => Text.Markup => Option[A], |
466 status: Boolean = false): List[Text.Info[A]] |
466 status: Boolean = false): List[Text.Info[A]] |
|
467 } |
|
468 |
|
469 |
|
470 /* model */ |
|
471 |
|
472 trait Model |
|
473 { |
|
474 /*session*/ |
|
475 def session: Session |
|
476 def snapshot(): Snapshot |
|
477 |
|
478 /*name*/ |
|
479 def node_name: Document.Node.Name |
|
480 def is_theory: Boolean = node_name.is_theory |
|
481 override def toString: String = node_name.toString |
|
482 |
|
483 /*content*/ |
|
484 def get_blob: Option[Document.Blob] |
467 } |
485 } |
468 |
486 |
469 |
487 |
470 |
488 |
471 /** global state -- document structure, execution process, editing history **/ |
489 /** global state -- document structure, execution process, editing history **/ |