Add AbstractDeclarationNavigationContext, and move the html-method from
[kdevelopdvcssupport.git] / language / duchain / smartconverter.h
blob132db508efd0143595e52e6d93dd913ba962d847
1 /*
2 * Copyright 2006 Hamish Rodda <rodda@kde.org>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef DUCHAIN_SMARTCONVERTER_H
21 #define DUCHAIN_SMARTCONVERTER_H
23 #include "../languageexport.h"
25 namespace KDevelop
27 class EditorIntegrator;
28 class DUContext;
30 class KDEVPLATFORMLANGUAGE_EXPORT SmartConverter
32 public:
33 SmartConverter(KDevelop::EditorIntegrator* editor);
34 ~SmartConverter();
35 ///Converts all ranges in the given context to smart-ranges
36 void convertDUChain(DUContext* context) const;
37 void deconvertDUChain(DUContext* context) const;
39 private:
40 class SmartConverterPrivate* const d;
44 #endif
46 // kate: space-indent on; indent-width 2; tab-width 4; replace-tabs on; auto-insert-doxygen on