Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgTextPropertiesInterface Class Referenceabstract

The KoSvgTextPropertiesInterface class. More...

#include <KoSvgTextPropertiesInterface.h>

+ Inheritance diagram for KoSvgTextPropertiesInterface:

Signals

void textSelectionChanged ()
 

Public Member Functions

virtual KoSvgTextProperties getInheritedProperties ()=0
 getInheritedProperties The properties that should be visible when a given property isn't available in common properties. This is typically the paragraph properties.
 
virtual QList< KoSvgTextPropertiesgetSelectedProperties ()=0
 getSelectedProperties
 
 KoSvgTextPropertiesInterface (QObject *parent=nullptr)
 
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 for handling the undo states.
 
virtual bool spanSelection ()=0
 Whether the tool is currently selecting a set of characters instead of whole paragraphs.
 

Detailed Description

The KoSvgTextPropertiesInterface class.

This is an interface that can be used by tools to communicate with the KisTextPropertiesManager.

Definition at line 19 of file KoSvgTextPropertiesInterface.h.

Constructor & Destructor Documentation

◆ KoSvgTextPropertiesInterface()

KoSvgTextPropertiesInterface::KoSvgTextPropertiesInterface ( QObject * parent = nullptr)
inlineexplicit

Definition at line 23 of file KoSvgTextPropertiesInterface.h.

23: QObject(parent){}

Member Function Documentation

◆ getInheritedProperties()

virtual KoSvgTextProperties KoSvgTextPropertiesInterface::getInheritedProperties ( )
pure virtual

getInheritedProperties The properties that should be visible when a given property isn't available in common properties. This is typically the paragraph properties.

Returns
what counts as the inherited properties for the given selection.

Implemented in DefaultToolTextPropertiesInterface, and SvgTextCursorPropertyInterface.

◆ getSelectedProperties()

virtual QList< KoSvgTextProperties > KoSvgTextPropertiesInterface::getSelectedProperties ( )
pure virtual

getSelectedProperties

Returns
all KoSvgTextProperties for the given selection.

Implemented in DefaultToolTextPropertiesInterface, and SvgTextCursorPropertyInterface.

◆ setPropertiesOnSelected()

virtual void KoSvgTextPropertiesInterface::setPropertiesOnSelected ( KoSvgTextProperties properties,
QSet< KoSvgTextProperties::PropertyId > removeProperties = QSet< KoSvgTextProperties::PropertyId >() )
pure virtual

setPropertiesOnSelected This sets the properties on the selection. The implementation is responsible for handling the undo states.

Parameters
properties– the properties to set.

Implemented in DefaultToolTextPropertiesInterface, and SvgTextCursorPropertyInterface.

◆ spanSelection()

virtual bool KoSvgTextPropertiesInterface::spanSelection ( )
pure virtual

Whether the tool is currently selecting a set of characters instead of whole paragraphs.

Implemented in DefaultToolTextPropertiesInterface, and SvgTextCursorPropertyInterface.

◆ textSelectionChanged

void KoSvgTextPropertiesInterface::textSelectionChanged ( )
signal

The documentation for this class was generated from the following file: