KSyntaxHighlighting

repositorywrapper.cpp
1 /*
2  SPDX-FileCopyrightText: 2021 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: MIT
5 */
6 
7 #include "repositorywrapper.h"
8 
9 #include <KSyntaxHighlighting/Definition>
10 #include <KSyntaxHighlighting/Repository>
11 #include <KSyntaxHighlighting/Theme>
12 
13 using namespace KSyntaxHighlighting;
14 
15 RepositoryWrapper::RepositoryWrapper(QObject *parent)
16  : QObject(parent)
17 {
18 }
19 
20 Definition RepositoryWrapper::definitionForName(const QString &defName) const
21 {
22  return m_repository->definitionForName(defName);
23 }
24 
25 Definition RepositoryWrapper::definitionForFileName(const QString &fileName) const
26 {
27  return m_repository->definitionForFileName(fileName);
28 }
29 
30 QVector<Definition> RepositoryWrapper::definitionsForFileName(const QString &fileName) const
31 {
32  return m_repository->definitionsForFileName(fileName);
33 }
34 
35 Definition RepositoryWrapper::definitionForMimeType(const QString &mimeType) const
36 {
37  return m_repository->definitionForMimeType(mimeType);
38 }
39 
40 QVector<Definition> RepositoryWrapper::definitionsForMimeType(const QString &mimeType) const
41 {
42  return m_repository->definitionsForMimeType(mimeType);
43 }
44 
45 QVector<Definition> RepositoryWrapper::definitions() const
46 {
47  return m_repository->definitions();
48 }
49 
50 QVector<Theme> RepositoryWrapper::themes() const
51 {
52  return m_repository->themes();
53 }
54 
55 Theme RepositoryWrapper::theme(const QString &themeName) const
56 {
57  return m_repository->theme(themeName);
58 }
59 
60 Theme RepositoryWrapper::defaultTheme(DefaultTheme t) const
61 {
62  return m_repository->defaultTheme(static_cast<Repository::DefaultTheme>(t));
63 }
64 
65 #include "moc_repositorywrapper.cpp"
Represents a syntax definition.
Definition: definition.h:86
Color theme definition used for highlighting.
Definition: theme.h:64
DefaultTheme
Built-in default theme types.
Definition: repository.h:214
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:09:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.