Objects of this class are used for applying a current context until they are destructed, i.e.  
 More...
#include <current_context.hxx>
Objects of this class are used for applying a current context until they are destructed, i.e. 
the ctor of this class saves the previous and sets the given context while the dtor restores the previous one upon destruction. 
◆ ContextLayer()
  
  | 
        
          | com::sun::star::uno::ContextLayer::ContextLayer | ( | Reference< XCurrentContext > const & | xNewContext = Reference< XCurrentContext >() | ) |  |  | inline | 
 
Constructor: Saves the previous context and sets the new (given) one. 
- Parameters
- 
  
    | xNewContext | new context to be set |  
 
 
 
◆ ~ContextLayer()
  
  | 
        
          | com::sun::star::uno::ContextLayer::~ContextLayer | ( |  | ) |  |  | inline | 
 
Destructor: restores the previous context. 
 
 
◆ getPreviousContext()
  
  | 
        
          | Reference< XCurrentContext > com::sun::star::uno::ContextLayer::getPreviousContext | ( |  | ) | const |  | inline | 
 
Gets the previously set context. 
- Returns
- the previously set context 
 
 
The documentation for this class was generated from the following file: