]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbibitem.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insetbibitem.h
index d98ae8f8a2cf123fdd68640a0a307f353aadcc9d..32f4574c22431878f977160d2cd912ababff8bd8 100644 (file)
@@ -15,6 +15,9 @@
 
 #include "insetcommand.h"
 
+
+namespace lyx {
+
 /** Used to insert bibitem's information (key and label)
 
   Must be automatically inserted as the first object in a
@@ -24,29 +27,22 @@ class InsetBibitem : public InsetCommand {
 public:
        ///
        InsetBibitem(InsetCommandParams const &);
-       /** Currently \bibitem is used as a LyX2.x command,
-           so we need this method.
-       */
-       void write(Buffer const &, std::ostream &) const;
        ///
        void read(Buffer const &, LyXLex & lex);
        ///
-       lyx::docstring const getScreenLabel(Buffer const &) const;
+       docstring const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
        InsetBase::Code lyxCode() const { return InsetBase::BIBITEM_CODE; }
-       /// keep .lyx format compatible
-       bool directWrite() const { return true; }
        ///
        void setCounter(int);
        ///
        int getCounter() const { return counter; }
        ///
-       lyx::docstring const getBibLabel() const;
+       docstring const getBibLabel() const;
        ///
-       int plaintext(Buffer const &, lyx::odocstream &,
-                     OutputParams const &) const;
+       int plaintext(Buffer const &, odocstream &, OutputParams const &) const;
 protected:
        ///
        virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
@@ -61,6 +57,9 @@ private:
 
 
 /// Return the widest label in the Bibliography.
-lyx::docstring const bibitemWidest(Buffer const &);
+docstring const bibitemWidest(Buffer const &);
+
+
+} // namespace lyx
 
 #endif // INSET_BIBITEM_H