Config ui work
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@40 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
e5a80e7b80
commit
97144ad818
7 changed files with 239 additions and 26 deletions
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.2 (2009-09-23)
|
||||
* Version 1.2 (2009-11-08)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -63,7 +63,23 @@ public class ComplexOption {
|
|||
options.put(sName, attributes);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** Define a key using a <i>copy</i> of a the provided attributes.
|
||||
* If the key already exists, the old value will be replaced
|
||||
*
|
||||
* @param sName the name of the key. The name must be non-empty, otherwise the request will be ignored.
|
||||
* @param attributes
|
||||
*/
|
||||
public void copy(String sName, Map<String,String> attributes) {
|
||||
if (sName!=null && sName.length()>0) {
|
||||
Map<String,String> newAttributes = new HashMap<String,String>();
|
||||
for (String sAttrName : attributes.keySet()) {
|
||||
newAttributes.put(sAttrName, attributes.get(sAttrName));
|
||||
}
|
||||
put(sName, newAttributes);
|
||||
}
|
||||
}
|
||||
|
||||
/** Get the value belonging to a key
|
||||
*
|
||||
* @param sName the name of the key
|
||||
|
@ -79,12 +95,7 @@ public class ComplexOption {
|
|||
*/
|
||||
public void copyAll(ComplexOption co) {
|
||||
for (String sName : co.keySet()) {
|
||||
Map<String,String> attr = co.get(sName);
|
||||
Map<String,String> newAttr = new HashMap<String,String>();
|
||||
for (String sAttrName : attr.keySet()) {
|
||||
newAttr.put(sAttrName, attr.get(sAttrName));
|
||||
}
|
||||
options.put(sName, newAttr);
|
||||
copy(sName, co.get(sName));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.2 (2009-11-02)
|
||||
* Version 1.2 (2009-11-08)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -33,7 +33,7 @@ public class ConverterFactory {
|
|||
|
||||
// Version information
|
||||
private static final String VERSION = "1.1.1";
|
||||
private static final String DATE = "2009-11-02";
|
||||
private static final String DATE = "2009-11-08";
|
||||
|
||||
/** Return version information
|
||||
* @return the Writer2LaTeX version in the form
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue