Warning, file /office/calligra/libs/text/KoTextEditingRegistry.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /* This file is part of the KDE project
0002  * Copyright (C) 2006-2007 Thomas Zander <zander@kde.org>
0003  *
0004  * This library is free software; you can redistribute it and/or
0005  * modify it under the terms of the GNU Library General Public
0006  * License as published by the Free Software Foundation; either
0007  * version 2 of the License, or (at your option) any later version.
0008  *
0009  * This library is distributed in the hope that it will be useful,
0010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0012  * Library General Public License for more details.
0013  *
0014  * You should have received a copy of the GNU Library General Public License
0015  * along with this library; see the file COPYING.LIB.  If not, write to
0016  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0017  * Boston, MA 02110-1301, USA.
0018  */
0019 
0020 #ifndef KOTEXTEDITINGREGISTRY_H
0021 #define KOTEXTEDITINGREGISTRY_H
0022 
0023 #include <KoGenericRegistry.h>
0024 #include <KoTextEditingFactory.h>
0025 
0026 /**
0027  * This singleton class keeps a register of all available text editing plugins.
0028  * The text editing plugins are all about handling user input while (s)he
0029  * is editing the text. A plugin can do near everything with the typed text,
0030  * including altering it and adding markup. The plugin gives events when a
0031  * word and when a paragraph has been finished. Which is ideal for autocorrection
0032  * and autoreplacement of text.
0033  * @see KoTextEditingFactory
0034  * @see KoTextEditingPlugin
0035  */
0036 class KOTEXT_EXPORT KoTextEditingRegistry : public KoGenericRegistry<KoTextEditingFactory*>
0037 {
0038 public:
0039     /**
0040      * Return an instance of the KoTextEditingRegistry
0041      * Creates an instance if that has never happened before and returns the singleton instance.
0042      */
0043     KoTextEditingRegistry() {}
0044     ~KoTextEditingRegistry() override;
0045     static KoTextEditingRegistry *instance();
0046 
0047 private:
0048 
0049     void init();
0050 };
0051 
0052 #endif