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