Examples of containsStyle()


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

    private String generateInitialTableStyle() throws ReportProcessingException
    {
        final OfficeStylesCollection predefStyles = getPredefinedStylesCollection();
        final OfficeStyles commonStyles = predefStyles.getAutomaticStyles();
        if (!commonStyles.containsStyle(OfficeToken.TABLE, "Initial_Table"))
        {
            final String masterPageName = createMasterPage();

            final OfficeStyle tableStyle = new OfficeStyle();
            tableStyle.setStyleFamily(OfficeToken.TABLE);
View Full Code Here

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

        autostyle.setStyleName(nameGenerator.generateName("derived_" + styleName));
        autostyle.setStyleParent(styleName);

        // now copy the common style ..
        final OfficeStyles commonStyles = commonCollection.getCommonStyles();
        if (!commonStyles.containsStyle(styleFamily, styleName))
        {
            copyStyleInternal(commonStyle, commonStyles,
                    commonCollection, commonCollection, predefCollection,
                    styleFamily, new HashSet());
        }
View Full Code Here

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

      final OfficeDocument reportDoc = (OfficeDocument) report;
      predefinedStylesCollection = reportDoc.getStylesCollection();

      final OfficeStyles commonStyles = predefinedStylesCollection.getCommonStyles();
      if (commonStyles.containsStyle("graphic", "Graphics") == false)
      {
        final OfficeStyle graphicsDefaultStyle = new OfficeStyle();
        graphicsDefaultStyle.setStyleFamily("graphic");
        graphicsDefaultStyle.setStyleName("Graphics");
        final Element graphicProperties = produceFirstChild(graphicsDefaultStyle, OfficeNamespaces.STYLE_NS, "graphic-properties");
View Full Code Here

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

    autostyle.setStyleName(nameGenerator.generateName("derived_" + styleName));
    autostyle.setStyleParent(styleName);

    // now copy the common style ..
    final OfficeStyles commonStyles = commonCollection.getCommonStyles();
    if (commonStyles.containsStyle(styleFamily, styleName) == false)
    {
      copyStyleInternal(commonStyle, commonStyles,
          commonCollection, commonCollection, predefCollection,
          styleFamily, new HashSet());
    }
View Full Code Here

Examples of org.geoserver.w3ds.utilities.X3DInfoExtract.containsStyle()

    int i = 0;
    for (W3DSLayerInfo wl : layers) {
      x3dInfoExtract.setLayerInfo(wl.getLayerInfo());
      String styleName = stylesNames[i];
      if (!styleName.isEmpty()) {
        if (x3dInfoExtract.containsStyle(styleName)) {
          StyleInfo styleInfo = catalog.getStyleByName(styleName);
          if (styleInfo != null) {
            wl.setRequestStyle(styleInfo);
            i++;
            continue;
View Full Code Here

Examples of org.geoserver.w3ds.utilities.X3DInfoExtract.containsStyle()

      Catalog catalog) throws IOException, ParserConfigurationException,
      SAXException {
    X3DInfoExtract x3dInfoExtract = new X3DInfoExtract(catalog, false);
    x3dInfoExtract.setLayerInfo(layer.getLayerInfo());
    if (!styleName.isEmpty()) {
      if (x3dInfoExtract.containsStyle(styleName)) {
        StyleInfo styleInfo = catalog.getStyleByName(styleName);
        if (styleInfo != null) {
          layer.setRequestStyle(styleInfo);
          return;
        }
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.