#include <SheetObserver.h>
Public Member Functions | |
App::Document * | getDocument () const |
void | ref () |
Increase reference count. More... | |
SheetObserver (App::Document *document, PropertySheet *_sheet) | |
The SheetObserver constructor. More... | |
virtual void | slotChangedObject (const App::DocumentObject &Obj, const App::Property &Prop) |
Invoke the sheets recomputeDependants when a change to a Property occurs. More... | |
virtual void | slotCreatedObject (const App::DocumentObject &Obj) |
Invalidate cells that depend on this document object. More... | |
virtual void | slotDeletedObject (const App::DocumentObject &Obj) |
Invalidate cells that depend on this document object. More... | |
bool | unref () |
Decrease reference count. More... | |
~SheetObserver () | |
Public Member Functions inherited from App::DocumentObserver | |
void | attachDocument (Document *) |
Attaches to another document, the old document is not longer observed then. More... | |
void | detachDocument () |
Detaches from the current document, the document is not longer observed then. More... | |
DocumentObserver () | |
Constructor. More... | |
DocumentObserver (Document *) | |
virtual | ~DocumentObserver () |
Additional Inherited Members | |
Protected Member Functions inherited from App::DocumentObserver | |
Document * | getDocument () const |
SheetObserver::SheetObserver | ( | App::Document * | document, |
PropertySheet * | _sheet | ||
) |
The SheetObserver constructor.
document | The Document we are observing |
_sheet | The sheet owning this observer. |
Spreadsheet::SheetObserver::~SheetObserver | ( | ) |
App::Document * Spreadsheet::SheetObserver::getDocument | ( | void | ) | const |
References App::DocumentObserver::getDocument().
void SheetObserver::ref | ( | ) |
Increase reference count.
|
virtual |
Invoke the sheets recomputeDependants when a change to a Property occurs.
Reimplemented from App::DocumentObserver.
References App::Property::getName(), App::ExtensionContainer::getPropertyName(), App::DocumentObject::Label, and Spreadsheet::PropertySheet::renamedDocumentObject().
|
virtual |
Invalidate cells that depend on this document object.
Reimplemented from App::DocumentObserver.
References Spreadsheet::PropertySheet::invalidateDependants().
|
virtual |
Invalidate cells that depend on this document object.
Reimplemented from App::DocumentObserver.
References Spreadsheet::PropertySheet::deletedDocumentObject(), and Spreadsheet::PropertySheet::invalidateDependants().
bool SheetObserver::unref | ( | ) |
Decrease reference count.