+2005-02-25 Andreas Vox <avox@arcor.de>
+
+ * output_docbook.C (makeParagraph): suppress trailing newline
+ after a run of paragraphs
+
2005-02-28 Johnathan Burchill <jkerrb@users.sourceforge.net>
* paragraph.C: fix for confused change tracker when pasting
+2005-02-25 Andreas Vox <avox@arcor.de>
+
+ * insetmarginal.[hC] (docbook): new method, render as <note>
+
+ * insetoptarg.[hC] (docbook, linuxdoc): new, empty, methods
+
2005-02-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* insetcaption.[Ch] (doClone): implement
os << "%\n}";
return i + 2;
}
+
+int InsetMarginal::docbook(Buffer const & buf, ostream & os,
+ OutputParams const & runparams) const
+{
+ os << "<note role=\"margin\">";
+ int const i = InsetText::docbook(buf, os, runparams);
+ os << "</note>";
+
+ return i;
+}
int latex(Buffer const &, std::ostream &,
OutputParams const &) const;
///
+ int docbook(Buffer const &, std::ostream &,
+ OutputParams const & runparams) const;
+ ///
std::string const editMessage() const;
protected:
InsetMarginal(InsetMarginal const &);
return 0;
}
+int InsetOptArg::linuxdoc(Buffer const &, ostream &,
+ OutputParams const &) const
+{
+ return 0;
+}
+
+int InsetOptArg::docbook(Buffer const &, ostream &,
+ OutputParams const &) const
+{
+ return 0;
+}
+
int InsetOptArg::latexOptional(Buffer const & buf, ostream & os,
OutputParams const & runparams) const
/// Standard LaTeX output -- short-circuited
int latex(Buffer const &, std::ostream &,
OutputParams const &) const;
+ /// Standard DocBook output -- short-circuited
+ int docbook(Buffer const &, std::ostream &,
+ OutputParams const &) const;
+ /// Standard LinuxDoc output -- short-circuited
+ int linuxdoc(Buffer const &, std::ostream &,
+ OutputParams const &) const;
+
/// Outputting the optional parameter of a LaTeX command
int latexOptional(Buffer const &, std::ostream &,
OutputParams const &) const;
{
LyXLayout_ptr const & defaultstyle = buf.params().getLyXTextClass().defaultLayout();
for(ParagraphList::const_iterator par = pbegin; par != pend; ++par) {
+ if (par != pbegin)
+ os << '\n';
if (par->layout() == defaultstyle && par->emptyTag()) {
par->simpleDocBookOnePar(buf, os, runparams, outerFont(par - paragraphs.begin(), paragraphs));
} else {
sgml::openTag(buf, os, runparams, *par);
par->simpleDocBookOnePar(buf, os, runparams, outerFont(par - paragraphs.begin(), paragraphs));
sgml::closeTag(os, *par);
- os << '\n';
}
}
return pend;