lyx_mirror/src/support/tests/dummy_functions.cpp

39 lines
575 B
C++
Raw Normal View History

#include <config.h>
#include "../Messages.h"
using namespace std;
namespace lyx {
// Dummy LyXRC support
class LyXRC { string icon_set; } lyxrc;
// Dummy LyXAlignment support
enum LyXAlignment {
DUMMY
};
// Keep the linker happy on Windows
void lyx_exit(int) {}
// Dummy language support
Messages const & getGuiMessages()
{
static Messages lyx_messages;
return lyx_messages;
}
Messages const & getMessages(string const &)
{
static Messages lyx_messages;
return lyx_messages;
}
string alignmentToCSS(LyXAlignment)
{
return string();
}
}