#include "trans_mgr.h"
#include "trans.h"
#include "lyxtext.h"
-#include "LString.h"
#include "debug.h"
-#include "chset.h"
#include "insets/insetlatexaccent.h"
-#include "BufferView.h"
-#include "buffer.h"
#include "lyxrc.h"
#include "support/lstrings.h"
-using namespace lyx::support;
+using lyx::support::split;
using std::endl;
+using std::string;
using std::pair;
+
extern string const DoAccent(string const &, tex_accent);
extern string const DoAccent(char, tex_accent);
{}
+// For the sake of boost::scoped_ptr.
TransManager::~TransManager()
-{
- delete t1_;
- delete t2_;
-}
+{}
int TransManager::SetPrimary(string const & language)
void TransManager::EnablePrimary()
{
if (t1_->IsDefined())
- active_ = t1_;
+ active_ = t1_.get();
lyxerr[Debug::KBMAP] << "Enabling primary keymap" << endl;
}
void TransManager::EnableSecondary()
{
if (t2_->IsDefined())
- active_ = t2_;
+ active_ = t2_.get();
lyxerr[Debug::KBMAP] << "Enabling secondary keymap" << endl;
}