To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=92247





------- Additional comments from [EMAIL PROTECTED] Thu Jul 31 10:45:47 +0000 
2008 -------
Good idea.
Please use a 'new style'. That is define the service in idl (should be a
separate file). For example:

service SerialNumberAdapter: XSerialNumberAdapter;

An instance is create like this:

Reference<XSerialNumberAdapter> adapter =
SerialNumberAdapter::create(component_context);

You can certainly find a description in the Developer's Guide. There are also
test services in testtools, which use a parameterized constructor. Look for the
service Constructor in 
testtools/source/bridgetest/idl/bridgetest.idl
testools/source/bridgetest/constructors.cxx
testtools/wntmsci12.pro/inc/test/testtools/bridgetest/Constructors.hpp

Having this service, I would create an instance in the classes directly where I
need them and not passing the interface along in the constructors. However, one
always needs the component context. So if you found an easy way to access the
context in the respective classes ...






---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to