File indexing completed on 2024-05-26 04:26:22

0001 /* This file is part of the KDE project
0002  * SPDX-FileCopyrightText: 2009 Jan Hambrecht <jaham@gmx.net>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 
0007 #ifndef SVGCSSHELPER_H
0008 #define SVGCSSHELPER_H
0009 
0010 #include <QStringList>
0011 
0012 #include <QDomDocument>
0013 
0014 class SvgCssHelper
0015 {
0016 public:
0017     SvgCssHelper();
0018     ~SvgCssHelper();
0019 
0020     /// Parses css style sheet in given xml element
0021     void parseStylesheet(const QDomElement &);
0022 
0023     /**
0024      * Matches css styles to given xml element and returns them
0025      * @param element the element to match styles for
0026      * @return list of matching css styles sorted by priority
0027      */
0028     QStringList matchStyles(const QDomElement &element) const;
0029 
0030 private:
0031     class Private;
0032     Private * const d;
0033 };
0034 
0035 #endif // SVGCSSHELPER_H