diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-06 14:29:55 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-06 14:29:55 -0500 |
commit | e64c291c5fd1d3ff625dc118ad7e0460df03eb78 (patch) | |
tree | 2dd628d1ecbecd11a5b5b87c860410d3611cb482 /svl/source/items | |
parent | 28ff7a37e66c8746a0b176b4ea25e20c1cd135c5 (diff) |
I think it's time we had a real method for this...
This helps eliminate dozens of IS_AVAILABLE macros scattered across
Calc code. I'm sure we have other similar macros like this
elsewhere.
Diffstat (limited to 'svl/source/items')
-rw-r--r-- | svl/source/items/itemset.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
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 ) |