private void extractHyperLinksFromShape(CTShape ctShape, XHTMLContentHandler xhtml) throws SAXException { if (ctShape == null) return; CTShapeNonVisual nvSpPR = ctShape.getNvSpPr(); if (nvSpPR == null) return; CTNonVisualDrawingProps cNvPr = nvSpPR.getCNvPr(); if (cNvPr == null) return; CTHyperlink ctHyperlink = cNvPr.getHlinkClick(); if (ctHyperlink == null) return; String url = drawingHyperlinks.get(ctHyperlink.getId()); if (url != null) { xhtml.startElement("a", "href", url); xhtml.characters(url); xhtml.endElement("a"); } CTHyperlink ctHoverHyperlink = cNvPr.getHlinkHover(); if (ctHoverHyperlink == null) return; url = drawingHyperlinks.get(ctHoverHyperlink.getId()); if (url != null) { xhtml.startElement("a", "href", url); xhtml.characters(url); xhtml.endElement("a"); } }
private void extractHyperLinksFromShape(CTShape ctShape, XHTMLContentHandler xhtml) throws SAXException { if (ctShape == null) return; CTShapeNonVisual nvSpPR = ctShape.getNvSpPr(); if (nvSpPR == null) return; CTNonVisualDrawingProps cNvPr = nvSpPR.getCNvPr(); if (cNvPr == null) return; CTHyperlink ctHyperlink = cNvPr.getHlinkClick(); if (ctHyperlink == null) return; String url = drawingHyperlinks.get(ctHyperlink.getId()); if (url != null) { xhtml.startElement("a", "href", url); xhtml.characters(url); xhtml.endElement("a"); } CTHyperlink ctHoverHyperlink = cNvPr.getHlinkHover(); if (ctHoverHyperlink == null) return; url = drawingHyperlinks.get(ctHoverHyperlink.getId()); if (url != null) { xhtml.startElement("a", "href", url); xhtml.characters(url); xhtml.endElement("a"); } }
private void extractHyperLinksFromShape(CTShape ctShape, XHTMLContentHandler xhtml) throws SAXException { if (ctShape == null) return; CTShapeNonVisual nvSpPR = ctShape.getNvSpPr(); if (nvSpPR == null) return; CTNonVisualDrawingProps cNvPr = nvSpPR.getCNvPr(); if (cNvPr == null) return; CTHyperlink ctHyperlink = cNvPr.getHlinkClick(); if (ctHyperlink == null) return; String url = drawingHyperlinks.get(ctHyperlink.getId()); if (url != null) { xhtml.startElement("a", "href", url); xhtml.characters(url); xhtml.endElement("a"); } CTHyperlink ctHoverHyperlink = cNvPr.getHlinkHover(); if (ctHoverHyperlink == null) return; url = drawingHyperlinks.get(ctHoverHyperlink.getId()); if (url != null) { xhtml.startElement("a", "href", url); xhtml.characters(url); xhtml.endElement("a"); } }