Add Ascii method to InsetCitation

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2026 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2001-05-27 17:51:16 +00:00
parent c9612144a2
commit 6b971d39b2
3 changed files with 12 additions and 0 deletions

View 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

View 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;
}

View 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