3 new revisions: Revision: fa6d73d2f9d1 Branch: WithBrailleFormatting Author: Keith Creasy <kcreasy@xxxxxxx> Date: Thu Jul 11 11:29:18 2013 Log: Merged default on top of WithBrailleFormatting http://code.google.com/p/brailleblaster/source/detail?r=fa6d73d2f9d1&repo=newdesign Revision: c89083c71ab6 Branch: WithBrailleFormatting Author: Keith Creasy <kcreasy@xxxxxxx> Date: Mon Jul 15 06:34:56 2013 Log: Merged default. http://code.google.com/p/brailleblaster/source/detail?r=c89083c71ab6&repo=newdesign Revision: 81e3e9063824 Branch: WithBrailleFormatting Author: Keith Creasy <kcreasy@xxxxxxx> Date: Mon Jul 15 06:37:20 2013 Log: Fixed version message. http://code.google.com/p/brailleblaster/source/detail?r=81e3e9063824&repo=newdesign ============================================================================== Revision: fa6d73d2f9d1 Branch: WithBrailleFormatting Author: Keith Creasy <kcreasy@xxxxxxx> Date: Thu Jul 11 11:29:18 2013 Log: Merged default on top of WithBrailleFormatting http://code.google.com/p/brailleblaster/source/detail?r=fa6d73d2f9d1&repo=newdesign ============================================================================== Revision: c89083c71ab6 Branch: WithBrailleFormatting Author: Keith Creasy <kcreasy@xxxxxxx> Date: Mon Jul 15 06:34:56 2013 Log: Merged default. http://code.google.com/p/brailleblaster/source/detail?r=c89083c71ab6&repo=newdesign Modified: /src/main/org/brailleblaster/Main.java /src/main/org/brailleblaster/wordprocessor/DocumentManager.java ======================================= --- /src/main/org/brailleblaster/Main.java Fri May 31 06:21:28 2013 +++ /src/main/org/brailleblaster/Main.java Mon Jul 15 06:34:56 2013 @@ -44,8 +44,8 @@ public class Main { public static void main(String[] args) { BBIni.initialize(args); - BBIni.setVersion("brailleblaster-1.4.0"); - BBIni.setReleaseDate("July 17, 2012"); + BBIni.setVersion("2013.07.15"); + BBIni.setReleaseDate("July 15, 2013"); if (BBIni.haveSubcommands()) { new Subcommands(args); =======================================--- /src/main/org/brailleblaster/wordprocessor/DocumentManager.java Wed Jul 10 12:13:38 2013 +++ /src/main/org/brailleblaster/wordprocessor/DocumentManager.java Mon Jul 15 06:34:56 2013
@@ -43,6 +43,8 @@ import java.util.logging.Level; import java.util.logging.Logger; +import javax.print.PrintException; + import nu.xom.Document; import nu.xom.Element; import nu.xom.Node; @@ -61,12 +63,16 @@ import org.brailleblaster.views.BrailleView; import org.brailleblaster.views.TextView; import org.brailleblaster.views.TreeView; +import org.daisy.printing.PrinterDevice; import org.eclipse.swt.SWT; import org.eclipse.swt.custom.StyledText; import org.eclipse.swt.layout.FormLayout; +import org.eclipse.swt.printing.PrintDialog; +import org.eclipse.swt.printing.PrinterData; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Group; +import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.TabItem; @@ -568,6 +574,29 @@PrintersManager pn = new PrintersManager(this.wp.getShell(), this.text.view);
pn.beginPrintJob(); } + + public void fileEmbossNow() { + Shell shell = new Shell(wp.getShell(), SWT.DIALOG_TRIM); + PrintDialog embosser = new PrintDialog(shell); + PrinterData data = embosser.open(); + + if (data == null || data.equals("")) { + return; + } ++ String filePath = BBIni.getTempFilesPath() + BBIni.getFileSep() + "tempBRF.brf";
+ if(this.document.createBrlFile(filePath)){ + File translatedFile = new File(filePath); + PrinterDevice embosserDevice; + try { + embosserDevice = new PrinterDevice(data.name, true); + embosserDevice.transmit(translatedFile); + translatedFile.delete(); + } catch (PrintException e) {+ new Notify(lh.localValue("cannotEmboss") + ": " + data.name + "\n" + e.getMessage());
+ } + } + } public void printPreview(){ if(this.braille.view.getCharCount() > 0){ ============================================================================== Revision: 81e3e9063824 Branch: WithBrailleFormatting Author: Keith Creasy <kcreasy@xxxxxxx> Date: Mon Jul 15 06:37:20 2013 Log: Fixed version message. http://code.google.com/p/brailleblaster/source/detail?r=81e3e9063824&repo=newdesign Modified: /src/main/org/brailleblaster/Main.java ======================================= --- /src/main/org/brailleblaster/Main.java Mon Jul 15 06:34:56 2013 +++ /src/main/org/brailleblaster/Main.java Mon Jul 15 06:37:20 2013 @@ -44,7 +44,7 @@ public class Main { public static void main(String[] args) { BBIni.initialize(args); - BBIni.setVersion("2013.07.15"); + BBIni.setVersion("BrailleBlaster, Version 2013.07.15"); BBIni.setReleaseDate("July 15, 2013"); if (BBIni.haveSubcommands()) {