SdrGrafCropItem needs its own SfxItemType
Change-Id: I45bf4abf015dd493451f77e66dd70006867a2a6f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174268 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
This commit is contained in:
@@ -178,6 +178,7 @@ enum class SfxItemType : sal_uInt16 {
|
|||||||
SdrFractionItemType,
|
SdrFractionItemType,
|
||||||
SdrGrafBlueItemType,
|
SdrGrafBlueItemType,
|
||||||
SdrGrafContrastItemType,
|
SdrGrafContrastItemType,
|
||||||
|
SdrGrafCropType,
|
||||||
SdrGrafGamma100ItemType,
|
SdrGrafGamma100ItemType,
|
||||||
SdrGrafGreenItemType,
|
SdrGrafGreenItemType,
|
||||||
SdrGrafLuminanceItemType,
|
SdrGrafLuminanceItemType,
|
||||||
|
@@ -35,7 +35,7 @@ public:
|
|||||||
|
|
||||||
SdrGrafCropItem( sal_Int32 nLeftCrop = 0, sal_Int32 nTopCrop = 0,
|
SdrGrafCropItem( sal_Int32 nLeftCrop = 0, sal_Int32 nTopCrop = 0,
|
||||||
sal_Int32 nRightCrop = 0, sal_Int32 nBottomCrop = 0 ) :
|
sal_Int32 nRightCrop = 0, sal_Int32 nBottomCrop = 0 ) :
|
||||||
SvxGrfCrop( nLeftCrop, nRightCrop, nTopCrop, nBottomCrop, SDRATTR_GRAFCROP ) {}
|
SvxGrfCrop( nLeftCrop, nRightCrop, nTopCrop, nBottomCrop, SDRATTR_GRAFCROP, SfxItemType::SdrGrafCropType ) {}
|
||||||
|
|
||||||
virtual SdrGrafCropItem* Clone( SfxItemPool* pPool = nullptr ) const override;
|
virtual SdrGrafCropItem* Clone( SfxItemPool* pPool = nullptr ) const override;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user