File indexing completed on 2024-04-21 04:33:59

0001 /*
0002     SPDX-FileCopyrightText: 2017 Friedrich W. H. Kossebau <kossebau@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef SVGBROWSEREXTENSION_H
0008 #define SVGBROWSEREXTENSION_H
0009 
0010 // Qt
0011 #include <QtGlobal>
0012 
0013 // KF
0014 #include <KParts/NavigationExtension>
0015 
0016 class SvgPart;
0017 
0018 class SvgBrowserExtension : public KParts::NavigationExtension
0019 {
0020     Q_OBJECT
0021 
0022 public:
0023     explicit SvgBrowserExtension(SvgPart *part);
0024 
0025     int xOffset() override;
0026     int yOffset() override;
0027 
0028     void saveState(QDataStream &stream) override;
0029     void restoreState(QDataStream &stream) override;
0030 
0031 private:
0032     SvgPart *m_part;
0033 };
0034 
0035 #endif