Summary of Word Processing Views
Data Structures
Ruler Information Frame
{
justification:int, // 'left, 'right, 'center, or 'full indent: int, // first line indentation in pixels leftMargin: int, // left margin in pixels rightMargin:int, // right margin in pixels lineSpacing:int, // paragraph line spacing, in lines tabs: [t1, t2, ... tN]// array of tab frames }
Tab Frame
{
kind: int, // 'left, 'right, 'center, or 'decimalPoint value: int, // number of pixels from left edge }
protoTXView
{
// tells protoTXView to store view as VBO
SetStore: func(store),
// changes view geometry
SetGeometry: func(isPaged, width, height, margins),
// returns data for specified range in view
GetRangeData: func(range, which),
// retuyrns the number of chars in the view
GetCountCharacters:func(),
// searches for matching text in a view
FindString: func(str, startOffset, options),
// finds first and last characters of a word
GetWordRange: func(offset),
// returns coordinates of a character
CharToPoint: func(offset),
// returns the character at a poing
PointToChar: func(point),
// returns range spec for a text line
GetLineRange: func(offset),
// cuts selection to clipboard
Cut: func(),
// copies selection to clipboard
Copy: func(),
// replaces selection with clipboard contents
Paste: func(),
// removes selection from view
Clear: func(),
// changes font attributes for a range
ChangeRangeRuns:func(range, fontSpec, toggleFace, undoable),
// changes ruler attributes for a range
ChangeRangeRulers:func(range, ruler, undoable),
// replaces text in range with different data
Replace: func(range, data, undoable),
// replaces all occurrences in a view
ReplaceAll: func(str, startOffset, options, data),
// creates a VBO for the data in view
Externalize: func(),
// replaces view contents with data from VBO
Internalize: func(object),
// determines if view has changed
IsModified: func(object),
// scrolls the view horizontally or vertically
Scroll: func(scrollValues),
// returns current scroll values
GetScrollValues:func(),
// determines current text height of view
GetTotalHeight:func(),
// determines current text width of view
GetTotalWidth: func(),
// determines scrollable area of view
GetScrollableRect:func(),
// notifies you that scrollers need updating
ViewUpdateScrollersScript: func(updateMaxVal, scrolled),
// returns current highlight range
GetHiliteRange:func(),
// sets the current highlight range
SetHiliteRange:func(newRange, showHilite, setKeyView),
// gets style run for current highlight range
GetContinuousRun:func(),
// displays the ruler
ShowRuler: func(rulerSettings),
// hides the ruler
HideRuler: func(),
// determines if ruler is currently shown
IsRulerShown: func(),
// changes ruler display settings & redisplays it
UpdateRulerInfo:func(rulerSettings),
// returns number of pages in view
GetCountPages: func(),
// replaces text range with a page break
InsertPageBreak:func(range),
// reconfigures view for printing
SetDrawOrigin: func(origin) }
protoTXViewFinder
{
// finds a string in a VBO
FindString: func(object, str, startOffset, options),
// returns the number of characters in a VBO
GetCountCharacters:func(),
// returns characters for a text range in a VBO
GetRangeText: func(range) }
Subtopics
- Data Structures
- Ruler Information Frame
- Tab Frame
- protoTXView
- protoTXViewFinder
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help