From 6b322d0f9dab9973e73cea7f82a4b7adb20f74bd Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 3 Jul 2014 17:50:44 +0200 Subject: Generally better to have DLLPUBLIC class with some DLLPRIVATE members ...in the same vein as 80a1a2599e04142683d2286d0e32d0e13fb45de3. Change-Id: I5ffb27f0bc965aede03e6d1e849cd68ef6e16e2a --- include/tools/rtti.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/tools/rtti.hxx') diff --git a/include/tools/rtti.hxx b/include/tools/rtti.hxx index a1e79a480887..0a5696b1dd46 100644 --- a/include/tools/rtti.hxx +++ b/include/tools/rtti.hxx @@ -46,6 +46,13 @@ typedef void* (*TypeId)(); visibility virtual TypeId Type() const SAL_OVERRIDE; \ visibility virtual bool IsA( TypeId aSameOrSuperType ) const SAL_OVERRIDE +#define TYPEINFO_VISIBILITY_OVERRIDE(visibility) \ + visibility static void* CreateType(); \ + visibility static TypeId StaticType(); \ + visibility static bool IsOf( TypeId aSameOrSuperType ); \ + visibility virtual TypeId Type() const SAL_OVERRIDE; \ + visibility virtual bool IsA( TypeId aSameOrSuperType ) const SAL_OVERRIDE + #define TYPEINIT_FACTORY(sType, Factory ) \ void* sType::CreateType() { return Factory; } \ TypeId sType::StaticType() { return &CreateType; } \ -- cgit