]> git.lyx.org Git - lyx.git/blobdiff - src/Encoding.cpp
compil fix for Qt-4.2
[lyx.git] / src / Encoding.cpp
index 71ea8c63e49a944691d5c760bbbc2c7cfa372bbd..3dca7b01ab4fb52020123533a7e7800f0f0336bc 100644 (file)
@@ -341,6 +341,27 @@ docstring const Encoding::latexChar(char_type c) const
 }
 
 
+set<char_type> Encoding::getSymbolsList()
+{
+       // assure the used encoding is properly initialized
+       if (!complete_)
+               init();
+       BOOST_ASSERT(complete_);
+
+       // first all encodable characters
+       CharSet symbols = encodable_;
+       // add those below start_encodable_
+       for (char_type c = 0; c < start_encodable_; ++c)
+               symbols.insert(c);
+       // now the ones from the unicodesymbols file
+       CharInfoMap::const_iterator const end = unicodesymbols.end();
+       for (CharInfoMap::const_iterator it = unicodesymbols.begin(); it != end; ++it) {
+               symbols.insert(it->first);
+       }
+       return symbols;
+}
+
+
 void Encodings::validate(char_type c, LaTeXFeatures & features)
 {
        CharInfoMap::const_iterator const it = unicodesymbols.find(c);