]> git.lyx.org Git - lyx.git/blobdiff - src/Thesaurus.h
fix a visual cursor edge-case:
[lyx.git] / src / Thesaurus.h
index a673e04765a1f6792932768a066f4945e18b7fb9..e63f2935236108b73cddbdb0104e5692aa6e515c 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef THESAURUS_H
 #define THESAURUS_H
 
+#include "support/docstring.h"
+
 #include <vector>
 #include <map>
 
@@ -19,6 +21,8 @@
 #include AIKSAURUS_H_LOCATION
 #endif
 
+namespace lyx {
+
 /**
  * This class provides an interface to whatever thesauri we might support.
  */
@@ -30,12 +34,12 @@ public:
        ///
        ~Thesaurus();
 
-       typedef std::map<std::string, std::vector<std::string> > Meanings;
+       typedef std::map<docstring, std::vector<docstring> > Meanings;
 
        /**
         * look up some text in the thesaurus
         */
-       Meanings lookup(std::string const & text);
+       Meanings lookup(docstring const & text);
 
 private:
 #ifdef HAVE_LIBAIKSAURUS
@@ -45,4 +49,7 @@ private:
 
 extern Thesaurus thesaurus;
 
+
+} // namespace lyx
+
 #endif