use of org.apache.poi.ddf.EscherComplexProperty in project poi by apache.
the class HSSFPicture method setFileName.
public void setFileName(String data) {
// TODO: add trailing ?
byte[] bytes = StringUtil.getToUnicodeLE(data);
EscherComplexProperty prop = new EscherComplexProperty(EscherProperties.BLIP__BLIPFILENAME, true, bytes);
setPropertyValue(prop);
}
use of org.apache.poi.ddf.EscherComplexProperty in project poi by apache.
the class ActiveXShape method afterInsert.
@Override
protected void afterInsert(HSLFSheet sheet) {
ExControl ctrl = getExControl();
if (ctrl == null) {
throw new NullPointerException("ExControl is not defined");
}
ctrl.getExControlAtom().setSlideId(sheet._getSheetNumber());
String name = ctrl.getProgId() + "-" + getControlIndex() + '