Package com.trolltech.qt.xml

Examples of com.trolltech.qt.xml.QDomElement.attribute()


     
      // Go through all "item" nodes
    QDomNodeList anchors = doc.elementsByTagName("item");
    for (int i=0; i<anchors.length(); i++) {
      QDomElement element = anchors.at(i).toElement();
      int x = new Integer(element.attribute("x"));   // x coordinate
      int y = new Integer(element.attribute("y"));   // y coordinate
      int w = new Integer(element.attribute("w"));   // width
      int h = new Integer(element.attribute("h"));   // height
      QDomNodeList children = element.childNodes()// all children ("t" nodes).
     
View Full Code Here


      // Go through all "item" nodes
    QDomNodeList anchors = doc.elementsByTagName("item");
    for (int i=0; i<anchors.length(); i++) {
      QDomElement element = anchors.at(i).toElement();
      int x = new Integer(element.attribute("x"));   // x coordinate
      int y = new Integer(element.attribute("y"));   // y coordinate
      int w = new Integer(element.attribute("w"));   // width
      int h = new Integer(element.attribute("h"));   // height
      QDomNodeList children = element.childNodes()// all children ("t" nodes).
     
      // Go through the children ("t" nodes)
View Full Code Here

    QDomNodeList anchors = doc.elementsByTagName("item");
    for (int i=0; i<anchors.length(); i++) {
      QDomElement element = anchors.at(i).toElement();
      int x = new Integer(element.attribute("x"));   // x coordinate
      int y = new Integer(element.attribute("y"));   // y coordinate
      int w = new Integer(element.attribute("w"));   // width
      int h = new Integer(element.attribute("h"));   // height
      QDomNodeList children = element.childNodes()// all children ("t" nodes).
     
      // Go through the children ("t" nodes)
      for (int j=0; j<children.length(); j++) {
View Full Code Here

    for (int i=0; i<anchors.length(); i++) {
      QDomElement element = anchors.at(i).toElement();
      int x = new Integer(element.attribute("x"));   // x coordinate
      int y = new Integer(element.attribute("y"));   // y coordinate
      int w = new Integer(element.attribute("w"));   // width
      int h = new Integer(element.attribute("h"));   // height
      QDomNodeList children = element.childNodes()// all children ("t" nodes).
     
      // Go through the children ("t" nodes)
      for (int j=0; j<children.length(); j++) {
          QDomElement child = children.at(j).toElement();
View Full Code Here

      // Go through the children ("t" nodes)
      for (int j=0; j<children.length(); j++) {
          QDomElement child = children.at(j).toElement();
          if (child.nodeName().equalsIgnoreCase("t")) {
            String text = child.text();   // recognition text
            int weight = new Integer(child.attribute("w"))// recognition weight
            if (weight >= Global.getRecognitionWeight()) {   // Are we above the maximum?
             
              // Check to see if this word matches something we were searching for.
              for (int k=0; k<enSearch.hilightWords.size(); k++) {
                String searchWord = enSearch.hilightWords.get(k).toLowerCase();
View Full Code Here

        encryptedText = encryptedText.substring(0,encryptedText.length()-1);
      if (encryptedText.endsWith("\r"))
        encryptedText = encryptedText.substring(0,encryptedText.length()-1);
     
      // Add the commands
      String hint = enmedia.attribute("hint");
      hint = hint.replace("'","&apos;");
      enmedia.setAttribute("onClick", "window.jambi.decryptText('crypt"+Global.cryptCounter.toString()+"', '"+encryptedText+"', '"+hint+"');");
      enmedia.setAttribute("onMouseOver", "style.cursor='hand'");
      enmedia.setTagName("img");
      enmedia.removeChild(enmedia.firstChild());   // Remove the actual encrypted text
View Full Code Here

    // Modify link tags
    anchors = docElem.elementsByTagName("a");
    enCryptLen = anchors.length();
    for (int i=0; i<anchors.length(); i++) {
      QDomElement element = anchors.at(i).toElement();
      if (!element.attribute("href").toLowerCase().startsWith("latex://"))
        element.setAttribute("title", element.attribute("href"));
      else {
        element.setAttribute("title", element.attribute("title").toLowerCase().replace("http://latex.codecogs.com/gif.latex?",""));
      }
    }
View Full Code Here

    anchors = docElem.elementsByTagName("a");
    enCryptLen = anchors.length();
    for (int i=0; i<anchors.length(); i++) {
      QDomElement element = anchors.at(i).toElement();
      if (!element.attribute("href").toLowerCase().startsWith("latex://"))
        element.setAttribute("title", element.attribute("href"));
      else {
        element.setAttribute("title", element.attribute("title").toLowerCase().replace("http://latex.codecogs.com/gif.latex?",""));
      }
    }
View Full Code Here

    for (int i=0; i<anchors.length(); i++) {
      QDomElement element = anchors.at(i).toElement();
      if (!element.attribute("href").toLowerCase().startsWith("latex://"))
        element.setAttribute("title", element.attribute("href"));
      else {
        element.setAttribute("title", element.attribute("title").toLowerCase().replace("http://latex.codecogs.com/gif.latex?",""));
      }
    }

    logger.log(logger.HIGH, "Leaving NeverNote.modifyTags");
    return doc;
View Full Code Here

        if (interrupt) {
          processInterrupt();
        }
      }
      QDomElement enmedia = anchors.at(i).toElement();
      String weight = new String(enmedia.attribute("w"));
      String text = new String(enmedia.text()).toLowerCase();
      if (!text.equals("")) {
        conn.getWordsTable().addWordToNoteIndex(r.getNoteGuid(), text, "RESOURCE", new Integer(weight));
        uncommittedCount++;
        if (uncommittedCount > 100) {
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.