// if this frame has not hyperlink setting
Node brother = thisFrame.getNextSibling();
if (parent instanceof OfficeImageElement)
return;
try {
DrawAElement aElement = mOwnerDocument.getContentDom()
.newOdfElement(DrawAElement.class);
aElement.setXlinkHrefAttribute(linkto.toString());
aElement.setXlinkTypeAttribute("simple");
parent.removeChild(thisFrame);
aElement.appendChild(thisFrame);
if (brother == null)
parent.appendChild(aElement);
parent.insertBefore(aElement, brother);
} catch (Exception e) {
Logger.getLogger(Frame.class.getName()).log(Level.SEVERE, e.getMessage(), e);