EPUB meta data, export dialog and style resources

git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@81 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
henrikjust 2010-12-28 08:54:40 +00:00
parent e02f738e85
commit 0dcc851a33
21 changed files with 920 additions and 139 deletions

View file

@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
* Version 1.2 (2010-12-08)
* Version 1.2 (2010-12-19)
*
*/
@ -34,12 +34,14 @@ import java.io.UnsupportedEncodingException;
import java.lang.Math;
import java.net.URLEncoder;
import java.net.URLDecoder;
import java.text.Collator;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
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;
@ -357,6 +359,15 @@ public class Misc{
return buf.toString();
}
// Utility method to return a sorted string array based on a set
public static String[] sortStringSet(Set<String> theSet) {
String[] theArray = theSet.toArray(new String[theSet.size()]);
Collator collator = Collator.getInstance();
Arrays.sort(theArray, collator);
return theArray;
}
/* Utility method that url encodes a string */
public static String urlEncode(String s) {
try {