Examples of addStyle()


Examples of ar.com.fdvs.dj.domain.DynamicJasperDesign.addStyle()

      //Add all existing styles in the design to the new one
      for (Iterator iterator = jd.getStylesList().iterator(); iterator.hasNext();) {
        JRStyle style = (JRStyle) iterator.next();
        try {
          djd.addStyle(style);
        } catch (JRException e) {
          if (log.isDebugEnabled()){
            log.warn("Duplicated style (style name \""+ style.getName()+"\") when loading design: " + e.getMessage(), e);
          }
        }
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStyles.addStyle()

    autostyle.setType("style");
    autostyle.setStyleFamily(styleFamily);
    autostyle.setStyleName(styleName);

    final OfficeStyles autoStyles = stylesCollection.getAutomaticStyles();
    autoStyles.addStyle(autostyle);
  }

  private static OfficeStyle copyStyleInternal(
      final OfficeStyle predefCommonStyle,
      final OfficeStyles styles,
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStyles.addStyle()

    {
      autostyle.setStyleName(generator.generateName("derived_anonymous"));
    }

    final OfficeStyles autoStyles = stylesCollection.getAutomaticStyles();
    autoStyles.addStyle(autostyle);
    return autostyle;
  }

  private static OfficeStyle deriveCommonStyle(final OfficeStyle commonStyle,
                                               final String styleFamily,
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStyles.addStyle()

      tableStyle.setStyleFamily("table");
      tableStyle.setStyleName("Initial_Table");
      tableStyle.setAttribute(OfficeNamespaces.STYLE_NS, "master-page-name", masterPageName);
      final Element tableProperties = produceFirstChild(tableStyle, OfficeNamespaces.STYLE_NS, "table-properties");
      tableProperties.setAttribute(OfficeNamespaces.FO_NS, "background-color", "transparent");
      commonStyles.addStyle(tableStyle);
    }
    return "Initial_Table";
  }

  private String createMasterPage() throws ReportProcessingException
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStyles.addStyle()

    style.setType("style");
    style.setAttribute(OfficeNamespaces.STYLE_NS, "name", styleName);
    style.setAttribute(OfficeNamespaces.STYLE_NS, "family", "section");
    style.addNode(sectionProperties);

    automaticStyles.addStyle(style);
    return styleName;
  }


  /**
 
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStyles.addStyle()

                graphicProperties.setAttribute(OfficeNamespaces.STYLE_NS, "vertical-rel", OfficeToken.PARAGRAPH);
                graphicProperties.setAttribute(OfficeNamespaces.STYLE_NS, HORIZONTAL_POS, "from-left"); // changed for chart

                graphicProperties.setAttribute(OfficeNamespaces.STYLE_NS, "horizontal-rel", OfficeToken.PARAGRAPH);
                commonStyles.addStyle(graphicsDefaultStyle);
            }

            // Make sure that later generated styles do not overwrite existing styles.
            fillStyleNameGenerator(predefinedStylesCollection);
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStyles.addStyle()

            tableStyle.setStyleFamily(OfficeToken.TABLE);
            tableStyle.setStyleName("Initial_Table");
            tableStyle.setAttribute(OfficeNamespaces.STYLE_NS, "master-page-name", masterPageName);
            final Element tableProperties = produceFirstChild(tableStyle, OfficeNamespaces.STYLE_NS, "table-properties");
            tableProperties.setAttribute(OfficeNamespaces.FO_NS, OfficeToken.BACKGROUND_COLOR, "transparent");
            commonStyles.addStyle(tableStyle);
        }
        return "Initial_Table";
    }

    private String createMasterPage() throws ReportProcessingException
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStyles.addStyle()

        style.setType("style");
        style.setAttribute(OfficeNamespaces.STYLE_NS, NAME, styleName);
        style.setAttribute(OfficeNamespaces.STYLE_NS, "family", "section");
        style.addNode(sectionProperties);

        automaticStyles.addStyle(style);
        return styleName;
    }

    /**
     * Starts the output of a new office document. This method writes the generic 'office:document-content' tag along with
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStyles.addStyle()

        autostyle.setType(STYLE);
        autostyle.setStyleFamily(styleFamily);
        autostyle.setStyleName(styleName);

        final OfficeStyles autoStyles = stylesCollection.getAutomaticStyles();
        autoStyles.addStyle(autostyle);
    }

    private static OfficeStyle copyStyleInternal(
            final OfficeStyle predefCommonStyle,
            final OfficeStyles styles,
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStyles.addStyle()

        {
            autostyle.setStyleName(generator.generateName("derived_anonymous"));
        }

        final OfficeStyles autoStyles = stylesCollection.getAutomaticStyles();
        autoStyles.addStyle(autostyle);
        return autostyle;
    }

    private static OfficeStyle deriveCommonStyle(final OfficeStyle commonStyle,
            final String styleFamily,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.