]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcite.C
The BIG UNDO patch. Recodes undo handling for better use inside InsetText.
[lyx.git] / src / insets / insetcite.C
index 7f70ba44d41b98a300ba052f2d375d7f2dff938b..354cc562840efa7c5bb93412b45e1b34a47421e2 100644 (file)
@@ -1,10 +1,9 @@
-// -*- C++ -*-
 /* This file is part of*
  * ====================================================== 
  *
  *           LyX, The Document Processor
  *      
- *           Copyright 2000 The LyX Team.
+ *           Copyright 2000-2001 The LyX Team.
  * 
  * ====================================================== */
 
@@ -20,7 +19,7 @@
 #include "frontends/Dialogs.h"
 #include "support/lstrings.h"
 
-InsetCitation::InsetCitation(InsetCommandParams const & p)
+InsetCitation::InsetCitation(InsetCommandParams const & p, bool)
        : InsetCommand(p)
 {}
 
@@ -57,8 +56,14 @@ string const InsetCitation::getScreenLabel() const
 }
 
 
-void InsetCitation::Edit(BufferView * bv, int, int, unsigned int)
+void InsetCitation::edit(BufferView * bv, int, int, unsigned int)
 {
        bv->owner()->getDialogs()->showCitation(this);
 }
 
+
+int InsetCitation::ascii(Buffer const *, std::ostream & os, int) const
+{
+        os << "[" << getContents() << "]";
+        return 0;
+}