[brailleblaster] [brailleblaster.newdesign] push by brandon....@xxxxxxxxx - Added missing xml template for new documents on 2013-09-06 21:49 GMT

  • From: brailleblaster@xxxxxxxxxxxxxx
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Fri, 06 Sep 2013 21:49:46 +0000

Revision: df38dd8b327e
Branch:   default
Author:   Brandon Roller <brandon.r.roller@xxxxxxxxx>
Date:     Fri Sep  6 21:48:09 2013 UTC
Log:      Added missing xml template for new documents
http://code.google.com/p/brailleblaster/source/detail?r=df38dd8b327e&repo=newdesign

Added:
 /dist/programData/xmlTemplates/dtbook.xml
Modified:
 /src/main/org/brailleblaster/wordprocessor/DocumentManager.java

=======================================
--- /dev/null
+++ /dist/programData/xmlTemplates/dtbook.xml   Fri Sep  6 21:48:09 2013 UTC
@@ -0,0 +1,18 @@
+<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="dtbookbasic.css" type="text/css"?> +<!DOCTYPE dtbook PUBLIC '-//NISO//DTD dtbook 2005-3//EN' 'http://www.daisy.org/z3986/2005/dtbook-2005-3.dtd' > +<dtbook xmlns="http://www.daisy.org/z3986/2005/dtbook/"; version="2005-3" xml:lang="en-US" >
+       <head>
+               <meta name="dtb:uid" content="AUTO-UID-5342982849049141728" />
+               <meta name="dt:version" content="2.1.1.0" />
+               <meta name="dc:Title" content="" />
+               <meta name="dc:Creator" content="" />
+               <meta name="dc:Date" content="" />
+               <meta name="dc:Language" content="en-US" />
+       </head>
+       <book showin="blp">
+               <frontmatter></frontmatter>
+               <bodymatter id="bodymatter_0001">
+                       <level1><p/></level1>
+               </bodymatter>
+       </book>
+</dtbook>
=======================================
--- /src/main/org/brailleblaster/wordprocessor/DocumentManager.java Fri Sep 6 18:16:34 2013 UTC +++ /src/main/org/brailleblaster/wordprocessor/DocumentManager.java Fri Sep 6 21:48:09 2013 UTC
@@ -127,7 +127,7 @@
                if(docName != null){
                        openDocument(docName);
                }
-               else{
+               else {
initializeAllViews(docName, BBIni.getProgramDataPath() + BBIni.getFileSep() + "xmlTemplates" + BBIni.getFileSep() + "dtbook.xml", null);
                        Nodes n = this.document.query("/*/*[2]/*[2]/*[1]/*[1]");
                        ((Element)n.get(0)).appendChild(new Text(""));
@@ -138,7 +138,7 @@


        private void initializeDocumentTab(){
-               FontManager.setShellFonts(this.wp.getShell(), this);
+               FontManager.setShellFonts(wp.getShell(), this);
                setTabList();
                wp.getShell().layout();
        }

Other related posts:

  • » [brailleblaster] [brailleblaster.newdesign] push by brandon....@xxxxxxxxx - Added missing xml template for new documents on 2013-09-06 21:49 GMT - brailleblaster