diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-17 17:08:11 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-17 17:08:33 +0100 |
commit | 5e3cca7b0ae81e2467fb306c1c707f6f5ba7d284 (patch) | |
tree | 57acf2288ab7163a17cfba6e239981b4b06177cd /include/svx/sdgmoitm.hxx | |
parent | f6e4de5a810aaa6bad75832ff21c2d52611e3543 (diff) |
More workaround for the MSVC "dllpublic base template" mis-feature
(happens at least with a --disable-pch build)
Change-Id: Id62b254e7835ab923955f0f6529bafa6825aa103
Diffstat (limited to 'include/svx/sdgmoitm.hxx')
-rw-r--r-- | include/svx/sdgmoitm.hxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/include/svx/sdgmoitm.hxx b/include/svx/sdgmoitm.hxx index 2ff3c6e0fcc9..2c7f13a2f9cd 100644 --- a/include/svx/sdgmoitm.hxx +++ b/include/svx/sdgmoitm.hxx @@ -25,12 +25,20 @@ #include <svx/svddef.hxx> #include <svx/svxdllapi.h> +// MSVC hack: +class SdrGrafModeItem_Base: public SfxEnumItem<GraphicDrawMode> { +protected: + SdrGrafModeItem_Base(GraphicDrawMode eMode): + SfxEnumItem(SDRATTR_GRAFMODE, eMode) {} -class SVX_DLLPUBLIC SdrGrafModeItem : public SfxEnumItem<GraphicDrawMode> + SdrGrafModeItem_Base(SvStream& rIn): SfxEnumItem(SDRATTR_GRAFMODE, rIn) {} +}; + +class SVX_DLLPUBLIC SdrGrafModeItem : public SdrGrafModeItem_Base { public: - SdrGrafModeItem( GraphicDrawMode eMode = GraphicDrawMode::Standard ) : SfxEnumItem( SDRATTR_GRAFMODE, eMode ) {} - SdrGrafModeItem( SvStream& rIn ) : SfxEnumItem( SDRATTR_GRAFMODE, rIn ) {} + SdrGrafModeItem( GraphicDrawMode eMode = GraphicDrawMode::Standard ) : SdrGrafModeItem_Base( eMode ) {} + SdrGrafModeItem( SvStream& rIn ) : SdrGrafModeItem_Base( rIn ) {} virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override; virtual SfxPoolItem* Create( SvStream& rIn, sal_uInt16 nVer ) const override; |