namespace com::sun::star::document { class XUndoManager; }
namespace chart
{
/** A guard which does nothing, unless you explicitly call commitAction. In particular, in its destructor, it doesneitherauto-commitnorauto-rollbackthemodelchanges.
*/ class UndoGuard
{ public: explicit UndoGuard(
OUString i_undoMessage, const css::uno::Reference< css::document::XUndoManager > & i_undoManager, const ModelFacet i_facet = E_MODEL
);
~UndoGuard();
/** A guard which, in its destructor, restores the model state it found in the constructor. If <member>commitAction</member>iscalledinbetween,therestorationisnotperformed.
*/ class UndoLiveUpdateGuard : public UndoGuard
{ public: explicit UndoLiveUpdateGuard( const OUString& i_undoMessage, const css::uno::Reference< css::document::XUndoManager > & i_undoManager
);
~UndoLiveUpdateGuard();
};
/** Same as UndoLiveUpdateGuard but with additional storage of the chart's data. Onlyusethisifthedatahasinternaldata.
*/ class UndoLiveUpdateGuardWithData : public UndoGuard
{ public: explicit UndoLiveUpdateGuardWithData( const OUString& i_undoMessage, const css::uno::Reference< css::document::XUndoManager > & i_undoManager
);
~UndoLiveUpdateGuardWithData();
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.