Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Text Object Model

From Wikipedia, the free encyclopedia
Microsoft Windows programming interface

TheText Object Model (TOM) is aMicrosoft WindowsAPI that provides developers with object-based rich text manipulation interfaces. It is implemented throughCOM, and can be accessed throughMicrosoft Word or additionally through the RichEdit controls that normally ship with Windows.[1]

History

[edit]

When TOM was developed, it was influenced heavily by WordBasic,[1] amacro language used within Word beforeVBA (Word 95 and previous releases). TOM has developed alongside the RichEdit technology, and has been present since version 1.0 of the RichEdit components.[2] The API has been available as an option forWindows CE since the 2.5 release of RichEdit (Western Languages Only), which was at least used byPocket Word at that time.[2]

Version 8.0 of RichEdit, which shipped withWindows 8, added support forOpenType math.[3]

Technical details

[edit]

To retrieve an implemented instance ofITextDocumentinterface (the top-level document interface), theEM_GETOLEINTERFACE message may be sent via theSendMessage API to obtain a pointer to anIRichEditOle object, which also implements theITextDocument interface.[1] TOM may operate differently depending on the version of the RichEdit control the interface is retrieved for (RICHEDIT50W windows provide more functionality than the standard RICHEDIT20W or RICHEDIT20A controls, like proper table support).[2]

COM Interfaces

[edit]
ITextDocument
A top-level interface. Documents may be opened and saved through this interface. Some screen update control is achieved here as well. Undo/redo grouping is implemented here. Arbitrary text ranges (ITextRange) and a text range for currently selected text (ITextSelection) are provided, which are used to modify or review the document.
ITextRange
Provides editing and data-binding tools to select text within a document, that can be examined, modified, or removed. Ranges exist within paragraphs, and the paragraph a range is within is accessible through a property of this object.
ITextSelection
Provides selection information, in addition to functionality provided by theITextRange.
ITextFont
Dual Interface withITextPara
A mechanism for inspection and modification of rich edit font attributes, that is considerably more extensive that the standard OLE interface used to describe a font (IFontDisp, StdFont).
ITextPara
Dual Interface withITextFont
Provides extensive information about the position, formatting outside of fonts (e.g. first line indent), behavior (e.g. widow control), and purpose of a paragraph (it could be a normal paragraph, a list, a table, etc).

See also

[edit]

References

[edit]
  1. ^abc"Text Object Model". Retrieved2011-12-04.
  2. ^abc"RichEdit versions". 13 October 2006. Retrieved2023-11-19.
  3. ^"DevBlogs".

External links

[edit]
Graphics and UI
Audio
Multimedia
Web
Data access
Networking
Communication
Administration and
management
Component model
Libraries
Device drivers
Security
.NET
Software factories
IPC
Accessibility
Text and multilingual
support
Retrieved from "https://en.wikipedia.org/w/index.php?title=Text_Object_Model&oldid=1281049544"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp