Home | Trees | Indices | Help |
|
---|
|
The module provides the methods for inspecting odt files.
Author: Vili Auvinen, Juho Tammela, Olli Kauppinen
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
__package__ =
|
|
Gets style element by the given style name. It searches first from the file content.xml if doesn't find then searches from the file style.xml.
|
Gets the style element by the given style name. It searches first from content.xml if doesn't find then searches from style.xml.
Note: XML: <style:style style:name="Text_20_body" style:display-name="Text body"> <style:style style:name="tutkielma"> Display name --> style name " "-->"_20_" "_"-->"_5f_" |
Gets the style display name by the given style name. It uses _getStyleElementByStyleName method to find the style. If the style doesn't have display-name attribute then the display name is just the style name.
Note: XML example: <style:style style:name="Text_20_body" style:display-name="Text body"> <style:style style:name="tutkielma"> Display name --> style name " "-->"_20_" "_"-->"_5f_" |
Get the master page style element by the given master page style name.
|
Gets page layout element by the given page layout name.
|
Get the page marginals. Searches for only from used master pages.
See Also: convertCmOrInDictToString |
Get the page size.
See Also: convertCmOrInDictToString |
Get the all master page elements which are used in document. 'Standard' master page style used if there is no other definitions.
|
Get the default style element by the given style family.
Note: Every style is based on style family. <style:style style:name="Heading_20_1" style:display-name="Heading 1" style:family="paragraph"> |
Get the master page style name by the given style element.
|
Checks the empty paragraphs from document. getDocumentPararaphs method gets all paragraphs to be checked for. An empty paragraph is permitted after the table of content and in page break elements.
|
Checks double spaces. Checks if the document has text:s tag.
Note: XML example: <text:s text:c="2"/> --> 3 spaces <text:s/> --> 2 spaces |
Checks tabulators from the document. getDocumentPararaphs method gets the all paragraphs to be checked for.
|
Checks asterisk from the document. getDocumentPararaphs method gets all paragraphs to check for.
|
Gets all the paragraphs from the document. Including all text-p(text paragraphs) and text-h (headings) elements. It is used in checkTabs and checkEmptyParagraphs.
|
Gets all used style elements. In the file content.xml the element office:body contains the used styles.
|
Gets all used style names. Gets the parent style of PI-style (I is integer value) like P1 is Heading_20_1.
|
Checks if the given style element contains the page break.
|
Gets the names of the styles which contains the page break.
|
Gets all the style names which changes the master page. The master page will change when a style has master-page-name attribute and its is nonempty. If is empty ("") then master page is standard and if has no attribute with same as previous master page.
Note: masterPageDict: contains a key as a style name and value as a master page name. |
Gets section break elements from the document. Finds all the elements (including text, list, heading...) which chance the section.
|
Gets table of content. Each TOC entry is own entry in tocList.
|
Compares document headings to the TOC entries.
|
Checks if the document contains the table of contents.
|
Checks if the document have the alphabetical index.
|
Gets marked alphabetical index entries from the document.
|
Gets the alphabetical index content. Each alphabetical index entry is an own entry in the list.
|
Compares the document marked texts to the alphabetical index entries.
|
Gets all headings from the document and the used outline level. Each heading is an own entry in the list.
|
Checks if the document has a table.
|
Gets tables in dictionary. Every table is own entry in tablesDict (key = table1,table2...) Every tableDict has table's cell address as key (A1,A2...) and cell value as dictionary's value.
|
Checks page number format by given element and master page element.
|
Gets the author and the number format from the header and the footer.
|
Checks the outline style. Level is highest used headings outline level. Normally Heading 1 should be 1 and Heading 2 should be 2.
Note: XML example: <text:outline-style style:name="Outline"> <text:outline-level-style text:level="1" style:num-format="1"> <style:list-level-properties text:list-level-position-and-space-mode="label-alignment"> <style:list-level-label-alignment text:label-followed-by="listtab" text:list-tab-stop-position="0.762cm" fo:text-indent="-0.762cm" fo:margin-left="0.762cm"/> </style:list-level-properties> </text:outline-level-style> <text:outline-level-style text:level="2" style:num-format="1" text:display-levels="2"> <style:list-level-properties text:list-level-position-and-space-mode="label-alignment"> <style:list-level-label-alignment text:label-followed-by="listtab" text:list-tab-stop-position="1.016cm" fo:text-indent="-1.016cm" fo:margin-left="1.016cm"/> </style:list-level-properties> </text:outline-level-style> <text:outline-level-style text:level="3" style:num-format=""> <style:list-level-properties text:list-level-position-and-space-mode="label-alignment"> <style:list-level-label-alignment text:label-followed-by="listtab" text:list-tab-stop-position="1.27cm" fo:text-indent="-1.27cm" fo:margin-left="1.27cm"/> </style:list-level-properties> </text:outline-level-style> ... </text:outline-style> |
Gets the image paths. Checks if the document have an image. Images are located in the picture folder.
|
Checks if the document contains an image.
|
Checks if the document contains a list.
|
Prints the lists of the document. To Do: getListContent |
Gets objects paths. Searches if the document have an image.
|
Checks if the given style is used in the document.
|
Get style defination attributes by given style name. parentStyleList is for executing the inheritation of styles.
Notes:
|
Searches if the style have the wanted attribute if it have then replace attribute value, otherwise keep old value. The style attribute list contains all the relevant style information.
|
Gets the parent style list for the given style name.
|
Checks if the style have a parent style.
|
Checks the end- and the footnotes.
|
Checks the caption and the reference of the image.
|
Checks that the front page is done correctly
|
Gets the page number format and the author name from the document.
|
Checks that the headers and the footers of the document are made correctly. Assumes that the document has three sections:
See Also: checkSections method must pass in order to run this method Places findings in the headerAndFooterDict as key-boolean pairs:
|
Gets the elements of the wanted section. The section break elements changes the section. Searches trough the whole document. Adds each element to right section in sectionElements dictionary. When finds section break element then changes the dictionary to next section. First list elements to cover-section. Second list elements to toc-section. And last list element to text-section. Document have to have atleast 3 sections.
|
Checks that the document sections have been made correctly. If the amount of the section breaks is not over 3 then return the error message list.
|
Gets all the meta information.
See Also: ooo_meta_inspector.getMeta |
Gets the author, who have last modified the document.
|
Gets document title from the meta information.
|
Gets the last modified date and time from the meta.
|
Goes through all the elements in the document which have used any style. Checks that elements are using the correct styles (i.e. not Standard or Default style) and that no manual style definitions are made (like T1). |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jun 21 17:30:07 2011 | http://epydoc.sourceforge.net |