]> git.lyx.org Git - lyx.git/commitdiff
Herbert's patch, part 1
authorAngus Leeming <leeming@lyx.org>
Mon, 20 Aug 2001 13:39:29 +0000 (13:39 +0000)
committerAngus Leeming <leeming@lyx.org>
Mon, 20 Aug 2001 13:39:29 +0000 (13:39 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2556 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/controllers/ChangeLog
src/frontends/controllers/ControlBibtex.C
src/frontends/controllers/ControlBibtex.h

index 307a4d462ec8f1e5c4d80503d273e9584995c002..6f79fa8d7c98d07158debee57e446d6197bda7a6 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-20  Herbert Voss  <voss@perce.de>
+
+       * ControlBibtex.[Ch]: enhanced bibtex-data gui to browse for databases
+       and styles. Added an option for "bibliography into toc"
+
 2001-08-15  Angus Leeming  <a.leeming@ic.ac.uk>
 
        * character.[Ch]: remove LATEX_TOGGLE from the FONT_STATE enum as
index 7da42cd5f8f8a4d571079a28bef3f81e324d57aa..03b6dba6beaac3ada8e895a91960e8af23be4cc9 100644 (file)
@@ -10,6 +10,7 @@
  * \file ControlBibtex.C
  * \author John Levon, moz@compsoc.man.ac.uk
  * \author Angus Leeming <a.leeming@ic.ac.uk>
+ * \author Herbert Voss <voss@lyx.org>
  */
 
 #include <algorithm>
 #include "LyXView.h"
 #include "buffer.h"
 #include "BufferView.h"
+#include "lyxrc.h"
+#include "helper_funcs.h"
+#include "gettext.h"
 
 using SigC::slot;
+using std::pair;
+using std::make_pair;
 
 ControlBibtex::ControlBibtex(LyXView & lv, Dialogs & d)
        : ControlCommand(lv, d)
@@ -53,3 +59,13 @@ void ControlBibtex::applyParamsToInset()
 
 void ControlBibtex::applyParamsNoInset()
 {}
+
+
+string const ControlBibtex::Browse(string const & in_name, 
+                                   string const & title,
+                                  string const & pattern)
+{
+       pair<string, string> dir1(N_("Documents"), string(lyxrc.document_path));
+       return browseFile(&lv_, in_name, title, pattern, 
+                         dir1,make_pair(string(), string()));
+}
index d64fad5c55d54820ff6ddc2f1399b6f4bde371b3..d107098e8932a51be95492cfee9b2acb502ee2b1 100644 (file)
@@ -29,7 +29,9 @@ class ControlBibtex : public ControlCommand
 public:
        ///
        ControlBibtex(LyXView &, Dialogs &);
-
+       /// Browse for a file
+       string const Browse(string const &, string const &, string const &);
 private:
        /// Dispatch the changed parameters to the kernel.
        virtual void applyParamsToInset();