2001-07-20 09:57:23 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
2002-03-21 17:09:55 +00:00
|
|
|
*
|
2001-07-20 09:57:23 +00:00
|
|
|
* 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
|
2002-03-21 17:09:55 +00:00
|
|
|
|
2001-07-20 09:57:23 +00:00
|
|
|
*/
|
|
|
|
class InsetNote : public InsetCollapsable {
|
|
|
|
public:
|
2002-03-21 17:09:55 +00:00
|
|
|
///
|
2002-03-03 20:25:07 +00:00
|
|
|
InsetNote(BufferParams const &);
|
2001-07-27 12:03:36 +00:00
|
|
|
///
|
|
|
|
InsetNote(InsetNote const &, bool same_id = false);
|
|
|
|
///
|
|
|
|
Inset * clone(Buffer const &, bool same_id = false) const;
|
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
|
|
|
///
|
2001-08-18 15:01:09 +00:00
|
|
|
string const editMessage() const;
|
2001-07-20 09:57:23 +00:00
|
|
|
///
|
2001-08-18 15:01:09 +00:00
|
|
|
Inset::Code lyxCode() const { return Inset::IGNORE_CODE; }
|
2001-07-20 09:57:23 +00:00
|
|
|
///
|
2001-08-18 15:01:09 +00:00
|
|
|
void write(Buffer const *, std::ostream &) const;
|
2001-07-20 09:57:23 +00:00
|
|
|
///
|
2001-08-18 15:01:09 +00:00
|
|
|
int latex(Buffer const *, std::ostream &, bool, bool) const
|
2001-07-20 09:57:23 +00:00
|
|
|
{ return 0; }
|
2001-08-18 15:01:09 +00:00
|
|
|
///
|
2002-03-05 13:38:40 +00:00
|
|
|
int linuxdoc(Buffer const *, std::ostream &) const
|
|
|
|
{ return 0; }
|
|
|
|
///
|
|
|
|
int docbook(Buffer const *, std::ostream &) const
|
|
|
|
{ return 0; }
|
|
|
|
///
|
2002-04-16 16:43:19 +00:00
|
|
|
int ascii(Buffer const *, std::ostream &, int) const
|
|
|
|
{ return 0; }
|
|
|
|
///
|
2001-08-18 15:01:09 +00:00
|
|
|
void validate(LaTeXFeatures &) const {}
|
2001-07-23 09:11:14 +00:00
|
|
|
private:
|
|
|
|
/// used by the constructors
|
|
|
|
void init();
|
|
|
|
|
2001-07-20 09:57:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|