Second draft of w2x toolbar

git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@185 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
henrikjust 2014-10-22 11:57:55 +00:00
parent a50dad69f4
commit 934dd30696
20 changed files with 365 additions and 222 deletions

View file

@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
* Version 1.6 (2014-10-06)
* Version 1.6 (2014-10-22)
*
*/
@ -33,7 +33,7 @@ public class ConverterFactory {
// Version information
private static final String VERSION = "1.5.1";
private static final String DATE = "2014-10-06";
private static final String DATE = "2014-10-22";
/** Return the Writer2LaTeX version in the form
* (major version).(minor version).(patch level)<br/>

View file

@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
* Version 1.4 (2014-10-10)
* Version 1.4 (2014-10-21)
*
*/
@ -33,7 +33,6 @@ import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.lang.Math;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URLEncoder;
import java.net.URLDecoder;
import java.text.Collator;
@ -44,7 +43,6 @@ import java.util.Arrays;
import java.util.Date;
import java.util.Locale;
import java.util.Set;
//import java.util.Hashtable;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
@ -303,14 +301,7 @@ public class Misc{
* @return the file name
*/
public static final String getFileName(String sURL) {
try {
URI uri = new URI(sURL);
String sPath = uri.getPath();
return sPath.substring(sPath.lastIndexOf('/')+1);
} catch (URISyntaxException e) {
e.printStackTrace();
return "";
}
return sURL.substring(sURL.lastIndexOf('/')+1);
}
/** Get the file extension from an URL