23 #ifndef INCLUDED_UNO_CURRENT_CONTEXT_HXX 24 #define INCLUDED_UNO_CURRENT_CONTEXT_HXX 33 #include "com/sun/star/uno/XCurrentContext.hpp" 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.
Objects of this class are used for applying a current context until they are destructed, i.e.
Definition: current_context.hxx:75
CPPU_DLLPUBLIC sal_Bool uno_setCurrentContext(void *pCurrentContext, rtl_uString *pEnvDcp, void *pEnvContext) SAL_THROW_EXTERN_C()
Sets the current task's context.
interface_type * get() const
Gets interface pointer.
Definition: Reference.h:403
~ContextLayer()
Destructor: restores the previous context.
Definition: current_context.hxx:110
bool setCurrentContext(Reference< XCurrentContext > const &xContext)
Setting the current context.
Definition: current_context.hxx:64
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:170
Reference< XCurrentContext > getCurrentContext()
Getting the current context.
Definition: current_context.hxx:52
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