Java 5 + Writer4LaTeX + bugfixes
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@11 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
be54e842f4
commit
9241a44f6c
83 changed files with 2373 additions and 631 deletions
|
@ -35,14 +35,14 @@ import com.sun.star.beans.PropertyValue;
|
|||
*/
|
||||
public class PropertyHelper {
|
||||
|
||||
private Hashtable data;
|
||||
private Hashtable<String, Object> data;
|
||||
|
||||
public PropertyHelper() {
|
||||
data = new Hashtable();
|
||||
data = new Hashtable<String, Object>();
|
||||
}
|
||||
|
||||
public PropertyHelper(PropertyValue[] props) {
|
||||
data = new Hashtable();
|
||||
data = new Hashtable<String, Object>();
|
||||
int nLen = props.length;
|
||||
for (int i=0; i<nLen; i++) {
|
||||
data.put(props[i].Name,props[i].Value);
|
||||
|
@ -57,7 +57,7 @@ public class PropertyHelper {
|
|||
return data.get(sName);
|
||||
}
|
||||
|
||||
public Enumeration keys() {
|
||||
public Enumeration<String> keys() {
|
||||
return data.keys();
|
||||
}
|
||||
|
||||
|
@ -65,9 +65,9 @@ public class PropertyHelper {
|
|||
int nSize = data.size();
|
||||
PropertyValue[] props = new PropertyValue[nSize];
|
||||
int i=0;
|
||||
Enumeration keys = keys();
|
||||
Enumeration<String> keys = keys();
|
||||
while (keys.hasMoreElements()) {
|
||||
String sKey = (String) keys.nextElement();
|
||||
String sKey = keys.nextElement();
|
||||
props[i] = new PropertyValue();
|
||||
props[i].Name = sKey;
|
||||
props[i++].Value = get(sKey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue