* @author Sebastian R�sgen
*/
public TextContentEnumeration(ITextDocument textDocument,
XTextRange xTextRange) throws IllegalArgumentException {
if (textDocument == null)
throw new IllegalArgumentException(
"Submitted text document is not valid.");
if (xTextRange == null)
throw new IllegalArgumentException(
"Submitted OpenOffice.org XTextRange interface is not valid.");
this.xTextRange = xTextRange;
this.textDocument = textDocument;
}