]> git.lyx.org Git - features.git/commitdiff
Add Ascii method to InsetCitation
authorDekel Tsur <dekelts@tau.ac.il>
Sun, 27 May 2001 17:51:16 +0000 (17:51 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Sun, 27 May 2001 17:51:16 +0000 (17:51 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2026 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetcite.C
src/insets/insetcite.h

index 689db689a1d1cafb1d170b8ac394164ac61bf5c0..6157da3d994c7c2343c792d189dbad350b85f96c 100644 (file)
@@ -1,3 +1,7 @@
+2001-05-27  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * insetcite.C (Ascii): Add method.
+
 2001-05-16  Ruurd Reitsma  <r.a.reitsma@wbmt.tudelft.nl>
 
        * figinset.C
index 7f70ba44d41b98a300ba052f2d375d7f2dff938b..74a92cce2b1213210b08e9e1eea8cf580dab0f3f 100644 (file)
@@ -62,3 +62,9 @@ void InsetCitation::Edit(BufferView * bv, int, int, unsigned int)
        bv->owner()->getDialogs()->showCitation(this);
 }
 
+
+int InsetCitation::Ascii(Buffer const *, ostream & os, int) const
+{
+        os << "[" << getContents() << "]";
+        return 0;
+}
index 3f896677f8e485f720c99863621ba3ac6a627b1f..b90ca8ec87ca5f0c5898f0748a40d5e2ea45d55a 100644 (file)
@@ -35,6 +35,8 @@ public:
        Inset::Code LyxCode() const { return Inset::CITE_CODE; }
         ///
        void Edit(BufferView *, int, int, unsigned int);
+       ///
+       int Ascii(Buffer const *, std::ostream &, int linelen) const;
 };
 
 #endif // INSET_CITE_H