*
* \author Angus Leeming
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#ifndef INSETNOTE_H
#include "insetcollapsable.h"
-
+
struct InsetNoteParams {
- ///
- void write(std::ostream & os) const;
- ///
- void read(LyXLex & lex);
- ///
- string type;
+ ///
+ void write(std::ostream & os) const;
+ ///
+ void read(LyXLex & lex);
+ ///
+ string type;
};
-
-
+
+
/** The PostIt note inset, and other annotations
*/
public:
///
-
+
InsetNote(BufferParams const &, string const &);
/// Copy constructor
InsetNote(InsetNote const &);
///
~InsetNote();
///
- InsetBase * clone() const;
+ virtual std::auto_ptr<InsetBase> clone() const;
///
string const editMessage() const;
///
- Inset::Code lyxCode() const { return Inset::NOTE_CODE; }
+ InsetOld::Code lyxCode() const { return InsetOld::NOTE_CODE; }
///
- void write(Buffer const *, std::ostream &) const;
+ void write(Buffer const &, std::ostream &) const;
///
- void read(Buffer const * buf, LyXLex & lex);
+ void read(Buffer const & buf, LyXLex & lex);
///
void setButtonLabel();
///
dispatch_result InsetNote::localDispatch(FuncRequest const &);
+ ///
+ void metrics(MetricsInfo &, Dimension &) const;
/// show the note dialog
bool showInsetDialog(BufferView * bv) const;
///
- int latex(Buffer const *, std::ostream &,
+ int latex(Buffer const &, std::ostream &,
LatexRunParams const &) const;
///
- int linuxdoc(Buffer const *, std::ostream &) const;
+ int linuxdoc(Buffer const &, std::ostream &) const;
///
- int docbook(Buffer const *, std::ostream &, bool) const;
+ int docbook(Buffer const &, std::ostream &, bool) const;
///
- int ascii(Buffer const *, std::ostream &, int) const;
+ int ascii(Buffer const &, std::ostream &, int) const;
///
void validate(LaTeXFeatures &) const;
///
///
virtual string const & name() const { return name_; }
///
- virtual string const inset2string() const;
+ virtual string const inset2string(Buffer const &) const;
///
static string const params2string(string const &, InsetNoteParams const &);
///