Config ui + Writer4LaTeX
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@42 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
04ed9dae7a
commit
d79de9402a
10 changed files with 112 additions and 287 deletions
|
@ -688,6 +688,18 @@ public final class ConfigurationDialog extends WeakBase
|
|||
styleMap[i].clear();
|
||||
Map<String,String> displayNames = styleNameProvider.getDisplayNames(sOOoFamilyNames[i]);
|
||||
copyStyles(configMap, styleMap[i], displayNames);
|
||||
for (String sName : styleMap[i].keySet()) {
|
||||
Map<String,String> attr = styleMap[i].get(sName);
|
||||
if (attr.containsKey("next")) {
|
||||
String[] sNext = attr.get("next").split(";");
|
||||
String sNewNext = "";
|
||||
for (String sNextName : sNext) {
|
||||
if (sNewNext.length()>0) { sNewNext+=";"; }
|
||||
sNewNext+=displayNames.get(sNextName);
|
||||
}
|
||||
attr.put("next", sNewNext);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Load other controls from config
|
||||
|
@ -728,6 +740,18 @@ public final class ConfigurationDialog extends WeakBase
|
|||
configMap.clear();
|
||||
Map<String,String> internalNames = styleNameProvider.getInternalNames(sOOoFamilyNames[i]);
|
||||
copyStyles(styleMap[i], configMap, internalNames);
|
||||
for (String sName : configMap.keySet()) {
|
||||
Map<String,String> attr = configMap.get(sName);
|
||||
if (attr.containsKey("next")) {
|
||||
String[] sNext = attr.get("next").split(";");
|
||||
String sNewNext = "";
|
||||
for (String sNextName : sNext) {
|
||||
if (sNewNext.length()>0) { sNewNext+=";"; }
|
||||
sNewNext+=internalNames.get(sNextName);
|
||||
}
|
||||
attr.put("next", sNewNext);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Save other controls to config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue