|
|
#include <cerrno> | #include <cerrno> |
#include <cstring> | #include <cstring> |
#include <cstdio> | #include <cstdio> |
|
#include <cstdlib> |
#include <glib/gi18n.h> | #include <glib/gi18n.h> |
#include <glib/gstdio.h> | #include <glib/gstdio.h> |
| |
|
|
#include <glib.h> | #include <glib.h> |
#include <list> | #include <list> |
#include <string> | #include <string> |
|
#include <cstring> |
|
#include <cstdlib> |
| |
//this structure contain all information about dictionary | //this structure contain all information about dictionary |
struct DictInfo { | struct DictInfo { |
|
|
#include <glib.h> | #include <glib.h> |
#include <vector> | #include <vector> |
#include <string> | #include <string> |
|
#include <cstring> |
#include <memory> | #include <memory> |
| |
#include "dictziplib.hpp" | #include "dictziplib.hpp" |
|
|
#include "pluginmanager.h" | #include "pluginmanager.h" |
#include "file.hpp" | #include "file.hpp" |
#include <string> | #include <string> |
|
#include <cstring> |
| |
StarDictPluginBaseObject::StarDictPluginBaseObject(const char *filename, GModule *module_, plugin_configure_func_t configure_func_): | StarDictPluginBaseObject::StarDictPluginBaseObject(const char *filename, GModule *module_, plugin_configure_func_t configure_func_): |
plugin_filename(filename), module(module_), configure_func(configure_func_) | plugin_filename(filename), module(module_), configure_func(configure_func_) |
|
|
| |
#include <glib.h> | #include <glib.h> |
#include <string> | #include <string> |
|
#include <cstring> |
|
#include <cstdlib> |
#include <map> | #include <map> |
#ifndef _WIN32 | #ifndef _WIN32 |
# include <netdb.h> | # include <netdb.h> |
|
|
//Compilers, such as older versions of SUN Forte C++, that do not allow this also often | //Compilers, such as older versions of SUN Forte C++, that do not allow this also often |
//do not allow a typedef to have the same name as a class in the typedef's definition. | //do not allow a typedef to have the same name as a class in the typedef's definition. |
//For Sun Forte CC 5.7 (SUN Workshop 10), comment this out to fix the build. | //For Sun Forte CC 5.7 (SUN Workshop 10), comment this out to fix the build. |
#define SIGC_TYPEDEF_REDEFINE_ALLOWED 1 |
//#define SIGC_TYPEDEF_REDEFINE_ALLOWED 1 |
#endif | #endif |
| |
namespace sigc { | namespace sigc { |
|
|
//Compilers, such as older versions of SUN Forte C++, that do not allow this also often | //Compilers, such as older versions of SUN Forte C++, that do not allow this also often |
//do not allow a typedef to have the same name as a class in the typedef's definition. | //do not allow a typedef to have the same name as a class in the typedef's definition. |
//For Sun Forte CC 5.7 (SUN Workshop 10), comment this out to fix the build. | //For Sun Forte CC 5.7 (SUN Workshop 10), comment this out to fix the build. |
#define SIGC_TYPEDEF_REDEFINE_ALLOWED 1 |
//#define SIGC_TYPEDEF_REDEFINE_ALLOWED 1 |
#endif | #endif |
| |
namespace sigc { | namespace sigc { |
|
|
| |
#include <glib.h> | #include <glib.h> |
#include <string> | #include <string> |
|
#include <cstring> |
#include <vector> | #include <vector> |
#include <gdk-pixbuf/gdk-pixbuf.h> | #include <gdk-pixbuf/gdk-pixbuf.h> |
| |
|
|
#include <gdk/gdkx.h> | #include <gdk/gdkx.h> |
#include <X11/keysym.h> | #include <X11/keysym.h> |
#include <gtk/gtk.h> | #include <gtk/gtk.h> |
|
#include <memory> |
| |
#include "iskeyspressed.hpp" | #include "iskeyspressed.hpp" |
| |
|
|
#include "stardict_dictdotcn.h" | #include "stardict_dictdotcn.h" |
#include <glib/gi18n.h> | #include <glib/gi18n.h> |
#include <string> | #include <string> |
|
#include <cstring> |
#include <list> | #include <list> |
| |
#ifdef _WIN32 | #ifdef _WIN32 |
|
|
#include "stardict_html_parsedata.h" | #include "stardict_html_parsedata.h" |
#include <glib/gi18n.h> | #include <glib/gi18n.h> |
|
#include <cstring> |
|
#include <cstdlib> |
| |
#ifdef _WIN32 | #ifdef _WIN32 |
#include <windows.h> | #include <windows.h> |
|
|
#include "stardict_man.h" | #include "stardict_man.h" |
#include <glib/gi18n.h> | #include <glib/gi18n.h> |
#include <string> | #include <string> |
|
#include <cstring> |
| |
static const StarDictPluginSystemInfo *plugin_info = NULL; | static const StarDictPluginSystemInfo *plugin_info = NULL; |
static bool need_prefix; | static bool need_prefix; |
|
|
#include "stardict_powerword_parsedata.h" | #include "stardict_powerword_parsedata.h" |
#include <glib/gi18n.h> | #include <glib/gi18n.h> |
|
#include <cstring> |
| |
#ifdef _WIN32 | #ifdef _WIN32 |
#include <windows.h> | #include <windows.h> |
|
|
#include <glib/gi18n.h> | #include <glib/gi18n.h> |
#include <glib/gstdio.h> | #include <glib/gstdio.h> |
#include <string> | #include <string> |
|
#include <cstring> |
|
#include <cstdlib> |
| |
#ifdef _WIN32 | #ifdef _WIN32 |
#include <windows.h> | #include <windows.h> |
|
|
#include "stardict_wiki2xml.h" | #include "stardict_wiki2xml.h" |
#include "WIKI2XML.h" | #include "WIKI2XML.h" |
#include <glib.h> | #include <glib.h> |
|
#include <cstring> |
| |
std::string wiki2xml(std::string &str) | std::string wiki2xml(std::string &str) |
{ | { |
|
|
#include "stardict_wiki_parsedata.h" | #include "stardict_wiki_parsedata.h" |
#include "stardict_wiki2xml.h" | #include "stardict_wiki2xml.h" |
#include <glib/gi18n.h> | #include <glib/gi18n.h> |
|
#include <cstring> |
| |
#ifdef _WIN32 | #ifdef _WIN32 |
#include <windows.h> | #include <windows.h> |
|
|
| |
#include <gtk/gtk.h> | #include <gtk/gtk.h> |
#include <string> | #include <string> |
|
#include <cstring> |
#include <vector> | #include <vector> |
| |
#include "partic.hpp" | #include "partic.hpp" |
|
|
#include "stardict_wordnet_parsedata.h" | #include "stardict_wordnet_parsedata.h" |
#include <glib/gi18n.h> | #include <glib/gi18n.h> |
|
#include <cstring> |
| |
#ifdef _WIN32 | #ifdef _WIN32 |
#include <windows.h> | #include <windows.h> |
|
|
#include "stardict_xdxf_parsedata.h" | #include "stardict_xdxf_parsedata.h" |
#include <glib/gi18n.h> | #include <glib/gi18n.h> |
|
#include <cstring> |
| |
#ifdef _WIN32 | #ifdef _WIN32 |
#include <windows.h> | #include <windows.h> |
|
|
#include <cstring> | #include <cstring> |
#include <iterator> | #include <iterator> |
#include <iostream> | #include <iostream> |
|
#include <memory> |
#include <gtk/gtk.h> | #include <gtk/gtk.h> |
| |
#include "config_file.hpp" | #include "config_file.hpp" |
|
|
#include <glib.h> | #include <glib.h> |
#include <cstdlib> | #include <cstdlib> |
#include <string> | #include <string> |
|
#include <cstring> |
| |
| |
static void xml_decode(const char *str, std::string& decoded) | static void xml_decode(const char *str, std::string& decoded) |