summaryrefslogtreecommitdiff
path: root/include/tools/rtti.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-07-03 17:50:44 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-07-03 17:52:42 +0200
commit6b322d0f9dab9973e73cea7f82a4b7adb20f74bd (patch)
tree51aef90d8eaf8952eb2b9351a0b47131bd734e5b /include/tools/rtti.hxx
parentd53a9dc1cc64d00b38884168b2003a7da29773e3 (diff)
Generally better to have DLLPUBLIC class with some DLLPRIVATE members
...in the same vein as 80a1a2599e04142683d2286d0e32d0e13fb45de3. Change-Id: I5ffb27f0bc965aede03e6d1e849cd68ef6e16e2a
Diffstat (limited to 'include/tools/rtti.hxx')
-rw-r--r--include/tools/rtti.hxx7
1 files changed, 7 insertions, 0 deletions
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; } \