#include <config.h>
#include "tex2lyx.h"
-#include "Context.h"
+#include "Context.h"
#include "TextClass.h"
#include "Layout.h"
+#include "support/assert.h"
#include "support/convert.h"
#include "support/debug.h"
#include "support/ExceptionMessage.h"
namespace lyx {
-// Hacks to allow the thing to link in the lyxlayout stuff
-LayoutPtr captionlayout;
-
-
string const trim(string const & a, char const * p)
{
- // BOOST_ASSERT(p);
+ // LASSERT(p, /**/);
if (a.empty() || !*p)
return a;
stringstream ss;
TeX2LyXDocClass textclass;
parse_preamble(p, ss, documentclass, textclass);
- captionlayout = LayoutPtr(Layout::forCaption());
active_environments.push_back("document");
Context context(true, textclass);