[jsword-svn] bibledesktop/java/main/org/crosswire/bibledesktop/display/textpane s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Sat Mar 5 21:55:46 MST 2005


Update of /cvs/jsword/bibledesktop/java/main/org/crosswire/bibledesktop/display/textpane
In directory www.crosswire.org:/tmp/cvs-serv397/java/main/org/crosswire/bibledesktop/display/textpane

Modified Files:
	TextPaneBookDataDisplay.java 
Log Message:
Added toggles to view menu for bible features.
Unified the three osis->html xslt

Index: TextPaneBookDataDisplay.java
===================================================================
RCS file: /cvs/jsword/bibledesktop/java/main/org/crosswire/bibledesktop/display/textpane/TextPaneBookDataDisplay.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** TextPaneBookDataDisplay.java	2 Oct 2004 23:51:06 -0000	1.11
--- TextPaneBookDataDisplay.java	6 Mar 2005 04:55:44 -0000	1.12
***************
*** 16,19 ****
--- 16,20 ----
  import javax.swing.text.html.HTMLEditorKit;
  
+ import org.crosswire.bibledesktop.desktop.XSLTProperty;
  import org.crosswire.bibledesktop.display.BookDataDisplay;
  import org.crosswire.bibledesktop.display.URLEvent;
***************
*** 83,86 ****
--- 84,95 ----
          this.key = key;
  
+         refresh();
+     }
+ 
+     /* (non-Javadoc)
+      * @see org.crosswire.bibledesktop.display.BookDataDisplay#refresh()
+      */
+     public void refresh()
+     {
          if (book == null || key == null)
          {
***************
*** 111,114 ****
--- 120,129 ----
              SAXEventProvider osissep = bdata.getSAXEventProvider();
              TransformingSAXEventProvider htmlsep = (TransformingSAXEventProvider) converter.convert(osissep);
+             htmlsep.setParameter(XSLTProperty.STRONGS_NUMBERS.getName(), Boolean.toString(XSLTProperty.STRONGS_NUMBERS.getState()));
+             htmlsep.setParameter(XSLTProperty.START_VERSE_ON_NEWLINE.getName(), Boolean.toString(XSLTProperty.START_VERSE_ON_NEWLINE.getState()));
+             htmlsep.setParameter(XSLTProperty.VERSE_NUMBERS.getName(), Boolean.toString(XSLTProperty.VERSE_NUMBERS.getState()));
+             htmlsep.setParameter(XSLTProperty.TINY_VERSE_NUMBERS.getName(), Boolean.toString(XSLTProperty.TINY_VERSE_NUMBERS.getState()));
+             htmlsep.setParameter(XSLTProperty.NOTES.getName(), Boolean.toString(XSLTProperty.NOTES.getState()));
+             htmlsep.setParameter(XSLTProperty.XREF.getName(), Boolean.toString(XSLTProperty.XREF.getState()));
              htmlsep.setParameter("direction", direction ? "ltr" : "rtl"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
              String text = XMLUtil.writeToString(htmlsep);



More information about the jsword-svn mailing list