Patent ID: 7512892

Claim:
In a computing environment, a method for enabling a host program to display document content through an object comprising content control and display functionality, the method comprising: providing an object to a host program, the host program enabled to host the object; the object comprising a plurality of public methods for providing document content control and display functionality, the public methods comprising: PageCount, FirstVisiblePage, LastVisiblePage, HorizontalOffset, ExtentWidth, ExtentHeight, ViewportWidth, ViewportHeight, ShowPageBorders, ZoomPercentage, GridColumnCount, VerticalPageSpacing, HorizontalPageSpacing, ToggleToolbar, ReflowDocument, ViewThumbnails, ViewFitToWidth, and ViewFitToHeight; the object comprising flags for styling purposes, the flags comprising: IsAtStart, IsAtEnd, CanZoomIn, CanZoomOut, and IsToolbarMaximized; the object providing an application programming interface (API), and a document content class; the document content class being enabled to receive and to contain document content; the API providing an interface for host programs to control the display of document content through the object; receiving, by the object, a call from the host program through the API; the host program adding content to the object using a set method of the content class; the object providing a default user interface comprising a toolbar and a viewport; and the object displaying document content within the object viewport, the viewport and the toolbar being displayed within a viewing area of the host program.