X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftrans.h;h=ce529a2b9f991c2d58bf850373d2e52e35dcdd86;hb=16b2e76d1a7f8f5037d3d2e9fb78baeb4f67b0c6;hp=3d719c255b868e05c4e8ff3566b95cc2b3fa0778;hpb=eb28793c05431eef16966945428b0668498fafa4;p=lyx.git diff --git a/src/trans.h b/src/trans.h index 3d719c255b..ce529a2b9f 100644 --- a/src/trans.h +++ b/src/trans.h @@ -1,24 +1,26 @@ // -*- C++ -*- /** * \file trans.h - * Copyright 2002 the LyX Team - * Read the file COPYING + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * \author unknown + * \author Lars Gullik Bjønnes + * \author Matthias Ettrich + * \author John Levon + * + * Full author contact details are available in file CREDITS. */ #ifndef TRANS_H #define TRANS_H -#ifdef __GNUG__ -#pragma interface -#endif +#include "trans_decl.h" #include -#include "tex-accent.h" -#include "LString.h" -#include "trans_decl.h" + +namespace lyx { + class LyXLex; @@ -35,36 +37,36 @@ public: ~Trans(); /// - int Load(string const & language); + int load(std::string const & language); /// - bool IsDefined() const; + bool isDefined() const; /// - string const & GetName() const; + std::string const & getName() const; /// - string const process(char, TransManager &); + std::string const process(char, TransManager &); /// bool isAccentDefined(tex_accent, KmodInfo &) const; private: /// - void AddDeadkey(tex_accent, string const &); + void addDeadkey(tex_accent, std::string const &); /// - void FreeKeymap(); + void freeKeymap(); /// - int Load(LyXLex &); + int load(LyXLex &); /// - string const & Match(unsigned char c); + std::string const & match(unsigned char c); /// - void InsertException(KmodException & exclist, char c, - string const & data, bool = false, + void insertException(KmodException & exclist, char c, + std::string const & data, bool = false, tex_accent = TEX_NOACCENT); /// - void FreeException(KmodException & exclist); + void freeException(KmodException & exclist); /// - string name_; + std::string name_; /// - std::map keymap_; + std::map keymap_; /// std::map kmod_list_; }; @@ -72,14 +74,17 @@ private: /// inline -string const & Trans::Match(unsigned char c) +std::string const & Trans::match(unsigned char c) { - std::map::iterator it = keymap_.find(c); + std::map::iterator it = keymap_.find(c); if (it != keymap_.end()) { return it->second; } - static string dummy; + static std::string dummy; return dummy; } + +} // namespace lyx + #endif // TRANS_H