}
+docstring InsetCaption::name() const
+{
+ if (type_.empty())
+ return from_ascii("Caption");
+ return from_utf8("Caption:" + type_);
+}
+
+
void InsetCaption::read(Lexer & lex)
{
#if 0
{
if (rp.html_disable_captions)
return docstring();
- xs << StartTag("div", "class='float-caption'");
+ string attr = "class='float-caption";
+ if (!type_.empty())
+ attr += " float-caption-" + type_;
+ attr += "'";
+ xs << StartTag("div", attr);
docstring def = getCaptionAsHTML(xs, rp);
xs << EndTag("div");
return def;
#define INSETCAPTION_H
#include "InsetText.h"
+#include "support/strfwd.h"
namespace lyx {
InsetCaption(Buffer *);
///
std::string const & type() const { return type_; }
+ ///
+ docstring name() const;
/// return the mandatory argument (LaTeX format) only
int getArgument(odocstream & os, OutputParams const &) const;
/// return the optional argument(s) only