摘要 |
A method and apparatus are provided for generating a document preview. According to the method, a preview handler provides an interface to one or more previewers. The previewers are software components capable of generating a visual preview for one or more document types. In response to a request from a host application to generate a preview for a document, the preview handler is operative to identify the appropriate previewer for generating a preview for the document. The preview handler may then call the previewer and instruct the previewer to load the document and to show the preview in a sub-window of a window provided by the calling host application.
|