Examples of CurrentDocumentExportCommand


Examples of org.latexlab.docs.client.commands.CurrentDocumentExportCommand

    addMenuItem(viewMenu, Icons.editorIcons.CheckBlack(), "Wrap Text", new SystemToggleWrapTextCommand());
    viewMenu.addSeparator();
    addMenuItem(viewMenu, Icons.editorIcons.Blank(), "Full-screen mode", new SystemToggleFullScreenCommand());
    this.menu.addItem("View", viewMenu);
    MenuBarExt exportMenu = new MenuBarExt(true);
    addMenuItem(exportMenu, Icons.editorIcons.Blank(), "Portable Document Format (PDF)", new CurrentDocumentExportCommand("pdf"));
    addMenuItem(exportMenu, Icons.editorIcons.Blank(), "PostScript Document (PS)", new CurrentDocumentExportCommand("ps"));
    addMenuItem(exportMenu, Icons.editorIcons.Blank(), "Device Independent Format (DVI)", new CurrentDocumentExportCommand("dvi"));
    this.menu.addItem("Export", exportMenu);
    MenuBarExt compilerMenu = new MenuBarExt(true);
    addMenuItem(compilerMenu, Icons.editorIcons.ItemList(), "Project Resources", new SystemShowDialogCommand(DynamicResourcesDialog.class));
    compilerMenu.addSeparator();
    addMenuItem(compilerMenu, Icons.editorIcons.Blank(), "Settings...", new SystemShowDialogCommand(DynamicCompilerSettingsDialog.class));
View Full Code Here

Examples of org.latexlab.docs.client.commands.CurrentDocumentExportCommand

  link.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      event.preventDefault();
      event.stopPropagation();
        CommandEvent.fire(new CurrentDocumentExportCommand(CurrentDocumentExportCommand.PDF));
    }
  });
  pan.add(msg);
  pan.add(link);
  content.add(pan);
View Full Code Here

Examples of org.latexlab.docs.client.commands.CurrentDocumentExportCommand

        callback.onFailure(reason);
    }
    @Override
    public void onSuccess() {
      callback.onSuccess(new ExtendedMenuItem[] {
      new ExtendedMenuItem(Icons.editorIcons.Blank(), "Portable Document Format (PDF)", new CurrentDocumentExportCommand("pdf")),
      new ExtendedMenuItem(Icons.editorIcons.Blank(), "PostScript Document (PS)", new CurrentDocumentExportCommand("ps")),
      new ExtendedMenuItem(Icons.editorIcons.Blank(), "Device Independent Format (DVI)", new CurrentDocumentExportCommand("dvi"))
      });
    }
    });
  }
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.