摘要 |
In a document layout processing device according to the invention, when the layout structure of a particular document is generated on the basis of a limitation of a layout structure common to a plurality of documents, a generating unit generates a data structure corresponding to a subordinate structure and holding information about the generation of the subordinate structure in association with a superior element having the subordinate structure, the subordinate structure including at least one element which can be generated as an element immediately subordinate to the superior element among elements constituting the layout structure common to the plurality of documents. The data structure is memorized in a memory. A selecting unit selects a subordinate element on the basis of the content of the particular document and information about the generation of the subordinate structure of the date structure and holds a selection history of the selected subordinate element in the data structure. If a failure occurs in layout, the selecting unit preferentially selects a subordinate element which can be generated in association with a superior element which has caused the failure, on the basis of a selection history of a data structure corresponding to the superior element.
|