コード例 #1
0
 public void transformTemplateStyles() throws DRException {
   for (DRIStyle style : templateStyles.values()) {
     if (styles.containsKey(style.getName())) {
       continue;
     }
     transformStyle(style, false);
   }
 }
コード例 #2
0
 private DRDesignStyle style(DRIStyle style, boolean textStyle, DefaultStyleType defaultStyleType)
     throws DRException {
   final DRDesignStyle designStyle;
   if (StringUtils.isBlank(style.getName())) {
     designStyle = new DRDesignStyle();
   } else {
     designStyle = new DRDesignStyle(style.getName());
   }
   baseStyle(designStyle, style);
   if (style.getParentStyle() != null) {
     designStyle.setParentStyle(
         transformStyle(style.getParentStyle(), textStyle, defaultStyleType));
   }
   for (DRIConditionalStyle conditionalStyle : style.getConditionalStyles()) {
     designStyle.addConditionalStyle(conditionalStyle(conditionalStyle));
   }
   return designStyle;
 }