Molybden API
Loading...
Searching...
No Matches
spellchecker.hpp
1// Copyright (c) 2000-2023 TeamDev Ltd. 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:
25 virtual std::shared_ptr<Profile> profile() = 0;
26
32 virtual bool isEnabled() = 0;
33
38 virtual void enable() = 0;
39
44 virtual void disable() = 0;
45
55 virtual std::vector<Language> languages() = 0;
56
69 virtual bool addLanguage(const Language& language) = 0;
70
81 virtual void removeLanguage(const Language& language) = 0;
82
86 virtual std::shared_ptr<Dictionary> customDictionary() = 0;
87};
88} // namespace molybden
89
90#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