mirror of https://github.com/apache/poi.git
try to make comments table more extensible
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895117 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3a90544a15
commit
9c81d7f588
|
@ -286,19 +286,6 @@ public class CommentsTable extends POIXMLDocumentPart implements Comments {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Add a new author to the CommentsTable.
|
|
||||||
* This does not check if the author already exists.
|
|
||||||
*
|
|
||||||
* @param author the name of the comment author
|
|
||||||
* @return the index of the new author
|
|
||||||
*/
|
|
||||||
private int addNewAuthor(String author) {
|
|
||||||
int index = comments.getAuthors().sizeOfAuthorArray();
|
|
||||||
comments.getAuthors().insertAuthor(index, author);
|
|
||||||
return index;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the underlying CTComments list xmlbean
|
* Returns the underlying CTComments list xmlbean
|
||||||
*
|
*
|
||||||
|
@ -323,4 +310,17 @@ public class CommentsTable extends POIXMLDocumentPart implements Comments {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add a new author to the CommentsTable.
|
||||||
|
* This does not check if the author already exists.
|
||||||
|
*
|
||||||
|
* @param author the name of the comment author
|
||||||
|
* @return the index of the new author
|
||||||
|
*/
|
||||||
|
private int addNewAuthor(String author) {
|
||||||
|
int index = comments.getAuthors().sizeOfAuthorArray();
|
||||||
|
comments.getAuthors().insertAuthor(index, author);
|
||||||
|
return index;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue