diff options
Diffstat (limited to 'include/svx/sdr/properties/properties.hxx')
-rw-r--r-- | include/svx/sdr/properties/properties.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/svx/sdr/properties/properties.hxx b/include/svx/sdr/properties/properties.hxx index 7755f4fbc3fb..ef6cccb3103d 100644 --- a/include/svx/sdr/properties/properties.hxx +++ b/include/svx/sdr/properties/properties.hxx @@ -26,6 +26,7 @@ #include <sal/types.h> #include <svx/svxdllapi.h> +#include <svl/typedwhich.hxx> class SdrObject; class SfxItemSet; @@ -164,6 +165,10 @@ namespace sdr // Just a convenient shortcut for GetObjectItemSet().Get(nWhich). const SfxPoolItem& GetItem(const sal_uInt16 nWhich) const; + template<class T> const T& GetItem(TypedWhichId<T> nWhich) const + { + return static_cast<const T&>(GetItem(sal_uInt16(nWhich))); + } // support for convenient broadcasting. Used from SetMergedItemAndBroadcast(), // ClearItemAndBroadcast() and SetItemSetAndBroadcast(), see above. |