2000-06-26 18:48:45 +00:00
|
|
|
// -*- C++ -*-
|
2002-09-25 14:26:13 +00:00
|
|
|
/**
|
2007-04-25 01:24:38 +00:00
|
|
|
* \file InsetMarginal.h
|
2002-09-25 14:26:13 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-21 17:09:55 +00:00
|
|
|
*
|
2008-11-14 15:58:50 +00:00
|
|
|
* \author Jürgen Vigna
|
|
|
|
* \author Lars Gullik Bjønnes
|
2000-06-26 18:48:45 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2000-06-26 18:48:45 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INSETMARGINAL_H
|
|
|
|
#define INSETMARGINAL_H
|
|
|
|
|
|
|
|
|
2007-04-25 01:24:38 +00:00
|
|
|
#include "InsetFootlike.h"
|
2000-06-26 18:48:45 +00:00
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
2000-06-26 18:48:45 +00:00
|
|
|
/** The marginal note inset
|
2002-03-21 17:09:55 +00:00
|
|
|
|
2000-06-26 18:48:45 +00:00
|
|
|
*/
|
2000-07-04 19:16:35 +00:00
|
|
|
class InsetMarginal : public InsetFootlike {
|
2000-06-26 18:48:45 +00:00
|
|
|
public:
|
|
|
|
///
|
2019-09-17 21:06:18 +00:00
|
|
|
explicit InsetMarginal(Buffer *);
|
2000-06-26 18:48:45 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
InsetCode lyxCode() const override { return MARGIN_CODE; }
|
2000-06-26 18:48:45 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
docstring layoutName() const override { return from_ascii("Marginal"); }
|
2007-05-03 15:53:14 +00:00
|
|
|
///
|
2013-03-08 19:52:18 +00:00
|
|
|
int plaintext(odocstringstream & ods, OutputParams const & op,
|
2020-10-01 07:42:11 +00:00
|
|
|
size_t max_length = INT_MAX) const override;
|
2000-06-26 18:48:45 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void docbook(XMLStream &, OutputParams const & runparams) const override;
|
2016-12-27 11:06:54 +00:00
|
|
|
/// Is the content of this inset part of the immediate (visible) text sequence?
|
2020-10-01 07:42:11 +00:00
|
|
|
bool isPartOfTextSequence() const override { return false; }
|
2004-11-23 23:04:52 +00:00
|
|
|
private:
|
2008-03-05 00:21:05 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
Inset * clone() const override { return new InsetMarginal(*this); }
|
2000-06-26 18:48:45 +00:00
|
|
|
};
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
2000-06-26 18:48:45 +00:00
|
|
|
#endif
|