/** * There can be hyperlinks references in CTNonVisualDrawingProps. * @param drawingProps * @param artificialList */ private void handleCTNonVisualDrawingProps(CTNonVisualDrawingProps drawingProps, List<Object> artificialList){ if (drawingProps != null) { // <wp:docPr descr="C:\Documents and Settings\Jason Harrop\My Documents\tmp-test-docs\pangolin.jpeg" // name="Picture 1" id="1"/> if (drawingProps.getDescr()!=null) { drawingProps.setDescr(null); } // Name is probably ok CTHyperlink docPrHyperLink = drawingProps.getHlinkClick(); if (docPrHyperLink != null) artificialList.add(docPrHyperLink); } }
/** * There can be hyperlinks references in CTNonVisualDrawingProps. * @param drawingProps * @param artificialList */ private void handleCTNonVisualDrawingProps(CTNonVisualDrawingProps drawingProps, List<Object> artificialList){ if (drawingProps != null) { // <wp:docPr descr="C:\Documents and Settings\Jason Harrop\My Documents\tmp-test-docs\pangolin.jpeg" // name="Picture 1" id="1"/> if (drawingProps.getDescr()!=null) { drawingProps.setDescr(null); } // Name is probably ok CTHyperlink docPrHyperLink = drawingProps.getHlinkClick(); if (docPrHyperLink != null) artificialList.add(docPrHyperLink); } }
nonVisualDrawingProps.setId(currentId + 2); nonVisualDrawingProps.setName(imagePartName.substring(imagePartName.lastIndexOf("/") + 1)); nonVisualDrawingProps.setDescr(nonVisualDrawingProps.getName());
nonVisualDrawingProps.setId(currentId + 2); nonVisualDrawingProps.setName(imagePartName.substring(imagePartName.lastIndexOf("/") + 1)); nonVisualDrawingProps.setDescr(nonVisualDrawingProps.getName());