Package cx.fbn.nevernote.dialog

Examples of cx.fbn.nevernote.dialog.InsertLatexImage


  }
  public void editLatex(String guid) {
    logger.log(logger.EXTREME, "Inserting latex");
    String text = browser.selectedText();
    if (text.trim().equalsIgnoreCase("\n") || text.trim().equalsIgnoreCase("")) {
      InsertLatexImage dialog = new InsertLatexImage();
      if (guid != null) {
        String formula = conn.getNoteTable().noteResourceTable.getNoteSourceUrl(guid).replace("http://latex.codecogs.com/gif.latex?", "");
        dialog.setFormula(formula);
      }
      dialog.exec();
      if (!dialog.okPressed()) {
        logger.log(logger.EXTREME, "Edit LaTex canceled");
        return;
      }
      text = dialog.getFormula().trim();
    }
    blockApplication.emit(this);
    logger.log(logger.EXTREME, "Inserting LaTeX formula:" +text);
    latexGuid = guid;
    text = StringUtils.replace(text, "'", "\\'");
View Full Code Here

TOP

Related Classes of cx.fbn.nevernote.dialog.InsertLatexImage

Copyright © 2018 www.massapicom. 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.