23#ifndef INCLUDED_UNO_CURRENT_CONTEXT_HXX
24#define INCLUDED_UNO_CURRENT_CONTEXT_HXX
33#include "com/sun/star/uno/XCurrentContext.hpp"
68 return ::uno_setCurrentContext( xContext.
get(), aEnvTypeName.pData, NULL );
100 {
return m_xPreviousContext; }
104 : m_aEnvTypeName( CPPU_CURRENT_LANGUAGE_BINDING_NAME )
CPPU_DLLPUBLIC sal_Bool uno_getCurrentContext(void **ppCurrentContext, rtl_uString *pEnvDcp, void *pEnvContext) SAL_THROW_EXTERN_C()
Gets the current task's context.
CPPU_DLLPUBLIC sal_Bool uno_setCurrentContext(void *pCurrentContext, rtl_uString *pEnvDcp, void *pEnvContext) SAL_THROW_EXTERN_C()
Sets the current task's context.
Definition typedescription.hxx:43
bool setCurrentContext(Reference< XCurrentContext > const &xContext)
Setting the current context.
Definition current_context.hxx:64
Reference< XCurrentContext > getCurrentContext()
Getting the current context.
Definition current_context.hxx:52
This String class provides base functionality for C++ like Unicode character array handling.
Definition ustring.hxx:172
ContextLayer(Reference< XCurrentContext > const &xNewContext=Reference< XCurrentContext >())
Constructor: Saves the previous context and sets the new (given) one.
Definition current_context.hxx:103
Reference< XCurrentContext > getPreviousContext() const
Gets the previously set context.
Definition current_context.hxx:99
~ContextLayer()
Destructor: restores the previous context.
Definition current_context.hxx:110
interface_type * get() const
Gets interface pointer.
Definition Reference.h:405