Method and Computer-Readable Medium for Providing Page and Table Formatting Services
First Claim
1. A computer-implemented method for providing page and table layout services to a client application program, the method comprising:
- receiving a request from the client application program to format a page of a document;
in response to the request, performing one or more callback operations to the client application program to retrieve the request specifying one or more layout requirements and the portions of the document to be laid out, wherein performing the one or more callback operations comprises retrieving the one or more layout requirements and portions of the document to be laid out from at least one of a plurality of paragraph formatters;
laying out the portions of the document retrieved from the client application through the callback operations in a manner consistent with the layout requirements;
receiving a request from the client application program to perform an update of the layout of the page, the request including the identification of a location on the page that has been changed; and
in response to the request, locating a line within the page that includes the location that has been changed, reformatting the located line, determining whether a next line has changed as the result of the reformatting, and in response to determining that a next line has changed, reformatting a next line until the next line does not change as a result of the reformatting, and returning only the changes resulting from the reformatting of the page to the client application.
1 Assignment
0 Petitions
Accused Products
Abstract
A computer-implemented method and computer-readable medium are provided for providing page and table layout services. According to the method, a layout manager program provides layout services to client application programs. The layout manager receives requests from client application programs to format document content. In response to such requests, the layout manager performs one or more callback operations to the client application to retrieve portions of the document to be laid out. Once the portions of the page to be laid out have been retrieved through the callback operations, the layout manager lays out the portions of the document and notifies the client application that the layout is completed. The client application can then query the layout manager for the formatting result.
-
Citations
20 Claims
-
1. A computer-implemented method for providing page and table layout services to a client application program, the method comprising:
-
receiving a request from the client application program to format a page of a document;
in response to the request, performing one or more callback operations to the client application program to retrieve the request specifying one or more layout requirements and the portions of the document to be laid out, wherein performing the one or more callback operations comprises retrieving the one or more layout requirements and portions of the document to be laid out from at least one of a plurality of paragraph formatters;
laying out the portions of the document retrieved from the client application through the callback operations in a manner consistent with the layout requirements;
receiving a request from the client application program to perform an update of the layout of the page, the request including the identification of a location on the page that has been changed; and
in response to the request, locating a line within the page that includes the location that has been changed, reformatting the located line, determining whether a next line has changed as the result of the reformatting, and in response to determining that a next line has changed, reformatting a next line until the next line does not change as a result of the reformatting, and returning only the changes resulting from the reformatting of the page to the client application. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A computer-readable medium having computer-executable instructions stored thereon which, when executed by a computer, cause the computer to:
provide a layout manager program operative to receive a request from a client application program to format a portion of a document, to perform one or more callback operations to the client application program to retrieve portions of the document to be laid out in response to the request and layout requirements, wherein performing the one or more callback operations comprises retrieving one or more layout requirements and the portions of the document to be laid out from at least one of a plurality of paragraph formatters, and to lay out the portions of the document retrieved from the client application through the callback operations in a manner consistent with the layout requirements, the layout manager being further operative to;
receive a request from the client application program to perform an update of the layout of a page, the request including the identification of a location on the page that has been changed; and
in response to the request, locate a line within the page that includes the location that has been changed, to reformat the located line, to determine whether a next line has changed as the result of the reformatting, and in response to determining that a next line has changed, to reformat a next line until the next line does not change as a result of the reformatting, and to return only the changes resulting from the reformatting of the page to the client application program. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
Specification