diff options
author | David Tardon <dtardon@redhat.com> | 2016-04-26 09:17:11 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-05-02 06:54:30 +0200 |
commit | b876bbe2cacce8af379b10d82da6c7e7d229b361 (patch) | |
tree | 455fab6400a107149e6136f0bef995f115da17e0 /include/svx | |
parent | 859c00663f79d81b28f08a7c24a7aebddd8b7ffe (diff) |
rbhz#1326602 avoid exp. bg bitmaps from deleted slides
ODF export uses SvxUnoBitmapTable (impl. of
com.sun.star.drawing.BitmapTable) to create fill bitmap styles. That
returns all XATTR_FILLBITMAP items that are in the document's pool. So
we ensure that bitmaps that are only used on deleted (either explicitly
or by undoing their insertion) slides are not in the pool.
Change-Id: I54c594a94989158f22b156fe660c1e716b988b3e
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/svdundo.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/svx/svdundo.hxx b/include/svx/svdundo.hxx index 5f3ee5f1601d..dc09f22be701 100644 --- a/include/svx/svdundo.hxx +++ b/include/svx/svdundo.hxx @@ -22,6 +22,7 @@ #include <sal/config.h> +#include <memory> #include <vector> #include <svl/solar.hrc> @@ -33,6 +34,7 @@ #include <svx/svxdllapi.h> class SfxItemSet; +class SfxPoolItem; class SfxStyleSheet; class SdrView; class SdrPageView; @@ -584,6 +586,8 @@ class SVX_DLLPUBLIC SdrUndoDelPage : public SdrUndoPageList // When deleting a MasterPage, we remember all relations of the // Character Page with the MasterPage in this UndoGroup. SdrUndoGroup* pUndoGroup; + std::unique_ptr<SfxPoolItem> mpFillBitmapItem; + bool mbHasFillBitmap; public: SdrUndoDelPage(SdrPage& rNewPg); @@ -597,6 +601,11 @@ public: virtual void SdrRepeat(SdrView& rView) override; virtual bool CanSdrRepeat(SdrView& rView) const override; + +private: + void queryFillBitmap(const SfxItemSet &rItemSet); + void clearFillBitmap(); + void restoreFillBitmap(); }; /** |