summaryrefslogtreecommitdiff
path: root/include/svl
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2017-06-17 13:52:15 -0400
committerHenry Castro <hcastro@collabora.com>2017-12-07 19:14:18 +0100
commit6fd6e3c1d36d67002967f56e47255e360f4b08c1 (patch)
tree3d733efd3b054513590b211e209972f5328fd292 /include/svl
parented50a0a2ce51584fa3a8fba0094220a4bf25c650 (diff)
lokit: add .uno:DocumentRepair command
Change-Id: I5b13ea6f4785bc91c29111fa63c4a1b0ea9b2660 Reviewed-on: https://gerrit.libreoffice.org/38908 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'include/svl')
-rw-r--r--include/svl/hint.hxx1
-rw-r--r--include/svl/undo.hxx10
2 files changed, 9 insertions, 2 deletions
diff --git a/include/svl/hint.hxx b/include/svl/hint.hxx
index bce91f5462ae..4cee3ba569a9 100644
--- a/include/svl/hint.hxx
+++ b/include/svl/hint.hxx
@@ -35,6 +35,7 @@ enum class SfxHintId {
ColorsChanged,
LanguageChanged,
RedlineChanged,
+ DocumentRepair,
// VCL text hints
TextParaInserted,
diff --git a/include/svl/undo.hxx b/include/svl/undo.hxx
index 7791d4a4b333..b0ee7e21f657 100644
--- a/include/svl/undo.hxx
+++ b/include/svl/undo.hxx
@@ -293,6 +293,7 @@ namespace svl
/// adds a new listener to be notified about changes in the UndoManager's state
virtual void AddUndoListener( SfxUndoListener& i_listener ) = 0;
virtual void RemoveUndoListener( SfxUndoListener& i_listener ) = 0;
+ virtual bool IsEmptyActions() const = 0;
};
}
@@ -343,6 +344,8 @@ public:
virtual bool IsUndoEnabled() const override;
virtual void AddUndoListener( SfxUndoListener& i_listener ) override;
virtual void RemoveUndoListener( SfxUndoListener& i_listener ) override;
+ virtual bool IsEmptyActions() const override;
+
/** marks the current top-level element of the Undo stack, and returns a unique ID for it
*/
@@ -379,6 +382,7 @@ protected:
undo actions on the then-current level are removed, too. This is continued until the top level is reached.
*/
void ClearAllLevels();
+ virtual void EmptyActionsChanged();
private:
size_t ImplLeaveListAction( const bool i_merge, ::svl::undo::impl::UndoManagerGuard& i_guard );
@@ -391,8 +395,10 @@ private:
bool ImplIsInListAction_Lock() const;
void ImplEnableUndo_Lock( bool const i_enable );
- bool ImplUndo( SfxUndoContext* i_contextOrNull );
- bool ImplRedo( SfxUndoContext* i_contextOrNull );
+ bool ImplUndo( SfxUndoContext* i_contextOrNull );
+ bool ImplRedo( SfxUndoContext* i_contextOrNull );
+ void ImplCheckEmptyActions();
+ inline bool ImplIsEmptyActions() const;
friend class ::svl::undo::impl::LockGuard;
};