Merge W4LDialogs into W2LDialogs2

git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@228 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
henrikjust 2015-02-10 07:01:41 +00:00
parent 9f9b9bd7a7
commit bc2f47a4a0
19 changed files with 88 additions and 87 deletions

View file

@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
* Version 1.6 (2015-02-09)
* Version 1.6 (2015-02-10)
*
*/
@ -103,7 +103,7 @@ public class BibTeXDialog extends DialogBase implements com.sun.star.lang.XIniti
/** Return the name of the library containing the dialog
*/
@Override public String getDialogLibraryName() {
return "W4LDialogs";
return "W2LDialogs2";
}
/** Return the name of the dialog within the library
@ -131,6 +131,9 @@ public class BibTeXDialog extends DialogBase implements com.sun.star.lang.XIniti
else if (sMethod.equals("InsertReference")) {
insertReference();
}
else if (sMethod.equals("New")) {
newFile();
}
else if (sMethod.equals("Edit")) {
edit();
}
@ -286,6 +289,14 @@ public class BibTeXDialog extends DialogBase implements com.sun.star.lang.XIniti
}
}
// Create a new BibTeX file
private void newFile() {
if (xFrame!=null) {
MessageBox msgBox = new MessageBox(xContext, xFrame);
msgBox.showMessage("Writer2LaTeX","This feature is not implemented yet");
}
}
// Edit the currently selected BibTeX file, if any
private void edit() {
int nFile = getListBoxSelectedItem("File");