diff options
Diffstat (limited to 'svl')
-rw-r--r-- | svl/inc/svl/itemset.hxx | 2 | ||||
-rw-r--r-- | svl/source/items/itemset.cxx | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/svl/inc/svl/itemset.hxx b/svl/inc/svl/itemset.hxx index b3dea2cfa08b..e9393654d5c1 100644 --- a/svl/inc/svl/itemset.hxx +++ b/svl/inc/svl/itemset.hxx @@ -134,6 +134,8 @@ public: sal_Bool bSrchInParent = sal_True, const SfxPoolItem **ppItem = 0 ) const; + bool HasItem(sal_uInt16 nWhich, const SfxPoolItem*& rpItem) const; + virtual void DisableItem(sal_uInt16 nWhich); virtual void InvalidateItem( sal_uInt16 nWhich ); virtual sal_uInt16 ClearItem( sal_uInt16 nWhich = 0); diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx index 62ac9f25d5f6..f094d9351509 100644 --- a/svl/source/items/itemset.cxx +++ b/svl/source/items/itemset.cxx @@ -546,6 +546,11 @@ SfxItemState SfxItemSet::GetItemState( sal_uInt16 nWhich, return eRet; } +bool SfxItemSet::HasItem(sal_uInt16 nWhich, const SfxPoolItem*& rpItem) const +{ + return SFX_ITEM_SET == GetItemState(nWhich, true, &rpItem); +} + // ----------------------------------------------------------------------- const SfxPoolItem* SfxItemSet::Put( const SfxPoolItem& rItem, sal_uInt16 nWhich ) |