public String getAction() { if (link.isSetAction()) { return link.getAction(); } else { return null; } }
@Override public HyperlinkType getType() { String action = _link.getAction(); if (action == null) { action = ""; } if (action.equals("ppaction://hlinksldjump") || action.startsWith("ppaction://hlinkshowjump")) { return HyperlinkType.DOCUMENT; } String address = getAddress(); if (address == null) { address = ""; } if (address.startsWith("mailto:")) { return HyperlinkType.EMAIL; } else { return HyperlinkType.URL; } }
@Override public String getAddress() { final String id = _link.getId(); if (id == null || id.isEmpty()) { return _link.getAction(); } final PackageRelationship rel = _sheet.getPackagePart().getRelationship(id); if (rel == null) { return null; } final URI targetURI = rel.getTargetURI(); return (targetURI == null) ? null : targetURI.toASCIIString(); }
RelationPart rp = _sheet.addRelation(null, XSLFRelation.SLIDE, pp); _link.setId(rp.getRelationship().getId()); _link.setAction(src._link.getAction());
public String getAction() { if (link.isSetAction()) { return link.getAction(); } else { return null; } }
@Override public HyperlinkType getType() { String action = _link.getAction(); if (action == null) { action = ""; } if (action.equals("ppaction://hlinksldjump") || action.startsWith("ppaction://hlinkshowjump")) { return HyperlinkType.DOCUMENT; } String address = getAddress(); if (address == null) { address = ""; } if (address.startsWith("mailto:")) { return HyperlinkType.EMAIL; } else { return HyperlinkType.URL; } }
@Override public String getAddress() { final String id = _link.getId(); if (id == null || id.isEmpty()) { return _link.getAction(); } final PackageRelationship rel = _sheet.getPackagePart().getRelationship(id); if (rel == null) { return null; } final URI targetURI = rel.getTargetURI(); return (targetURI == null) ? null : targetURI.toASCIIString(); }
RelationPart rp = _sheet.addRelation(null, XSLFRelation.SLIDE, pp); _link.setId(rp.getRelationship().getId()); _link.setAction(src._link.getAction());