summaryrefslogtreecommitdiff
path: root/sw/inc/doc.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-03 17:02:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-05 07:53:31 +0100
commit51ee91a3ca869be23153a235cbf33d4d20267fce (patch)
treed55ad43d12f82b2960d893a016f67e4f99ac5dd3 /sw/inc/doc.hxx
parent90db24c33060bcb6db6ef900981c4379cd3074af (diff)
TypedWhichId in sw(1)
Change-Id: If9330b2ea7e40f4775b1edd9611d35c6ddf31a00 Reviewed-on: https://gerrit.libreoffice.org/49185 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/doc.hxx')
-rw-r--r--sw/inc/doc.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index 903cd5b910de..9389604c94aa 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -747,6 +747,10 @@ public:
// Query default attribute in this document.
const SfxPoolItem& GetDefault( sal_uInt16 nFormatHint ) const;
+ template<class T> const T& GetDefault( TypedWhichId<T> nWhich ) const
+ {
+ return static_cast<const T&>(GetDefault(sal_uInt16(nWhich)));
+ }
// Do not expand text attributes.
bool DontExpandFormat( const SwPosition& rPos, bool bFlag = true );