SdtPr sdtPr = ((SdtElement)o).getSdtPr();
if (sdtPr!=null) {
Object o2 = sdtPr.getByClass(RPr.class);
if (o2!=null) {
RPr rPr = (RPr)o2;
RStyle rStyle = rPr.getRStyle();
if (rStyle!=null) {
// Add it
if (stylesInUse !=null) {
stylesInUse.add(rStyle.getVal());
// and linked p style (if any), useful for OpenDoPE XHTML
Style pStyle = styleDefinitionsPart.getLinkedStyle(rStyle.getVal());
if (pStyle!=null) {
stylesInUse.add(pStyle.getStyleId());
}
}
}