summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2006-10-27 11:15:11 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2006-10-27 11:15:11 +0000
commit57d88128786b2558a46cc27441b5071bddce5593 (patch)
tree5b108bdb99d3318ac30bcb5d4387ac81412cd25b
parentd6e4ddd536244ad4c6c19cf47cef6d6e0908dea6 (diff)
INTEGRATION: CWS krmisc (1.9.44); FILE MERGED
2006/10/10 11:28:03 kr 1.9.44.1: enhanced: #i70222#
-rw-r--r--cppu/inc/uno/mapping.hxx27
1 files changed, 24 insertions, 3 deletions
diff --git a/cppu/inc/uno/mapping.hxx b/cppu/inc/uno/mapping.hxx
index 71cec8a76..ea8faa1f2 100644
--- a/cppu/inc/uno/mapping.hxx
+++ b/cppu/inc/uno/mapping.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: mapping.hxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: rt $ $Date: 2006-01-10 15:54:32 $
+ * last change: $Author: rt $ $Date: 2006-10-27 12:15:11 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -56,11 +56,13 @@
#ifndef INCLUDED_CPPU_UNOTYPE_HXX
#include "cppu/unotype.hxx"
#endif
+#ifndef _UNO_ENVIRONMENT_HXX_
+#include "uno/environment.hxx"
+#endif
typedef struct _typelib_TypeDescription typelib_TypeDescription;
typedef struct _typelib_InterfaceTypeDescription typelib_InterfaceTypeDescription;
typedef struct _uno_Interface uno_Interface;
-typedef struct _uno_Environment uno_Environment;
namespace com
{
@@ -117,6 +119,17 @@ public:
const ::rtl::OUString & rAddPurpose = ::rtl::OUString() )
SAL_THROW( () );
+ /** Holds a mapping from the specified source to the specified destination
+ environment.
+
+ @param from source environment
+ @param to destination environment
+ @param rAddPurpose additional purpose
+ */
+ inline Mapping(const Environment & rFrom, const Environment & rTo,
+ const ::rtl::OUString & rAddPurpose = ::rtl::OUString() )
+ SAL_THROW( () );
+
/** Constructor.
@param pMapping another mapping
@@ -232,6 +245,14 @@ inline Mapping::Mapping(
uno_getMapping( &_pMapping, pFrom, pTo, rAddPurpose.pData );
}
//__________________________________________________________________________________________________
+inline Mapping::Mapping(
+ const Environment & rFrom, const Environment & rTo, const ::rtl::OUString & rAddPurpose )
+ SAL_THROW( () )
+ : _pMapping(0)
+{
+ uno_getMapping( &_pMapping, rFrom.get(), rTo.get(), rAddPurpose.pData );
+}
+//__________________________________________________________________________________________________
inline Mapping::Mapping( uno_Mapping * pMapping ) SAL_THROW( () )
: _pMapping( pMapping )
{