Issue 47532

Summary: create IDL for com.sun.star.io.TempFile and use ImplHelper
Product: App Dev Reporter: jsc
Component: apiAssignee: mikhail.voytenko
Status: CLOSED FIXED QA Contact: issues@api <issues>
Severity: Trivial    
Priority: P3 CC: issues, mikhail.voytenko, zhangxiaofei.ooo
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: PATCH Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 72764    
Attachments:
Description Flags
This file specifis the new interface ::com::sun::star::io::XTempFile
none
This file specifies the new-style service ::com::sun::star::io::Tempfile
none
This is the patch to udkapi project, the formerly uploaded idl files should be ignored now.
none
This is the patch to unotools project, the formerly uploaded idl files should be ignored now.
none
The unit tests for the interface none

Description jsc 2005-04-15 14:53:20 UTC
The com.sun.star.io.TempFile service should become an official service (we
should use the new UNO features for this service), means we need an IDL
definition for this service. And the implementation should inherit from
WeakImplHelper which automatically provides XTypeProvider, this makes the
service usable from Basic and is of course a must for service implementations
Comment 1 mikhail.voytenko 2005-05-27 13:02:07 UTC
The documentation and reimplementation of the service will be done for OOo
Later. For OOo2.0.1 the missing interface XTypeProvider was added for issue 49947.

Comment 2 mikhail.voytenko 2006-09-14 11:11:33 UTC
Changing the target.
Comment 3 mikhail.voytenko 2007-04-23 15:20:18 UTC
The task is to integrate an old-style service as new-style service ( single
interface service ). The service itself is already implemented in "unotools"
project as an old-style service( unotools/source/ucbhelper/xtempfile.* ), but
not documented officially.

The new-style services are described in "Developer Guide", there is also an
additional specification for the new-style services
"http://udk.openoffice.org/common/man/draft/multinherit.html". From my point of
view the second one describes the new-style services better.

The task could be divided to following steps :
- please specify a new interface ::com::sun::star::io::XTempFile in the udkapi
project based on the current service implementation and the new-style services
specification ( the currently accessible properties must be specified as
attributes ).
- please specify a new-style service ::com::sun::star::io::Tempfile ( derived
from the XTempFile interface ) in the udkapi project.
- please change the current service implementation to be based on the new
interface, it definitely makes sence to use the new helper class
::cppu::PropertySetMixin from the cppuhelper project. It will make the
attributes be accessible as properties ( this is required for backward
compatibility ).
Comment 4 zhangxiaofei.ooo 2007-06-06 08:41:00 UTC
Created attachment 45685 [details]
This file specifis the new interface ::com::sun::star::io::XTempFile
Comment 5 zhangxiaofei.ooo 2007-06-06 08:42:44 UTC
Created attachment 45686 [details]
This file specifies the new-style service ::com::sun::star::io::Tempfile
Comment 6 zhangxiaofei.ooo 2007-06-08 02:50:30 UTC
Created attachment 45741 [details]
This is the patch to udkapi project, the formerly uploaded idl files should be ignored now.
Comment 7 zhangxiaofei.ooo 2007-06-08 02:55:18 UTC
Created attachment 45742 [details]
This is the patch to unotools project, the formerly uploaded idl files should be ignored now.
Comment 8 mikhail.voytenko 2007-06-08 11:14:18 UTC
Change the type and target accordingly.
Comment 9 mikhail.voytenko 2007-06-08 11:15:05 UTC
The provided patch is going to be integrated in one of the next framework cws.
Comment 10 mikhail.voytenko 2007-06-12 15:10:47 UTC
Changing the target.
Comment 11 zhangxiaofei.ooo 2007-08-17 10:45:03 UTC
Created attachment 47586 [details]
The unit tests for the interface
Comment 12 zhangxiaofei.ooo 2007-09-12 09:08:41 UTC
Added blocker to i47532
Comment 13 jsc 2007-10-08 15:14:04 UTC
jsc (api project lead) -> mav: can you please take care of this patch and take
the appropriate action asap.
Comment 14 mikhail.voytenko 2007-10-08 15:36:18 UTC
mav->jsk: Sorry, but all the appropriate actions was already taken. The patch
was reviewed and approved, it has the next release ( OOo2.4 ) as the target and
there is enough time for integration before the feature freeze. Currently I see
no reason for hurry. 
Comment 15 mikhail.voytenko 2007-10-18 12:43:19 UTC
The patch is integrated into cws fwk77.
Comment 16 mikhail.voytenko 2007-12-05 16:32:32 UTC
Verified.
Comment 17 mikhail.voytenko 2008-02-28 09:30:48 UTC
Closing.