diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-08-03 17:01:02 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-08-03 16:30:00 +0000 |
commit | f6283cf6b4342a0492f1127c2d7a8597255a75c3 (patch) | |
tree | c334ca2df2e6182127f3d53259ad9da30d617960 /sd/inc/sdundo.hxx | |
parent | 7ec4a495291c7427bba5256bf2c54f1da999ea52 (diff) |
sd: track view shell id in SdUndoAction
This helps in case of e.g. setting the page size of an Impress slide
from the sidebar.
Change-Id: I6247d6efcc59f2c6311dcd33d0f989a39fd7b3f9
Reviewed-on: https://gerrit.libreoffice.org/27827
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sd/inc/sdundo.hxx')
-rw-r--r-- | sd/inc/sdundo.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sd/inc/sdundo.hxx b/sd/inc/sdundo.hxx index 84b81a3215ae..661f354895ec 100644 --- a/sd/inc/sdundo.hxx +++ b/sd/inc/sdundo.hxx @@ -28,17 +28,19 @@ class SdDrawDocument; class SD_DLLPUBLIC SdUndoAction : public SfxUndoAction { public: - SdUndoAction(SdDrawDocument* pSdDrawDocument) - : mpDoc(pSdDrawDocument) {} + SdUndoAction(SdDrawDocument* pSdDrawDocument); virtual ~SdUndoAction() {} void SetComment(const OUString& rStr) { maComment = rStr; } virtual OUString GetComment() const override { return maComment; } virtual SdUndoAction* Clone() const { return nullptr; } + /// See SfxUndoAction::GetViewShellId(). + sal_Int32 GetViewShellId() const override; protected: SdDrawDocument* mpDoc; OUString maComment; + sal_Int32 mnViewShellId; }; #endif // INCLUDED_SD_INC_SDUNDO_HXX |