mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
13c60bfa78
This is a followup ofd4718b18
, which itself fixes a problem introduced in66fa801e
.
57 lines
859 B
C++
57 lines
859 B
C++
#include <config.h>
|
|
|
|
#include "../support/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();
|
|
}
|
|
|
|
//
|
|
// Dummy FontMetrics (needed by Length)
|
|
//
|
|
|
|
|
|
namespace frontend {
|
|
class FontMetrics {
|
|
int em() const { return 0; };
|
|
};
|
|
}
|
|
|
|
class FontInfo;
|
|
|
|
frontend::FontMetrics const & theFontMetrics(FontInfo const &) {
|
|
static frontend::FontMetrics dummy;
|
|
return dummy;
|
|
}
|
|
|
|
}
|