Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgTextPropertiesInterface.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KOSVGTEXTPROPERTIESINTERFACE_H
7#define KOSVGTEXTPROPERTIESINTERFACE_H
8
9#include <QObject>
10#include <KoSvgTextProperties.h>
11#include <kritaflake_export.h>
12
19class KRITAFLAKE_EXPORT KoSvgTextPropertiesInterface : public QObject
20{
21 Q_OBJECT
22public:
23 explicit KoSvgTextPropertiesInterface(QObject *parent = nullptr): QObject(parent){}
24
30
45 virtual void setPropertiesOnSelected(KoSvgTextProperties properties, QSet<KoSvgTextProperties::PropertyId> removeProperties = QSet<KoSvgTextProperties::PropertyId>()) = 0;
46
48 virtual bool spanSelection() = 0;
49Q_SIGNALS:
51};
52
53
54#endif // KOSVGTEXTPROPERTIESINTERFACE_H
The KoSvgTextPropertiesInterface class.
virtual QList< KoSvgTextProperties > getSelectedProperties()=0
getSelectedProperties
virtual void setPropertiesOnSelected(KoSvgTextProperties properties, QSet< KoSvgTextProperties::PropertyId > removeProperties=QSet< KoSvgTextProperties::PropertyId >())=0
setPropertiesOnSelected This sets the properties on the selection. The implementation is responsible ...
virtual bool spanSelection()=0
Whether the tool is currently selecting a set of characters instead of whole paragraphs.
virtual KoSvgTextProperties getInheritedProperties()=0
getInheritedProperties The properties that should be visible when a given property isn't available in...
KoSvgTextPropertiesInterface(QObject *parent=nullptr)