File indexing completed on 2024-06-09 04:20:50

0001 /* This file is part of the KDE project
0002  * SPDX-FileCopyrightText: 2011 Jan Hambrecht <jaham@gmx.net>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 
0007 #ifndef SVGSHAPE_H
0008 #define SVGSHAPE_H
0009 
0010 #include "kritaflake_export.h"
0011 
0012 class SvgSavingContext;
0013 class SvgLoadingContext;
0014 #include <QDomDocument>
0015 
0016 /// An interface providing svg loading and saving routines
0017 class KRITAFLAKE_EXPORT SvgShape
0018 {
0019 public:
0020     virtual ~SvgShape();
0021 
0022     /// Saves data utilizing specified svg saving context
0023     virtual bool saveSvg(SvgSavingContext &context);
0024 
0025     /// Loads data from specified svg element
0026     virtual bool loadSvg(const QDomElement &element, SvgLoadingContext &context);
0027 };
0028 
0029 #endif // SVGSHAPE_H