#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 setButtonLabel();
///
dispatch_result InsetNote::localDispatch(FuncRequest const &);
+ /// show the note dialog
+ bool showInsetDialog(BufferView * bv) const;
///
int latex(Buffer const *, std::ostream &,
LatexRunParams const &) 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 &);
///