private TextAuthorInitialsElement authorInitialsElement;
// package constructor, only called by Fields
AuthorField(OdfElement odfElement, boolean isAuthorInitials) {
isInitials = isAuthorInitials;
TextSpanElement spanElement = ((OdfFileDom) odfElement.getOwnerDocument()).newOdfElement(TextSpanElement.class);
odfElement.appendChild(spanElement);
if (isAuthorInitials) {
authorInitialsElement = spanElement.newTextAuthorInitialsElement();
authorInitialsElement.setTextFixedAttribute(false);
} else {
authorNameElement = spanElement.newTextAuthorNameElement();
authorNameElement.setTextFixedAttribute(false);
}
Component.registerComponent(this, getOdfElement());
}