Bugfix: Format in LaTeX export dialog is now persistent
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@200 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
b5981c279f
commit
f806f79c00
1 changed files with 6 additions and 7 deletions
|
@ -20,7 +20,7 @@
|
||||||
*
|
*
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Version 1.4 (2014-09-16)
|
* Version 1.4 (2014-11-01)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -385,11 +385,11 @@ public abstract class OptionsDialogBase extends DialogBase implements
|
||||||
XNameAccess xNameAccess = (XNameAccess)
|
XNameAccess xNameAccess = (XNameAccess)
|
||||||
UnoRuntime.queryInterface(XNameAccess.class,configurations);
|
UnoRuntime.queryInterface(XNameAccess.class,configurations);
|
||||||
|
|
||||||
boolean bFound = false;
|
|
||||||
short nConfig = getListBoxSelectedItem("Config");
|
short nConfig = getListBoxSelectedItem("Config");
|
||||||
int nStdConfigs = getListBoxStringItemList("Config").length - sConfigNames.length;
|
int nStdConfigs = getListBoxStringItemList("Config").length - sConfigNames.length;
|
||||||
if (nConfig>=nStdConfigs) { // only handle registry configurations
|
if (nConfig>=nStdConfigs) { // only handle registry configurations
|
||||||
int i = nConfig-nStdConfigs;
|
int i = nConfig-nStdConfigs;
|
||||||
|
XPropertySetHelper.setPropertyValue(xProps,"ConfigName",sConfigNames[i]);
|
||||||
try {
|
try {
|
||||||
Object config = xNameAccess.getByName(sConfigNames[i]);
|
Object config = xNameAccess.getByName(sConfigNames[i]);
|
||||||
XPropertySet xCfgProps = (XPropertySet)
|
XPropertySet xCfgProps = (XPropertySet)
|
||||||
|
@ -414,17 +414,16 @@ public abstract class OptionsDialogBase extends DialogBase implements
|
||||||
if (buf.length()>0) { buf.append(';'); }
|
if (buf.length()>0) { buf.append(';'); }
|
||||||
buf.append(sURL).append("::").append(sFileName).append("::").append(sMediaType);
|
buf.append(sURL).append("::").append(sFileName).append("::").append(sMediaType);
|
||||||
}
|
}
|
||||||
filterData.put("Resources",buf.toString());
|
filterData.put("Resources",buf.toString());
|
||||||
|
|
||||||
XPropertySetHelper.setPropertyValue(xProps,"ConfigName",sConfigNames[i]);
|
|
||||||
bFound = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else { // Standard configurations have no name
|
||||||
|
XPropertySetHelper.setPropertyValue(xProps,"ConfigName","");
|
||||||
|
}
|
||||||
XPropertySetHelper.setPropertyValue(xProps,"Config",nConfig);
|
XPropertySetHelper.setPropertyValue(xProps,"Config",nConfig);
|
||||||
if (!bFound) { XPropertySetHelper.setPropertyValue(xProps,"ConfigName",""); }
|
|
||||||
return nConfig;
|
return nConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue