Okular::AnnotationProxy
#include <annotations.h>
Public Types | |
enum | Capability { Addition , Modification , Removal } |
Public Member Functions | |
AnnotationProxy (const AnnotationProxy &)=delete | |
virtual | ~AnnotationProxy () |
virtual void | notifyAddition (Annotation *annotation, int page)=0 |
virtual void | notifyModification (const Annotation *annotation, int page, bool appearanceChanged)=0 |
virtual void | notifyRemoval (Annotation *annotation, int page)=0 |
AnnotationProxy & | operator= (const AnnotationProxy &)=delete |
virtual bool | supports (Capability capability) const =0 |
Detailed Description
Native annotation interface.
Generators can subclass it to provide native annotation support. Generators can use Annotation::setNativeId to store per-annotation data.
- Since
- 0.15 (KDE 4.9)
Definition at line 730 of file annotations.h.
Member Enumeration Documentation
◆ Capability
Enumerator | |
---|---|
Addition | Generator can create native annotations. |
Modification | Generator can edit native annotations. |
Removal | Generator can remove native annotations. |
Definition at line 733 of file annotations.h.
Constructor & Destructor Documentation
◆ AnnotationProxy()
AnnotationProxy::AnnotationProxy | ( | ) |
Definition at line 218 of file annotations.cpp.
◆ ~AnnotationProxy()
|
virtual |
Destroys the annotation proxy.
Definition at line 222 of file annotations.cpp.
Member Function Documentation
◆ notifyAddition()
|
pure virtual |
Called when a new annotation
is added to a page
.
- Note
- Only called if supports(Addition) == true
◆ notifyModification()
|
pure virtual |
Called after an existing annotation
at a given page
is modified.
Generator can call annotation
getters to get the new values. appearanceChanged
tells if a non-visible property was modified
- Note
- Only called if supports(Modification) == true
◆ notifyRemoval()
|
pure virtual |
Called when an existing annotation
at a given page
is removed.
- Note
- Only called if supports(Removal) == true
◆ supports()
|
pure virtual |
Query for the supported capabilities.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:47:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.