Fix and update JavaDoc entries, and correct areas with wildy inconsistent whitespace / style to the surrounding code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1492802 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8bb5601ff8
commit
5863a82a6e
@ -26,15 +26,12 @@ import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl;
|
||||
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTc;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 8 Jan 2010
|
||||
* <p>An IBody represents the different parts of the document which
|
||||
* can contain collections of Paragraphs and Tables. It provides a
|
||||
* common way to work with these and their contents.</p>
|
||||
* <p>Typically, this is something like a XWPFDocument, or one of
|
||||
* the parts in it like XWPFHeader, XWPFFooter, XWPFTableCell
|
||||
* </p>
|
||||
* <p>
|
||||
* // This Interface represents an object, which is able to have a collection of paragraphs and tables
|
||||
* this can be XWFPDocument, XWPFHeader, XWPFFooter, XWPFTableCell
|
||||
* </p>
|
||||
* @author Philipp Epp
|
||||
*
|
||||
*/
|
||||
public interface IBody {
|
||||
/**
|
||||
@ -43,14 +40,14 @@ public interface IBody {
|
||||
* belongs.
|
||||
* @return the Part, to which the body belongs
|
||||
*/
|
||||
POIXMLDocumentPart getPart();
|
||||
public POIXMLDocumentPart getPart();
|
||||
|
||||
/**
|
||||
* get the PartType of the body, for example
|
||||
* DOCUMENT, HEADER, FOOTER, FOOTNOTE,
|
||||
* @return the PartType of the body
|
||||
*/
|
||||
BodyType getPartType();
|
||||
public BodyType getPartType();
|
||||
|
||||
/**
|
||||
* Returns an Iterator with paragraphs and tables,
|
||||
@ -122,12 +119,10 @@ public interface IBody {
|
||||
* returns the TableCell to which the Table belongs
|
||||
* @param cell
|
||||
*/
|
||||
XWPFTableCell getTableCell(CTTc cell);
|
||||
public XWPFTableCell getTableCell(CTTc cell);
|
||||
|
||||
/**
|
||||
* Return XWPFDocument
|
||||
*/
|
||||
public XWPFDocument getXWPFDocument();
|
||||
|
||||
}
|
||||
|
||||
|
@ -74,18 +74,18 @@ import org.openxmlformats.schemas.wordprocessingml.x2006.main.STDocProtect;
|
||||
import org.openxmlformats.schemas.wordprocessingml.x2006.main.StylesDocument;
|
||||
|
||||
/**
|
||||
* Experimental class to do low level processing
|
||||
* of docx files.
|
||||
* <p>High(ish) level class for working with .docx files.</p>
|
||||
*
|
||||
* If you're using these low level classes, then you
|
||||
* will almost certainly need to refer to the OOXML
|
||||
* specifications from
|
||||
* <p>This class tries to hide some of the complexity
|
||||
* of the underlying file format, but as it's not a
|
||||
* mature and stable API yet, certain parts of the
|
||||
* XML structure come through. You'll therefore almost
|
||||
* certainly need to refer to the OOXML specifications
|
||||
* from
|
||||
* http://www.ecma-international.org/publications/standards/Ecma-376.htm
|
||||
*
|
||||
* WARNING - APIs expected to change rapidly
|
||||
* at some point in your use.</p>
|
||||
*/
|
||||
public class XWPFDocument extends POIXMLDocument implements Document, IBody {
|
||||
|
||||
private CTDocument1 ctDocument;
|
||||
private XWPFSettings settings;
|
||||
/**
|
||||
@ -692,7 +692,6 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody {
|
||||
*/
|
||||
@Override
|
||||
protected void commit() throws IOException {
|
||||
|
||||
XmlOptions xmlOptions = new XmlOptions(DEFAULT_XML_OPTIONS);
|
||||
xmlOptions.setSaveSyntheticDocumentElement(new QName(CTDocument1.type.getName().getNamespaceURI(), "document"));
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
@ -1355,4 +1354,4 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody {
|
||||
public XWPFDocument getXWPFDocument() {
|
||||
return this;
|
||||
}
|
||||
} // end class
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user