(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4
 Overview   Namespace   Class   Index   Help 

Global Functions in Global Namespace C++
in Sourcefile current_context.h


uno_getCurrentContext
extern "C"
sal_Bool uno_getCurrentContext(
void * * ppCurrentContext,
rtl_uString * pEnvTypeName,
void * pEnvContext );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO NO YES

Summary
Gets the current task's context.
ATTENTION!
Don't spread the returned interface around to other threads. Every thread has its own current context.
Parameters
ppCurrentContext
inout param current context of type com.sun.star.uno.XCurrentContext
pEnvTypeName
type name of returned interface's environment
pEnvContext
context of returned interface's environment (commonly 0)
Return
true, if context ref was transferred (even if null ref)

uno_setCurrentContext
extern "C"
sal_Bool uno_setCurrentContext(
void * pCurrentContext,
rtl_uString * pEnvTypeName,
void * pEnvContext );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO NO YES

Summary
Sets the current task's context.
Parameters
pCurrentContext
in param current context of type com.sun.star.uno.XCurrentContext
pEnvTypeName
type name of interface's environment
pEnvContext
context of interface's environment (commonly 0)
Return
true, if context ref was transferred (even if null ref)

Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us

Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.