home *** CD-ROM | disk | FTP | other *** search
Oberon Document | 1994-06-07 | 2.4 KB | 59 lines | [oODC/obnF] |
- Documents.StdDocumentDesc
- Documents.DocumentDesc
- Containers.ViewDesc
- Views.ViewDesc
- Stores.StoreDesc
- Documents.ModelDesc
- Containers.ModelDesc
- Models.ModelDesc
- Stores.ElemDesc
- TextViews.StdViewDesc
- TextViews.ViewDesc
- TextModels.StdModelDesc
- TextModels.ModelDesc
- TextModels.AttributesDesc
- Geneva
- Geneva
- L Frutiger Light
- Geneva
- MODULE SamplesEx5;
- IMPORT Files, Views, Dialog, TextModels, TextMappers, TextViews;
- PROCEDURE Do*;
- VAR stationary: BOOLEAN; loc: Files.Locator; name: Files.Name;
- v: Views.View; t: TextModels.Model; f: TextMappers.Formatter;
- BEGIN
- Dialog.GetIntSpec("", stationary, loc, name);
- IF loc # NIL THEN
- v := Views.OldView(loc, name);
- IF v IS TextViews.View THEN
- t := v(TextViews.View).ThisModel();
- f.ConnectTo(t);
- f.SetPos(t.Length());
- f.WriteString("appendix");
- Dialog.GetExtSpec("", "", stationary, loc, name);
- IF loc # NIL THEN
- Views.RegisterView(v, loc, name)
- END
- END
- END
- END Do;
- END SamplesEx5.
- TextControllers.StdCtrlDesc
- TextControllers.ControllerDesc
- Containers.ControllerDesc
- Controllers.ControllerDesc
- TextRulers.StdRulerDesc
- TextRulers.RulerDesc
- TextRulers.StdStyleDesc
- TextRulers.StyleDesc
- TextRulers.AttributesDesc
- Geneva
- DevCommanders.StdViewDesc
- DevCommanders.ViewDesc
- Example 5
- This example is a variation of the previous one; instead of opening a view it stores it back in some file.
- SamplesEx5.Do
- In this example we have seen how a view can be stored into a file.
- Geneva
- Documents.ControllerDesc
-