<s>
The	O
Text	B-Library
Object	I-Library
Model	I-Library
(	O
TOM	O
)	O
is	O
a	O
Microsoft	B-Application
Windows	I-Application
API	B-Application
that	O
provides	O
developers	O
with	O
object-based	O
rich	O
text	O
manipulation	O
interfaces	O
.	O
</s>
<s>
It	O
is	O
implemented	O
through	O
COM	B-Application
,	O
and	O
can	O
be	O
accessed	O
through	O
Microsoft	B-Application
Word	I-Application
or	O
additionally	O
through	O
the	O
RichEdit	B-Library
controls	O
that	O
normally	O
ship	O
with	O
Windows	O
.	O
</s>
<s>
When	O
TOM	O
was	O
developed	O
,	O
it	O
was	O
influenced	O
heavily	O
by	O
WordBasic	O
,	O
a	O
macro	O
language	O
used	O
within	O
Word	O
before	O
VBA	B-Language
(	O
Word	O
95	O
and	O
previous	O
releases	O
)	O
.	O
</s>
<s>
TOM	O
has	O
developed	O
alongside	O
the	O
RichEdit	B-Library
technology	O
,	O
and	O
has	O
been	O
present	O
since	O
version	O
1.0	O
of	O
the	O
RichEdit	B-Library
components	O
.	O
</s>
<s>
The	O
API	B-Application
has	O
been	O
available	O
as	O
an	O
option	O
for	O
Windows	B-Operating_System
CE	I-Operating_System
since	O
the	O
2.5	O
release	O
of	O
RichEdit	B-Library
(	O
Western	O
Languages	O
Only	O
)	O
,	O
which	O
was	O
at	O
least	O
used	O
by	O
Pocket	O
Word	O
at	O
that	O
time	O
.	O
</s>
<s>
Version	O
8.0	O
of	O
RichEdit	B-Library
,	O
which	O
shipped	O
with	O
Windows	B-Application
8	I-Application
,	O
added	O
support	O
for	O
OpenType	O
math	O
.	O
</s>
<s>
To	O
retrieve	O
an	O
implemented	O
instance	O
of	O
ITextDocument	O
interface	B-Application
(	O
the	O
top-level	O
document	O
interface	B-Application
)	O
,	O
the	O
EM_GETOLEINTERFACE	O
message	O
may	O
be	O
sent	O
via	O
the	O
API	B-Application
to	O
obtain	O
a	O
pointer	O
to	O
an	O
IRichEditOle	O
object	O
,	O
which	O
also	O
implements	O
the	O
ITextDocument	O
interface	B-Application
.	O
</s>
<s>
TOM	O
may	O
operate	O
differently	O
depending	O
on	O
the	O
version	O
of	O
the	O
RichEdit	B-Library
control	O
the	O
interface	B-Application
is	O
retrieved	O
for	O
(	O
RICHEDIT50W	O
windows	O
provide	O
more	O
functionality	O
than	O
the	O
standard	O
RICHEDIT20W	O
or	O
RICHEDIT20A	O
controls	O
,	O
like	O
proper	O
table	O
support	O
)	O
.	O
</s>
<s>
A	O
top-level	O
interface	B-Application
.	O
</s>
<s>
Documents	O
may	O
be	O
opened	O
and	O
saved	O
through	O
this	O
interface	B-Application
.	O
</s>
<s>
A	O
mechanism	O
for	O
inspection	O
and	O
modification	O
of	O
rich	O
edit	O
font	O
attributes	O
,	O
that	O
is	O
considerably	O
more	O
extensive	O
that	O
the	O
standard	O
OLE	O
interface	B-Application
used	O
to	O
describe	O
a	O
font	O
(	O
IFontDisp	O
,	O
StdFont	O
)	O
.	O
</s>
