diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-06-09 06:48:29 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-06-09 06:48:29 +0800 |
commit | 6d84e196d76acdcc56908bc8ec1484f8e3d614b6 (patch) | |
tree | 9c5cc5a936b08273d9bda4d97c616cc2b91362d6 /embed/mozilla/GeckoSpellCheckEngine.h | |
parent | 5d74d2227e45c916bbe44289684737a49b2e3c77 (diff) | |
download | gsoc2013-epiphany-6d84e196d76acdcc56908bc8ec1484f8e3d614b6.tar gsoc2013-epiphany-6d84e196d76acdcc56908bc8ec1484f8e3d614b6.tar.gz gsoc2013-epiphany-6d84e196d76acdcc56908bc8ec1484f8e3d614b6.tar.bz2 gsoc2013-epiphany-6d84e196d76acdcc56908bc8ec1484f8e3d614b6.tar.lz gsoc2013-epiphany-6d84e196d76acdcc56908bc8ec1484f8e3d614b6.tar.xz gsoc2013-epiphany-6d84e196d76acdcc56908bc8ec1484f8e3d614b6.tar.zst gsoc2013-epiphany-6d84e196d76acdcc56908bc8ec1484f8e3d614b6.zip |
Check for enchant, and output an overview of the configured options on
2006-06-09 Christian Persch <chpe@cvs.gnome.org>
* configure.ac:
Check for enchant, and output an overview of the configured
options on successful configure.
* data/default-prefs-common.js:
* embed/mozilla/GeckoSpellCheckEngine.cpp:
* embed/mozilla/GeckoSpellCheckEngine.h:
* embed/mozilla/Makefile.am:
* embed/mozilla/MozRegisterComponents.cpp:
* lib/Makefile.am:
* lib/ephy-spell-check.c:
* lib/ephy-spell-check.h:
Spell check support using the gecko 'spellchecker' extension.
No corrections context menu or language switching yet.
Diffstat (limited to 'embed/mozilla/GeckoSpellCheckEngine.h')
-rw-r--r-- | embed/mozilla/GeckoSpellCheckEngine.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/embed/mozilla/GeckoSpellCheckEngine.h b/embed/mozilla/GeckoSpellCheckEngine.h new file mode 100644 index 000000000..d31e93603 --- /dev/null +++ b/embed/mozilla/GeckoSpellCheckEngine.h @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2006 Christian Persch + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id$ + */ + +#ifndef GECKO_SPELL_CHECK_ENGINE_H +#define GECKO_SPELL_CHECK_ENGINE_H + +#include <nsCOMPtr.h> +#include <mozISpellCheckingEngine.h> + +#include "ephy-spell-check.h" + +class mozIPersonalDictionary; + +/* 26948b8b-d136-4a78-a9c5-3a145812b649 */ +#define GECKO_SPELL_CHECK_ENGINE_IID \ +{ 0x26948b8b, 0xd136, 0x4a78, { 0xa9, 0xc5, 0x3a, 0x14, 0x58, 0x12, 0xb6, 0x49 } } + +#define GECKO_SPELL_CHECK_ENGINE_CONTRACTID "@mozilla.org/spellchecker/myspell;1" +#define GECKO_SPELL_CHECK_ENGINE_CLASSNAME "Gecko Print Settings" + +class GeckoSpellCheckEngine : public mozISpellCheckingEngine +{ + public: + GeckoSpellCheckEngine(); + virtual ~GeckoSpellCheckEngine(); + + NS_DECL_ISUPPORTS + NS_DECL_MOZISPELLCHECKINGENGINE + + private: + nsCOMPtr<mozIPersonalDictionary> mPersonalDictionary; + EphySpellCheck *mSpeller; +}; + +#endif /* GECKO_SPELL_CHECK_ENGINE_H */ |