Examples of StyleSheet


Examples of at.bestsolution.efxclipse.tooling.css.cssDsl.stylesheet

   
    for (Token t : toks) {
      System.err.println("TOKEN: " + t);
    }
   
    stylesheet s;
   
    try {
    s = (stylesheet) getModelAndExpect(".class{ property:none; }", EXPECT_ERRORS);
    System.err.println(s);
   
View Full Code Here

Examples of com.adobe.dp.epub.style.Stylesheet

    while (s.hasNext()) {
      ResourceRef ref = (ResourceRef) s.next();
      Resource r = ref.getResource();
      if (r instanceof StyleResource) {
        StyleResource sr = (StyleResource) r;
        Stylesheet stylesheet = sr.getStylesheet();
        if (stylesheet != null) {
          CSSStylesheet css = stylesheet.getCSS();
          if (css != null)
            engine.add(css, null);
        }
      }
    }
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.javascript.host.Stylesheet

     * Returns the media types that the imported CSS style sheet applies to.
     * @return the media types that the imported CSS style sheet applies to
     */
    public MediaList jsxGet_media() {
        if (media_ == null) {
            final Stylesheet parent = this.jsxGet_parentStyleSheet();
            final org.w3c.dom.stylesheets.MediaList ml = getImportRule().getMedia();
            media_ = new MediaList(parent, ml);
        }
        return media_;
    }
View Full Code Here

Examples of com.github.sommeri.less4j.core.ast.StyleSheet

    termBuilder = new TermBuilder(this, problemsHandler);
    mixinsParametersBuilder = new MixinsParametersBuilder(this, problemsHandler);
  }

  public StyleSheet handleStyleSheet(HiddenTokenAwareTree token) {
    StyleSheet result = new StyleSheet(token);
    if (token.getChildren() == null || token.getChildren().isEmpty())
      return result;

    for (HiddenTokenAwareTree kid : token.getChildren()) {
      result.addMember(switchOn(kid));
    }

    return result;
  }
View Full Code Here

Examples of com.google.minijoe.html.css.StyleSheet

    Vector childStyles = new Vector();
    Vector descendantStyles = new Vector();

    int size = applyHere.size();
    for (int i = 0; i < size; i++) {
      StyleSheet styleSheet = (StyleSheet) applyHere.elementAt(i);
      styleSheet.collectStyles(this, queue, childStyles, descendantStyles);
    }
    size = applyAnywhere.size();
    for (int i = 0; i < size; i++) {
      StyleSheet styleSheet = (StyleSheet) applyAnywhere.elementAt(i);
      descendantStyles.addElement(styleSheet);
      styleSheet.collectStyles(this, queue, childStyles, descendantStyles);
    }

    for (int i = 0; i < queue.size(); i++) {
      style.set(((Style) queue.elementAt(i)));
    }
View Full Code Here

Examples of com.icl.saxon.StyleSheet

      templates = factory.newTemplates(inXSLsrc);
    } catch (TransformerConfigurationException e) {
      throw new Sindb2xhtmlException("Failed to compile input sources.",e);
    }
   
    StyleSheet stylesheet = new StyleSheet();

    try {
      stylesheet.processFile(inXMLsrc, templates, tmp, null);
      tmp.deleteOnExit();
    } catch (TransformerException e) {
      throw new Sindb2xhtmlException(e);
    }
  }
View Full Code Here

Examples of com.kitfox.svg.xml.StyleSheet

        //Check for style sheet
        SVGRoot root = getRoot();
        if (root != null)
        {
            StyleSheet ss = root.getStyleSheet();
            if (ss != null)
            {
                return ss.getStyle(attrib, getTagName(), cssClass);
            }
        }

        //If we're recursive, check parents
        if (recursive)
View Full Code Here

Examples of com.lowagie.text.html.simpleparser.StyleSheet

  public void addElementFromRtf(Phrase target, String rtfData, Font font) {
    String htmlStyle = rtfData;
    String htmlStr = rtfData.replace("LINE-HEIGHT: normal;", "");/*.replaceAll("style=\".*?\"", "")*/;
    try {     
      if (rtfData != null && !rtfData.isEmpty()) {
        StyleSheet styles = new StyleSheet();
        List<Element> elist =  HTMLWorker.parseToList(new StringReader(htmlStr), styles);
        for (Element element : elist) {
          if (element instanceof Paragraph) {
            if (font != null) {
              ArrayList<Chunk> cList = ((Paragraph) element).getChunks();
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet

            xsltc.setClassName(transletName);

            // Get java-legal class name from XSLTC module
            transletName = xsltc.getClassName();

            Stylesheet stylesheet = null;
            SyntaxTreeNode root = _parser.getDocumentRoot();

            // Compile the translet - this is where the work is done!
            if (!_parser.errorsFound() && root != null) {
                // Create a Stylesheet element from the root node
                stylesheet = _parser.makeStylesheet(root);
                stylesheet.setSystemId(_systemId);
                stylesheet.setParentStylesheet(null);

                // Set a document loader (for xsl:include/import) if defined
                if (_uriResolver != null) {
                    stylesheet.setSourceLoader(this);
                }

                _parser.setCurrentStylesheet(stylesheet);

                // Set it as top-level in the XSLTC object
                xsltc.setStylesheet(stylesheet);

                // Create AST under the Stylesheet element
                _parser.createAST(stylesheet);
            }

            // Generate the bytecodes and output the translet class(es)
            if (!_parser.errorsFound() && stylesheet != null) {
                stylesheet.setMultiDocument(xsltc.isMultiDocument());
                stylesheet.setHasIdCall(xsltc.hasIdCall());

                // Class synchronization is needed for BCEL
                synchronized (xsltc.getClass()) {
                    stylesheet.translate();
                }
            }

            if (!_parser.errorsFound()) {
                // Check that the transformation went well before returning
View Full Code Here

Examples of com.vaadin.annotations.StyleSheet

                        scriptDependencies.add(manager.registerDependency(uri,
                                class1));
                    }
                }

                StyleSheet styleAnnotation = class1
                        .getAnnotation(StyleSheet.class);
                if (styleAnnotation != null) {
                    for (String uri : styleAnnotation.value()) {
                        styleDependencies.add(manager.registerDependency(uri,
                                class1));
                    }
                }
            }
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.