/**
- * \file intl.C
- * Copyright 1995-2002 the LyX Team
- * Read the file COPYING
+ * \file intl.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
* \author unknown
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author Lars Gullik Bjønnes
+ * \author Angus Leeming
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
#include "intl.h"
#include "debug.h"
#include "lyxrc.h"
-#include "support/lstrings.h"
-#include "language.h"
using std::endl;
}
-void Intl::KeyMapOn(bool on)
+void Intl::keyMapOn(bool on)
{
keymapon = on;
if (on) {
if (keymap == PRIMARY)
- KeyMapPrim();
+ keyMapPrim();
else
- KeyMapSec();
+ keyMapSec();
} else
- trans.DisableKeymap();
+ trans.disableKeymap();
}
-void Intl::ToggleKeyMap()
+void Intl::toggleKeyMap()
{
if (keymapon && (keymap == PRIMARY)) {
- KeyMapSec();
+ keyMapSec();
} else if (keymapon) {
- KeyMapOn(false);
+ keyMapOn(false);
} else
- KeyMapPrim();
+ keyMapPrim();
}
-void Intl::KeyMapPrim()
+void Intl::keyMapPrim()
{
- if (!trans.SetPrimary(prim_lang))
- trans.EnablePrimary();
+ if (!trans.setPrimary(prim_lang))
+ trans.enablePrimary();
keymapon = true;
keymap = PRIMARY;
}
-void Intl::KeyMapSec()
+void Intl::keyMapSec()
{
- if (!trans.SetSecondary(sec_lang))
- trans.EnableSecondary();
+ if (!trans.setSecondary(sec_lang))
+ trans.enableSecondary();
keymapon = true;
keymap = SECONDARY;
}
-void Intl::InitKeyMapper(bool on)
+void Intl::initKeyMapper(bool on)
{
lyxerr[Debug::INIT] << "Initializing key mappings..." << endl;
else
keymapon = on;
- KeyMapOn(keymapon);
+ keyMapOn(keymapon);
if (keymapon)
- KeyMapPrim();
+ keyMapPrim();
- trans.SetPrimary(prim_lang);
- trans.SetSecondary(sec_lang);
+ trans.setPrimary(prim_lang);
+ trans.setSecondary(sec_lang);
trans.setCharset(lyxrc.font_norm);
}