Document.OdfMediaType.TEXT_TEMPLATE
.getMediaTypeString()))
return;
GraphicProperties graphicPropertiesForWrite = getGraphicPropertiesForWrite();
DrawControlElement controlElement = (DrawControlElement) mOdfElement;
controlElement.setTextAnchorTypeAttribute(achorType.toString());
// set default relative
switch (achorType) {
case AS_CHARACTER:
graphicPropertiesForWrite
.setVerticalRelative(VerticalRelative.BASELINE);
graphicPropertiesForWrite
.setVerticalPosition(FrameVerticalPosition.TOP);
break;
case TO_CHARACTER:
graphicPropertiesForWrite
.setVerticalRelative(VerticalRelative.PARAGRAPH);
graphicPropertiesForWrite
.setVerticalPosition(FrameVerticalPosition.TOP);
graphicPropertiesForWrite
.setHorizontalRelative(HorizontalRelative.PARAGRAPH);
graphicPropertiesForWrite
.setHorizontalPosition(FrameHorizontalPosition.CENTER);
break;
case TO_PAGE:
controlElement.setTextAnchorPageNumberAttribute(Integer.valueOf(1));
graphicPropertiesForWrite
.setVerticalRelative(VerticalRelative.PAGE);
graphicPropertiesForWrite
.setVerticalPosition(FrameVerticalPosition.FROMTOP);
graphicPropertiesForWrite