Object <- FixedList <- ShortIntegerList <- IndexTabMappingTable |
|
|
FindSectionIndex FindTabIndex SectionIndexToIndexText SectionsPerTab TabIndexInRange TextToSectionIndex TextToTabIndex |
Class IndexTabMappingTable defines no new attributes.
Fields
| Field | Type | |
|---|---|---|
| IndexTabMappingTable: | format: | Unsigned |
| numberOfSections: | Unsigned | |
| defaultSection: | Unsigned | |
| numberOfTabs: | Unsigned | |
| defaultTab: | Unsigned | |
| tabToSectionTable: | Buffer |
instance IndexTabMappingTable tag; format: 0; numberOfSections: 0; defaultSection: 0; numberOfTabs: 0; defaultTab: 0; tabToSectionTable: nilObject; end instance;
Define Class IndexTabMappingTable; inherits from ShortIntegerList; field format: Unsigned; // see .c file field numberOfSections: Unsigned; field defaultSection: Unsigned; // for unknown characters field numberOfTabs: Unsigned; field defaultTab: Unsigned; // for unknown characters field tabToSectionTable: Buffer; operation TextToTabIndex(text: HasText): Unsigned; operation TextToSectionIndex(text: HasText): Unsigned; operation SectionIndexToIndexText(sectionIndex: Unsigned): Text; operation TabIndexInRange(index: Unsigned): Boolean; // Tests whether index is a valid tab index. operation FindSectionIndex(tabIndex: Unsigned): Unsigned; // Returns the first section index in this table that corresponds to // tab index tabIndex. operation FindTabIndex(sectionIndex: Unsigned): Unsigned; // Returns the tab index that corresponds to sectionIndex. operation SectionsPerTab(): Unsigned; // Number of sections per tab. end class;