summaryrefslogtreecommitdiff
path: root/include/editeng/editeng.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/editeng/editeng.hxx')
-rw-r--r--include/editeng/editeng.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx
index e7b33cfd5345..4f0be32b9dee 100644
--- a/include/editeng/editeng.hxx
+++ b/include/editeng/editeng.hxx
@@ -28,6 +28,7 @@
#include <com/sun/star/i18n/CharacterIteratorMode.hpp>
#include <svl/style.hxx>
+#include <svl/typedwhich.hxx>
#include <editeng/editdata.hxx>
#include <editeng/editstat.hxx>
#include <editeng/editengdllapi.h>
@@ -319,6 +320,11 @@ public:
bool HasParaAttrib( sal_Int32 nPara, sal_uInt16 nWhich ) const;
const SfxPoolItem& GetParaAttrib( sal_Int32 nPara, sal_uInt16 nWhich );
+ template<class T>
+ const T& GetParaAttrib( sal_Int32 nPara, TypedWhichId<T> nWhich )
+ {
+ return static_cast<const T&>(GetParaAttrib(nPara, nWhich.Which()));
+ }
vcl::Font GetStandardFont( sal_Int32 nPara );
SvxFont GetStandardSvxFont( sal_Int32 nPara );