#include "TextClass.h"
#include "debug.h"
+#include "Layout.h"
#include "Lexer.h"
#include "Counters.h"
#include "gettext.h"
#include "support/os.h"
#include <boost/filesystem/operations.hpp>
-namespace fs = boost::filesystem;
#include <sstream>
+namespace fs = boost::filesystem;
namespace lyx {
return;
case TITLE_COMMAND_AFTER:
case TITLE_ENVIRONMENT:
- titletype_ = static_cast<LYX_TITLE_LATEX_TYPES>(le);
+ titletype_ = static_cast<TitleLatexType>(le);
break;
default:
lyxerr << "Unhandled value " << le
case IL_FONT:
font.lyxRead(lexrc);
font.realize(defaultfont());
+ // So: define font before labelfont
labelfont = font;
break;
case IL_BGCOLOR: {
}
static InsetLayout empty;
empty.labelstring = from_utf8("UNDEFINED");
+ empty.bgcolor = Color::error;
return empty;
}
}
-LYX_TITLE_LATEX_TYPES TextClass::titletype() const
+TitleLatexType TextClass::titletype() const
{
return titletype_;
}