Hi
The following link gives me a 404 error
http://dev.plutext.org/trac/docx4j/trac ... venEclipse
Thanks
James
It is currently Fri Apr 04, 2025 11:06 am
private void setLockLevel(SdtElement sdtElement, STLock lockLevel) {
Boolean lockFound = Boolean.FALSE;
for (Object o: sdtElement.getSdtPr().getRPrOrAliasOrLock()) {
o = XmlUtils.unwrap(o);
if (o instanceof CTLock) {
lockFound = Boolean.TRUE;
((CTLock) o).setVal(lockLevel);
break;
}
}
if (!lockFound.booleanValue()) {
CTLock newLock = new CTLock();
newLock.setVal(lockLevel);
sdtElement.getSdtPr().getRPrOrAliasOrLock().add(newLock);
}
}
Total posts 10157 • Total topics 2857 • Total members 2087