Examples of OfficeStylesCollection


Examples of com.sun.star.report.pentaho.model.OfficeStylesCollection

            // todo: Store the page-layouts as well.
            // The page layouts are derived from a common template, but as the
            // header-heights differ, we have to derive these beasts instead
            // of copying them

            final OfficeStylesCollection officeStylesCollection = getGlobalStylesCollection();
            final OfficeMasterStyles officeMasterStyles = officeStylesCollection.getMasterStyles();
            final String pageLayoutTemplate = currentMasterPage.getPageLayout();
            if (pageLayoutTemplate == null)
            {
                // there is no pagelayout. Create one ..
                final String derivedLayout = masterPageFactory.createPageStyle(getGlobalStylesCollection().getAutomaticStyles(), headerSize, footerSize);
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStylesCollection

        contentProcessingState = TextRawReportTarget.CP_SETUP;

        activePageContext.clear();
        activePageContext.push(new PageContext());

        final OfficeStylesCollection predefStyles = getPredefinedStylesCollection();
        masterPageFactory = new MasterPageFactory(predefStyles.getMasterStyles());

        predefStyles.getAutomaticStyles().addStyle(createVariablesStyle(true));
        predefStyles.getAutomaticStyles().addStyle(createVariablesStyle(false));
    }
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStylesCollection

        if (role == OfficeDocumentReportTarget.ROLE_TEMPLATE ||
                role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_HEADER ||
                role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_FOOTER)
        {
            // Start buffering with an dummy styles-collection, so that the global styles dont get polluted ..
            startBuffering(new OfficeStylesCollection(), true);
        }
        else if (role == OfficeDocumentReportTarget.ROLE_PAGE_HEADER)
        {
            startBuffering(getGlobalStylesCollection(), true);
            pageHeaderOnReportHeader = PageSection.isPrintWithReportHeader(attrs);
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStylesCollection

      }

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

      contentStylesCollection = new OfficeStylesCollection();
      globalStylesCollection = new OfficeStylesCollection();

      startBuffering(contentStylesCollection, true);
    }
    catch (IOException e)
    {
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStylesCollection

  }

  protected void performStyleProcessing(final AttributeMap attrs)
      throws ReportProcessingException
  {
    final OfficeStylesCollection stylesCollection = getStylesCollection();
    final OfficeStylesCollection predefCollection = getPredefinedStylesCollection();
    final OfficeStylesCollection globalStylesCollection = getGlobalStylesCollection();

    final String elementNamespace =
        ReportTargetUtil.getNamespaceFromAttribute(attrs);
    final String elementName =
        ReportTargetUtil.getElemenTypeFromAttribute(attrs);
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStylesCollection

  {
    if (role == OfficeDocumentReportTarget.ROLE_REPEATING_GROUP_FOOTER ||
        role == OfficeDocumentReportTarget.ROLE_REPEATING_GROUP_HEADER ||
        role == OfficeDocumentReportTarget.ROLE_TEMPLATE)
    {
      startBuffering(new OfficeStylesCollection(), true);
    }
  }
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStylesCollection

  }


  protected CSSNumericValue computeRowHeight(final String rowStyle)
  {
    final OfficeStylesCollection contentStyles = getContentStylesCollection();
    final OfficeStyle style = contentStyles.getStyle("table-row", rowStyle);
    if (style != null)
    {
      final Element element = style.getTableRowProperties();
      if (element != null)
      {
        final String height = (String) element.getAttribute(OfficeNamespaces.STYLE_NS, "row-height");
        if (height != null)
        {
          return parseLength(height);
        }
      }

      final String styleParent = style.getStyleParent();
      if (styleParent != null)
      {
        return computeRowHeight(styleParent);
      }
    }

    final OfficeStylesCollection globalStyles = getGlobalStylesCollection();
    final OfficeStyle globalStyle = globalStyles.getStyle("table-row", rowStyle);
    if (globalStyle != null)
    {
      final Element element = globalStyle.getTableRowProperties();
      if (element != null)
      {
        final String height = (String) element.getAttribute(OfficeNamespaces.STYLE_NS, "row-height");
        if (height != null)
        {
          return parseLength(height);
        }
      }
      final String styleParent = globalStyle.getStyleParent();
      if (styleParent != null)
      {
        return computeRowHeight(styleParent);
      }
    }

    final OfficeStylesCollection predefStyles = getPredefinedStylesCollection();
    final OfficeStyle predefStyle = predefStyles.getStyle("table-row", rowStyle);
    if (predefStyle != null)
    {
      final Element element = predefStyle.getTableRowProperties();
      if (element != null)
      {
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStylesCollection

  }


  protected CSSNumericValue computeColumnWidth(final String colStyle)
  {
    final OfficeStylesCollection contentStyles = getContentStylesCollection();
    final OfficeStyle style = contentStyles.getStyle("table-column", colStyle);
    if (style != null)
    {
      final Element element = style.getTableColumnProperties();
      if (element != null)
      {
        final String height = (String) element.getAttribute(OfficeNamespaces.STYLE_NS, "column-width");
        if (height != null)
        {
          return parseLength(height);
        }
      }

      final String styleParent = style.getStyleParent();
      if (styleParent != null)
      {
        return computeRowHeight(styleParent);
      }
    }

    final OfficeStylesCollection globalStyles = getGlobalStylesCollection();
    final OfficeStyle globalStyle = globalStyles.getStyle("table-column", colStyle);
    if (globalStyle != null)
    {
      final Element element = globalStyle.getTableColumnProperties();
      if (element != null)
      {
        final String height = (String) element.getAttribute(OfficeNamespaces.STYLE_NS, "column-width");
        if (height != null)
        {
          return parseLength(height);
        }
      }
      final String styleParent = globalStyle.getStyleParent();
      if (styleParent != null)
      {
        return computeRowHeight(styleParent);
      }
    }

    final OfficeStylesCollection predefStyles = getPredefinedStylesCollection();
    final OfficeStyle predefStyle = predefStyles.getStyle("table-column", colStyle);
    if (predefStyle != null)
    {
      final Element element = predefStyle.getTableColumnProperties();
      if (element != null)
      {
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStylesCollection

        return null;
    }

    protected CSSNumericValue computeColumnWidth(final String colStyle)
    {
        final OfficeStylesCollection contentStyles = getContentStylesCollection();
        final OfficeStyle style = contentStyles.getStyle(OfficeToken.TABLE_COLUMN, colStyle);
        if (style != null)
        {
            final Element element = style.getTableColumnProperties();
            if (element != null)
            {
                final String height = (String) element.getAttribute(OfficeNamespaces.STYLE_NS, "column-width");
                if (height != null)
                {
                    return parseLength(height);
                }
            }

            final String styleParent = style.getStyleParent();
            if (styleParent != null)
            {
                return computeRowHeight(styleParent);
            }
        }

        final OfficeStylesCollection globalStyles = getGlobalStylesCollection();
        final OfficeStyle globalStyle = globalStyles.getStyle(OfficeToken.TABLE_COLUMN, colStyle);
        if (globalStyle != null)
        {
            final Element element = globalStyle.getTableColumnProperties();
            if (element != null)
            {
                final String height = (String) element.getAttribute(OfficeNamespaces.STYLE_NS, "column-width");
                if (height != null)
                {
                    return parseLength(height);
                }
            }
            final String styleParent = globalStyle.getStyleParent();
            if (styleParent != null)
            {
                return computeRowHeight(styleParent);
            }
        }

        final OfficeStylesCollection predefStyles = getPredefinedStylesCollection();
        final OfficeStyle predefStyle = predefStyles.getStyle(OfficeToken.TABLE_COLUMN, colStyle);
        if (predefStyle != null)
        {
            final Element element = predefStyle.getTableColumnProperties();
            if (element != null)
            {
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStylesCollection

            }

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

            contentStylesCollection = new OfficeStylesCollection();
            globalStylesCollection = new OfficeStylesCollection();

            startBuffering(contentStylesCollection, true);
        }
        catch (IOException e)
        {
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.