libs/kotext
KoChangeTracker Class Reference
#include <KoChangeTracker.h>
Public Member Functions | |
| KoChangeTracker (QObject *parent=0) | |
| ~KoChangeTracker () | |
| void | acceptRejectChange (int changeId, bool set) |
| bool | containsInlineChanges (const QTextFormat &format) |
| bool | displayChanges () |
| KoChangeTrackerElement * | elementById (int id) |
| int | getChangeId (QString &title, KoGenChange::Type type, QTextCursor &selection, QTextFormat &newFormat, int prevCharChangeId, int nextCharChangeId) |
| int | getDeleteChangeId (QString title, QTextDocumentFragment selection, int existingChangeId) |
| int | getDeletedChanges (QVector< KoChangeTrackerElement * > &deleteVector) |
| const QColor & | getDeletionBgColor () |
| const QColor & | getFormatChangeBgColor () |
| int | getFormatChangeId (QString title, QTextFormat &format, QTextFormat &prevFormat, int existingChangeId) |
| int | getInsertChangeId (QString title, int existingChangeId) |
| const QColor & | getInsertionBgColor () |
| int | getLoadedChangeId (QString odfId) |
| bool | isParent (int testedParentId, int testedChildId) |
| void | loadOdfChanges (const KoXmlElement &element) |
| int | mergeableId (KoGenChange::Type type, QString &title, int existingId) |
| int | parent (int changeId) |
| bool | recordChanges () |
| bool | removeById (int id, bool freeMemory=true) |
| bool | saveInlineChange (int changeId, KoGenChange &change) |
| void | setDeletionBgColor (const QColor &color) |
| void | setDisplayChanges (bool enabled) |
| void | setFormatChangeBgColor (const QColor &color) |
| void | setInsertionBgColor (const QColor &bgColor) |
| void | setParent (int child, int parent) |
| void | setRecordChanges (bool enabled) |
| int | split (int changeId) |
Detailed Description
Definition at line 46 of file KoChangeTracker.h.
Constructor & Destructor Documentation
| KoChangeTracker::KoChangeTracker | ( | QObject * | parent = 0 |
) |
Definition at line 72 of file KoChangeTracker.cpp.
| KoChangeTracker::~KoChangeTracker | ( | ) |
Definition at line 79 of file KoChangeTracker.cpp.
Member Function Documentation
| void KoChangeTracker::acceptRejectChange | ( | int | changeId, | |
| bool | set | |||
| ) |
Definition at line 252 of file KoChangeTracker.cpp.
| bool KoChangeTracker::containsInlineChanges | ( | const QTextFormat & | format | ) |
Definition at line 194 of file KoChangeTracker.cpp.
| bool KoChangeTracker::displayChanges | ( | ) |
Definition at line 99 of file KoChangeTracker.cpp.
| KoChangeTrackerElement * KoChangeTracker::elementById | ( | int | id | ) |
Definition at line 180 of file KoChangeTracker.cpp.
| int KoChangeTracker::getChangeId | ( | QString & | title, | |
| KoGenChange::Type | type, | |||
| QTextCursor & | selection, | |||
| QTextFormat & | newFormat, | |||
| int | prevCharChangeId, | |||
| int | nextCharChangeId | |||
| ) |
returns the changeId of the changeElement registered for the given change. This may be an already existing changeId, if the change could be merged.
Definition at line 104 of file KoChangeTracker.cpp.
| int KoChangeTracker::getDeleteChangeId | ( | QString | title, | |
| QTextDocumentFragment | selection, | |||
| int | existingChangeId | |||
| ) |
Definition at line 159 of file KoChangeTracker.cpp.
| int KoChangeTracker::getDeletedChanges | ( | QVector< KoChangeTrackerElement * > & | deleteVector | ) |
Definition at line 330 of file KoChangeTracker.cpp.
| const QColor & KoChangeTracker::getDeletionBgColor | ( | ) |
Definition at line 350 of file KoChangeTracker.cpp.
| const QColor & KoChangeTracker::getFormatChangeBgColor | ( | ) |
Definition at line 355 of file KoChangeTracker.cpp.
| int KoChangeTracker::getFormatChangeId | ( | QString | title, | |
| QTextFormat & | format, | |||
| QTextFormat & | prevFormat, | |||
| int | existingChangeId | |||
| ) |
Definition at line 115 of file KoChangeTracker.cpp.
| int KoChangeTracker::getInsertChangeId | ( | QString | title, | |
| int | existingChangeId | |||
| ) |
Definition at line 138 of file KoChangeTracker.cpp.
| const QColor & KoChangeTracker::getInsertionBgColor | ( | ) |
Definition at line 345 of file KoChangeTracker.cpp.
| int KoChangeTracker::getLoadedChangeId | ( | QString | odfId | ) |
Definition at line 325 of file KoChangeTracker.cpp.
| bool KoChangeTracker::isParent | ( | int | testedParentId, | |
| int | testedChildId | |||
| ) |
Definition at line 223 of file KoChangeTracker.cpp.
| void KoChangeTracker::loadOdfChanges | ( | const KoXmlElement & | element | ) |
Definition at line 280 of file KoChangeTracker.cpp.
| int KoChangeTracker::mergeableId | ( | KoGenChange::Type | type, | |
| QString & | title, | |||
| int | existingId | |||
| ) |
Definition at line 202 of file KoChangeTracker.cpp.
| int KoChangeTracker::parent | ( | int | changeId | ) |
Definition at line 243 of file KoChangeTracker.cpp.
| bool KoChangeTracker::recordChanges | ( | ) |
Definition at line 89 of file KoChangeTracker.cpp.
| bool KoChangeTracker::removeById | ( | int | id, | |
| bool | freeMemory = true | |||
| ) |
Definition at line 185 of file KoChangeTracker.cpp.
| bool KoChangeTracker::saveInlineChange | ( | int | changeId, | |
| KoGenChange & | change | |||
| ) |
Load/save methods.
Definition at line 266 of file KoChangeTracker.cpp.
| void KoChangeTracker::setDeletionBgColor | ( | const QColor & | color | ) |
Definition at line 365 of file KoChangeTracker.cpp.
| void KoChangeTracker::setDisplayChanges | ( | bool | enabled | ) |
Definition at line 94 of file KoChangeTracker.cpp.
| void KoChangeTracker::setFormatChangeBgColor | ( | const QColor & | color | ) |
Definition at line 370 of file KoChangeTracker.cpp.
| void KoChangeTracker::setInsertionBgColor | ( | const QColor & | bgColor | ) |
Definition at line 360 of file KoChangeTracker.cpp.
| void KoChangeTracker::setParent | ( | int | child, | |
| int | parent | |||
| ) |
Definition at line 233 of file KoChangeTracker.cpp.
| void KoChangeTracker::setRecordChanges | ( | bool | enabled | ) |
Definition at line 84 of file KoChangeTracker.cpp.
| int KoChangeTracker::split | ( | int | changeId | ) |
Splits a changeElement. This creates a duplicate changeElement with a different changeId. This is used because we do not support overlapping change regions. The function returns the new changeId.
Definition at line 216 of file KoChangeTracker.cpp.
The documentation for this class was generated from the following files:
