w2l toolbar configuration: Define behavior of TeX-button
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@245 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
853ff0968d
commit
2953e5845c
10 changed files with 142 additions and 64 deletions
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.6 (2015-04-05)
|
||||
* Version 1.6 (2015-05-14)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -85,6 +85,9 @@ public final class ApplicationsDialog
|
|||
if (sMethod.equals("external_event") ){
|
||||
return handleExternalEvent(dlg, event);
|
||||
}
|
||||
else if (sMethod.equals("AfterExportChange")) {
|
||||
return changeBehavior(dlg);
|
||||
}
|
||||
else if (sMethod.equals("ApplicationChange")) {
|
||||
return changeApplication(dlg);
|
||||
}
|
||||
|
@ -111,7 +114,7 @@ public final class ApplicationsDialog
|
|||
}
|
||||
|
||||
public String[] getSupportedMethodNames() {
|
||||
String[] sNames = { "external_event", "ApplicationChange", "BrowseClick", "ExecutableUnfocus", "OptionsUnfocus", "AutomaticClick" };
|
||||
String[] sNames = { "external_event", "AfterExportChange", "ApplicationChange", "BrowseClick", "ExecutableUnfocus", "OptionsUnfocus", "AutomaticClick" };
|
||||
return sNames;
|
||||
}
|
||||
|
||||
|
@ -140,6 +143,7 @@ public final class ApplicationsDialog
|
|||
return true;
|
||||
} else if (sMethod.equals("back") || sMethod.equals("initialize")) {
|
||||
externalApps.load();
|
||||
updateBehavior(dlg);
|
||||
return changeApplication(dlg);
|
||||
}
|
||||
}
|
||||
|
@ -149,6 +153,16 @@ public final class ApplicationsDialog
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private boolean changeBehavior(DialogAccess dlg) {
|
||||
externalApps.setProcessingLevel(dlg.getListBoxSelectedItem("AfterExport"));
|
||||
return true;
|
||||
}
|
||||
|
||||
private boolean updateBehavior(DialogAccess dlg) {
|
||||
dlg.setListBoxSelectedItem("AfterExport", externalApps.getProcessingLevel());
|
||||
return true;
|
||||
}
|
||||
|
||||
private boolean changeApplication(DialogAccess dlg) {
|
||||
String sAppName = getSelectedAppName(dlg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue