summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-08-12 11:19:39 +0000
committerOliver Bolte <obo@openoffice.org>2004-08-12 11:19:39 +0000
commit7dde2165aad61c25de640cfdb9c92b2d1e3ced23 (patch)
tree257e384bcea1f8dfb3aa0d0f2c92f5ae342a8984 /stoc
parentd9295b062c5c19a11fd98de8682da60b6fa95e87 (diff)
INTEGRATION: CWS unotlc (1.1.144); FILE MERGED
2004/07/12 13:32:30 dbo 1.1.144.1: #i20303# compatibility type checks upon insertion of providers
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/tdmanager/tdmgr_common.hxx25
1 files changed, 23 insertions, 2 deletions
diff --git a/stoc/source/tdmanager/tdmgr_common.hxx b/stoc/source/tdmanager/tdmgr_common.hxx
index 5df27080011b..fa4dd8c32eda 100644
--- a/stoc/source/tdmanager/tdmgr_common.hxx
+++ b/stoc/source/tdmanager/tdmgr_common.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tdmgr_common.hxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: kso $ $Date: 2002-11-11 08:33:37 $
+ * last change: $Author: obo $ $Date: 2004-08-12 12:19:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -66,10 +66,31 @@
#include <rtl/unload.h>
#endif
+#include "com/sun/star/reflection/XTypeDescription.hpp"
+
+#define OUSTR(x) ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(x) )
+#define ARLEN(x) (sizeof (x) / sizeof *(x))
+
+
+namespace css = ::com::sun::star;
+
namespace stoc_tdmgr
{
extern rtl_StandardModuleCount g_moduleCount;
+struct IncompatibleTypeException
+{
+ ::rtl::OUString m_cause;
+ IncompatibleTypeException( ::rtl::OUString const & cause )
+ : m_cause( cause ) {}
+};
+
+void check(
+ css::uno::Reference<css::reflection::XTypeDescription> const & xNewTD,
+ css::uno::Reference<css::reflection::XTypeDescription> const & xExistingTD,
+ ::rtl::OUString const & context = ::rtl::OUString() );
+/* throw (css::uno::RuntimeException, IncompatibleTypeException) */
+
} // namespace stoc_tdmgr
#endif /* _STOC_TDMGR_COMMON_HXX */