Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
763 B
Raw Blame
/* This file is part of the KDE project
 * SPDX-FileCopyrightText: 2009 Jan Hambrecht <[email protected]>
 *
 * SPDX-License-Identifier: LGPL-2.0-or-later
 */

#ifndef SVGCSSHELPER_H
#define SVGCSSHELPER_H

#include <QStringList>

#include <QDomDocument>

class SvgCssHelper
{
public:
    SvgCssHelper();
    ~SvgCssHelper();

    /// Parses css style sheet in given xml element
    void parseStylesheet(const QDomElement &);

    /**
     * Matches css styles to given xml element and returns them
     * @param element the element to match styles for
     * @return list of matching css styles sorted by priority
     */
    QStringList matchStyles(const QDomElement &element) const;

private:
    class Private;
    Private * const d;
};

#endif // SVGCSSHELPER_H