On 11/30/2014 01:31 PM, Chris Sherlock wrote:
How do you insert a value to be retrieved later into an
XComponentContext reference?
I see there is a XNameContainer, which is created
by comphelper::NameContainer_createInstance(::cppu::UnoType<sal_Int32>::get())
or whatever value you want. From here you then do insertByName.
However, how do you then insert this into the component context?
You can query a component context for the XNameContainer interface, and
use that. See e.g. cppuhelper::ServiceManager::insertExtraData
(cppuhelper/source/servicemanager.cxx) inserting information about
singletons into the component context. (Which also shows the intended
structure of the key namespace, using hierarchical paths like
"/singletons/...")
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice