AlterOffice
AlterOffice 3.4 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
component_context.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 
3 #ifndef INCLUDED_CPPUHELPER_COMPONENT_CONTEXT_HXX
4 #define INCLUDED_CPPUHELPER_COMPONENT_CONTEXT_HXX
5 
9 #include "rtl/ustring.hxx"
10 #include "sal/types.h"
11 
12 namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
13 
14 namespace cppu
15 {
16 
20 {
33  css::uno::Any value;
34 
38  : bLateInitService( false )
39  {}
51  ::rtl::OUString const & name_,
52  css::uno::Any const & value_,
53  bool bLateInitService_ = false )
54  : bLateInitService( bLateInitService_ ),
55  name( name_ ),
56  value( value_ )
57  {}
58 };
59 
67 CPPUHELPER_DLLPUBLIC css::uno::Reference< css::uno::XComponentContext >
68 SAL_CALL createComponentContext(
69  ContextEntry_Init const * pEntries, sal_Int32 nEntries,
70  css::uno::Reference< css::uno::XComponentContext > const & xDelegate =
71  css::uno::Reference< css::uno::XComponentContext >() );
72 
73 }
74 
75 #endif
76 
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool bLateInitService
late init denotes an object that will be raised when first get() is calling for it ...
Definition: component_context.hxx:27
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:182
CPPUHELPER_DLLPUBLIC css::uno::Reference< css::uno::XComponentContext > createComponentContext(ContextEntry_Init const *pEntries, sal_Int32 nEntries, css::uno::Reference< css::uno::XComponentContext > const &xDelegate=css::uno::Reference< css::uno::XComponentContext >())
Creates a component context with the given entries.
::rtl::OUString name
name of context value
Definition: component_context.hxx:30
ContextEntry_Init(::rtl::OUString const &name_, css::uno::Any const &value_, bool bLateInitService_=false)
Ctor.
Definition: component_context.hxx:50
ContextEntry_Init()
Default ctor.
Definition: component_context.hxx:37
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:567
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:12
css::uno::Any value
context value
Definition: component_context.hxx:33
Context entries init struct calling createComponentContext().
Definition: component_context.hxx:19