* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author André Pönitz
- * \author Jürgen Spitzmüller
+ * \author André Pönitz
+ * \author Jürgen Spitzmüller
*
* Full author contact details are available in file CREDITS.
*/
#include "Lexer.h"
#include "MetricsInfo.h"
#include "OutputParams.h"
+#include "output_xhtml.h"
#include "Text.h"
#include "TextMetrics.h"
namespace lyx {
-InsetNewpage::InsetNewpage()
+ InsetNewpage::InsetNewpage() : Inset(0)
{}
InsetNewpage::InsetNewpage(InsetNewpageParams const & params)
- : params_(params)
+ : Inset(0), params_(params)
{}
kind = InsetNewpageParams::CLEARDOUBLEPAGE;
else
lex.printError("Unknown kind");
-
- lex >> "\\end_inset";
}
void InsetNewpage::read(Lexer & lex)
{
params_.read(lex);
+ lex >> "\\end_inset";
}
ColorCode InsetNewpage::ColorName() const
{
switch (params_.kind) {
- case InsetNewpageParams::NEWPAGE:
- return Color_newpage;
- break;
case InsetNewpageParams::PAGEBREAK:
return Color_pagebreak;
break;
+ case InsetNewpageParams::NEWPAGE:
case InsetNewpageParams::CLEARPAGE:
- return Color_newpage;
- break;
case InsetNewpageParams::CLEARDOUBLEPAGE:
return Color_newpage;
break;
- default:
- return Color_newpage;
- break;
}
+ // not really useful, but to avoids gcc complaints
+ return Color_newpage;
}
}
+docstring InsetNewpage::xhtml(XHTMLStream & xs, OutputParams const &) const
+{
+ xs << CompTag("br");
+ return docstring();
+}
+
+
docstring InsetNewpage::contextMenu(BufferView const &, int, int) const
{
return from_ascii("context-newpage");