]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbib.h
Don't remove cell selections after fontchange.
[lyx.git] / src / insets / insetbib.h
index e5d5c9d56201fbe8a4bd6421b1c8d8510d329c96..e51b236deaf9dfa610932c7067697f6cad72947f 100644 (file)
@@ -33,29 +33,29 @@ public:
        ///
        ~InsetBibKey();
        ///
-       Inset * clone(Buffer const &) const;
+       Inset * clone(Buffer const &, bool same_id = false) const;
        /** Currently \bibitem is used as a LyX2.x command,
            so we need this method.
        */
-        void write(Buffer const *, std::ostream &) const;
+       void write(Buffer const *, std::ostream &) const;
        ///
        void read(Buffer const *, LyXLex & lex);
        ///
-       virtual string const getScreenLabel() const;
-        ///
+       virtual string const getScreenLabel(Buffer const *) const;
+       ///
        void edit(BufferView *, int x, int y, unsigned int button);
        ///
-       EDITABLE editable() const {
-               return IS_EDITABLE;
-       }
+       void edit(BufferView * bv, bool front = true);
+       ///
+       EDITABLE editable() const { return IS_EDITABLE; } 
        /// A user can't neither insert nor delete this inset
        bool deletable() const {
                return false;
        }
-        ///
-        void setCounter(int);
-        ///
-        int  getCounter() const { return counter; }
+       ///
+       void setCounter(int);
+       ///
+       int  getCounter() const { return counter; }
        ///
        string const getBibLabel() const;
        ///
@@ -66,7 +66,7 @@ public:
  
 private:
        ///
-        int counter;
+       int counter;
        ///
        Holder holder;
        ///
@@ -79,30 +79,34 @@ private:
 class InsetBibtex : public InsetCommand {
 public:
        ///
-       InsetBibtex(InsetCommandParams const &);
+       InsetBibtex(InsetCommandParams const &, bool same_id = false);
        ///
        ~InsetBibtex();
        ///
-       Inset * clone(Buffer const &) const {
-               return new InsetBibtex(params());
+       Inset * clone(Buffer const &, bool same_id = false) const {
+               return new InsetBibtex(params(), same_id);
        }
        ///
-       string const getScreenLabel() const;
+       string const getScreenLabel(Buffer const *) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
        Inset::Code lyxCode() const { return Inset::BIBTEX_CODE; }
        ///
        void edit(BufferView *, int x, int y, unsigned int button);
+       ///
+       void edit(BufferView * bv, bool front = true);
        /// 
        int latex(Buffer const *, std::ostream &,
-                 bool fragile, bool freespace) const;
+                 bool fragile, bool freespace) const;
        ///
        std::vector<std::pair<string,string> > const getKeys(Buffer const *) const;
-        ///
-        bool addDatabase(string const &);
-        ///
-        bool delDatabase(string const &);
+       ///
+       std::vector<string> const getFiles(Buffer const &) const;
+       ///
+       bool addDatabase(string const &);
+       ///
+       bool delDatabase(string const &);
        ///
        bool display() const { return true; } 
        ///