2001-07-20 09:57:23 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
*
|
|
|
|
*======================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INSETNOTE_H
|
|
|
|
#define INSETNOTE_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "insetcollapsable.h"
|
|
|
|
|
|
|
|
/** The PostIt note inset
|
|
|
|
|
|
|
|
*/
|
|
|
|
class InsetNote : public InsetCollapsable {
|
|
|
|
public:
|
2001-07-23 09:11:14 +00:00
|
|
|
///
|
2001-07-20 09:57:23 +00:00
|
|
|
InsetNote();
|
2001-07-23 09:11:14 +00:00
|
|
|
/// constructor with initial contents
|
|
|
|
InsetNote(Buffer const *, string const & contents, bool collapsed);
|
2001-07-20 09:57:23 +00:00
|
|
|
///
|
|
|
|
virtual string const editMessage() const;
|
|
|
|
///
|
|
|
|
virtual Inset::Code lyxCode() const { return Inset::IGNORE_CODE; }
|
|
|
|
///
|
|
|
|
virtual void write(Buffer const *, std::ostream &) const;
|
|
|
|
///
|
|
|
|
virtual int latex(Buffer const *, std::ostream &, bool, bool) const
|
|
|
|
{ return 0; }
|
2001-07-23 09:11:14 +00:00
|
|
|
private:
|
|
|
|
/// used by the constructors
|
|
|
|
void init();
|
|
|
|
|
2001-07-20 09:57:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|