Molybden API
Loading...
Searching...
No Matches
spellchecker.hpp
1// Copyright (c) 2000-2024 TeamDev. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_SPELLCHECKER_HPP
6#define MOLYBDEN_SPELLCHECKER_HPP
7
8#include <vector>
9#include <memory>
10
11namespace molybden {
12
13class Dictionary;
14class Profile;
15struct Language;
16
21 public:
22 virtual ~SpellChecker() = default;
23
27 virtual std::shared_ptr<Profile> profile() = 0;
28
34 virtual bool isEnabled() = 0;
35
40 virtual void enable() = 0;
41
46 virtual void disable() = 0;
47
57 virtual std::vector<Language> languages() = 0;
58
71 virtual bool addLanguage(const Language& language) = 0;
72
83 virtual void removeLanguage(const Language& language) = 0;
84
88 virtual std::shared_ptr<Dictionary> customDictionary() = 0;
89};
90} // namespace molybden
91
92#endif // MOLYBDEN_SPELLCHECKER_HPP
A profile service that provides functionality for configuring spell checking.
Definition spellchecker.hpp:20
virtual void removeLanguage(const Language &language)=0
Removes the language from the list of the languages for which spell checking is performed.
virtual std::shared_ptr< Dictionary > customDictionary()=0
Returns the custom dictionary.
virtual void disable()=0
Disables spell checking on the web pages loaded in the browser instances of the profile.
virtual std::shared_ptr< Profile > profile()=0
The profile associated with this spell checker.
virtual std::vector< Language > languages()=0
A list of the languages used for spell checking.
virtual bool addLanguage(const Language &language)=0
Adds the language to the list of the languages for which spell checking is performed.
virtual bool isEnabled()=0
Indicates whether spell checking is enabled or not.
virtual void enable()=0
Enables spell checking on the web pages loaded in the browser instances of the profile.
A language for which Chromium can perform spell checking.
Definition language.hpp:15