19 #ifndef INCLUDED_UNO_CURRENT_CONTEXT_HXX
20 #define INCLUDED_UNO_CURRENT_CONTEXT_HXX
24 #include <com/sun/star/uno/XCurrentContext.hpp>
95 {
return m_xPreviousContext; }
100 : m_aEnvTypeName( CPPU_CURRENT_LANGUAGE_BINDING_NAME )
~ContextLayer()
Destructor: restores the previous context.
Definition: current_context.hxx:106
CPPU_DLLPUBLIC sal_Bool uno_getCurrentContext(void **ppCurrentContext, rtl_uString *pEnvDcp, void *pEnvContext) SAL_THROW_EXTERN_C()
Gets the current task's context.
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:82
interface_type * get() const
Gets interface pointer.
Definition: Reference.h:411
CPPU_DLLPUBLIC sal_Bool uno_setCurrentContext(void *pCurrentContext, rtl_uString *pEnvDcp, void *pEnvContext) SAL_THROW_EXTERN_C()
Sets the current task's context.
Reference< XCurrentContext > getPreviousContext() const
Gets the previously set context.
Definition: current_context.hxx:93
ContextLayer(Reference< XCurrentContext > const &xNewContext=Reference< XCurrentContext >())
Constructor: Saves the previous context and sets the new (given) one.
Definition: current_context.hxx:98
Reference< XCurrentContext > getCurrentContext()
Getting the current context.
Definition: current_context.hxx:43
bool setCurrentContext(Reference< XCurrentContext > const &xContext)
Setting the current context.
Definition: current_context.hxx:56
Objects of this class are used for applying a current context until they are destructed, i.e.
Definition: current_context.hxx:68
#define sal_False
Definition: types.h:47
#define SAL_THROW(exc)
Definition of function throw clause macros.
Definition: types.h:358