#include "FuncStatus.h"
#include "MetricsInfo.h"
#include "output_xhtml.h"
+#include "xml.h"
#include "Text.h"
#include "TextClass.h"
#include "TocBackend.h"
// This list should be kept in sync with the list of dialogs in
-// src/frontends/qt4/GuiView.cpp, I.e., if a dialog goes with an
+// src/frontends/qt/GuiView.cpp, I.e., if a dialog goes with an
// inset, the dialog should have the same name as the inset.
// Changes should be also recorded in LFUN_DIALOG_SHOW doxygen
// docs in LyXAction.cpp.
insetnames[TOC_CODE] = InsetName("toc");
insetnames[QUOTE_CODE] = InsetName("quote");
insetnames[REF_CODE] = InsetName("ref");
+ insetnames[COUNTER_CODE] = InsetName("counter");
insetnames[HYPERLINK_CODE] = InsetName("href");
insetnames[SEPARATOR_CODE] = InsetName("separator");
insetnames[ENDING_CODE] = InsetName("ending");
bool Inset::isBufferValid() const
{
return buffer_
- && (isBufferLoaded() || buffer_->isClone());
+ && (isBufferLoaded() || buffer_->isInternal() || buffer_->isClone());
}
}
-bool Inset::forceLTR() const
+bool Inset::forceLTR(OutputParams const &) const
{
return getLayout().forceLTR();
}
}
-int Inset::docbook(odocstream &, OutputParams const &) const
+void Inset::docbook(XMLStream & xs, OutputParams const &) const
{
- return 0;
+ xs << "[[Inset: " << from_ascii(insetName(lyxCode())) << "]]";
}
-docstring Inset::xhtml(XHTMLStream & xs, OutputParams const &) const
+docstring Inset::xhtml(XMLStream & xs, OutputParams const &) const
{
xs << "[[Inset: " << from_ascii(insetName(lyxCode())) << "]]";
return docstring();