*
* \author Dekel Tsur
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
void InsetWrapParams::write(ostream & os) const
{
- os << "Wrap " // getInsetName()
- << type << '\n';
+ os << "Wrap " << type << '\n';
- if (!placement.empty()) {
+ if (!placement.empty())
os << "placement " << placement << "\n";
- }
+
os << "width \"" << width.asString() << "\"\n";
}
}
-void InsetWrap::write(Buffer const * buf, ostream & os) const
+void InsetWrap::write(Buffer const & buf, ostream & os) const
{
params_.write(os);
InsetCollapsable::write(buf, os);
}
-void InsetWrap::read(Buffer const * buf, LyXLex & lex)
+void InsetWrap::read(Buffer const & buf, LyXLex & lex)
{
params_.read(lex);
InsetCollapsable::read(buf, lex);
}
-int InsetWrap::latex(Buffer const * buf, ostream & os,
+int InsetWrap::latex(Buffer const & buf, ostream & os,
LatexRunParams const & runparams) const
{
os << "\\begin{floating" << params_.type << '}';
}
-int InsetWrap::docbook(Buffer const * buf, ostream & os, bool mixcont) const
+int InsetWrap::docbook(Buffer const & buf, ostream & os, bool mixcont) const
{
os << '<' << params_.type << '>';
int const i = inset.docbook(buf, os, mixcont);
}
-void InsetWrap::addToToc(toc::TocList & toclist, Buffer const * buf) const
+void InsetWrap::addToToc(lyx::toc::TocList & toclist, Buffer const & buf) const
{
// Now find the caption in the float...
ParagraphList::iterator tmp = inset.paragraphs.begin();
for (; tmp != end; ++tmp) {
if (tmp->layout()->name() == caplayout) {
- string const name = floatname(params_.type, buf->params);
+ string const name = floatname(params_.type, buf.params);
string const str =
tostr(toclist[name].size() + 1)
+ ". " + tmp->asString(buf, false);
- toc::TocItem const item(tmp->id(), 0 , str);
+ lyx::toc::TocItem const item(tmp->id(), 0 , str);
toclist[name].push_back(item);
}
}