Package com.trolltech.qt.xml

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


     
      // 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++) {
View Full Code Here


    for (int i=enCryptLen-1; i>=0; i--) {
      QDomElement enmedia = anchors.at(i).toElement();
      enmedia.setAttribute("contentEditable","false");
      enmedia.setAttribute("src", Global.getFileManager().getImageDirPath("encrypt.png"));
      enmedia.setAttribute("en-tag","en-crypt");
      enmedia.setAttribute("alt", enmedia.text());
      Global.cryptCounter++;
      enmedia.setAttribute("id", "crypt"+Global.cryptCounter.toString());
      String encryptedText = enmedia.text();
     
      // If the encryption string contains crlf at the end, remove them because they mess up the javascript.
View Full Code Here

      enmedia.setAttribute("src", Global.getFileManager().getImageDirPath("encrypt.png"));
      enmedia.setAttribute("en-tag","en-crypt");
      enmedia.setAttribute("alt", enmedia.text());
      Global.cryptCounter++;
      enmedia.setAttribute("id", "crypt"+Global.cryptCounter.toString());
      String encryptedText = enmedia.text();
     
      // If the encryption string contains crlf at the end, remove them because they mess up the javascript.
      if (encryptedText.endsWith("\n"))
        encryptedText = encryptedText.substring(0,encryptedText.length()-1);
      if (encryptedText.endsWith("\r"))
View Full Code Here

          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) {
          conn.commitTransaction();
View Full Code Here

      }
    }
   
    if (node.nodeName().equalsIgnoreCase("en-hilight")) {
      QDomElement e = node.toElement();
      QDomText newText = doc.createTextNode(e.text());
      e.parentNode().replaceChild(newText,e);
    }
    if (node.nodeName().equalsIgnoreCase("span")) {
      QDomElement e = node.toElement();
      if (e.attribute("class").equalsIgnoreCase("en-hilight") || e.attribute("class").equalsIgnoreCase("en-spell")) {
View Full Code Here

      e.parentNode().replaceChild(newText,e);
    }
    if (node.nodeName().equalsIgnoreCase("span")) {
      QDomElement e = node.toElement();
      if (e.attribute("class").equalsIgnoreCase("en-hilight") || e.attribute("class").equalsIgnoreCase("en-spell")) {
        QDomText newText = doc.createTextNode(e.text());
        e.parentNode().replaceChild(newText,e);
      }
      if (e.attribute("pdfnavigationtable").equalsIgnoreCase("true")) {
        node.parentNode().removeChild(node);
      }
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.