]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/frnt_lang.h
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / frnt_lang.h
1 // -*- C++ -*-
2 /**
3  * \file frnt_lang.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Angus Leeming
8  *
9  * Full author contact details are available in file CREDITS.
10  *
11  * Ease the use of internationalised language strings in the dialogs.
12  */
13
14 #ifndef FRNT_LANG_H
15 #define FRNT_LANG_H
16
17 #include <string>
18 #include <utility>
19 #include <vector>
20
21 namespace lyx {
22 namespace frontend {
23
24 ///
25 typedef std::pair<std::string, std::string> LanguagePair;
26
27 /** If the caller is the character dialog, add "No change" and "Reset"
28  *  to the vector.
29  */
30 std::vector<LanguagePair> const getLanguageData(bool character_dlg);
31
32 } // namespace frontend
33 } // namespace lyx
34
35 #endif // FRNT_LANG_H