Hi Mikhail,
Here are the idl files I created, though I don't know if there are
conventions violated in them. e.g. the naming of the ctors and their
params, please tell me if there are anything incorrect or inappropriate,
thanks. :-)
Best Regards,
Felix.
Mikhail Voitenko 写道:
> Hi Felix,
>
> Please take a look to the issue below
> http://www.openoffice.org/issues/show_bug.cgi?id=75848
>
> This is a similar problem, there is an internal service, that should be
> documented. And since a new idl will be generated for it, it makes sense
> to let it be a new-style service. The current service implementation can
> be found in sot/source/unoolestorage/xolesimplestorage.*
>
> The service allows to access and change contents of OLE storages.
>
> This time no properties should be supported, so the implementation
> itself will need only small changes.
>
> The service needs two constructors, each one of them will have two
> parameters. The first one is either XInputStream or XStream, and the
> second one is a boolean, that specifies whether a temporary copy should
> be created during substreams opening.
>
> So as a first step please generate the interface for the new-style
> service, it could be for example "com.sun.star.embed.XOLESimpleStorage".
> It should be based on all the interfaces that are currently used as base
> for the service implementation except "XInitialization" and "XServiceInfo".
>
> As the second step please generate the service description for the
> "com.sun.star.embed.OLESimpleStoragge" with the two constructors I have
> mentioned above.
> This time the idl files should be generated in the "offapi" project.
>
> After the idl files are ready we will discuss the changes for the
> impelementation, they are actually quite minor. After that we will
> discuss the documentation, this time the behavior of the service is a
> little bit more complex.
>
> The questions are very welcome as always. :)
>
> Best Regards,
> Mikhail.
>
>
> Zhang Xiaofei wrote:
>
>> Hi Mikhail,
>>
>> The patches have been attached to issue 47532, with the changes you
>> suggested. :-)
>>
>> Thank you for all the help you gave me, I have learned so much during
>> the first issue, I can hardly wait for the next one now. :-P
>>
>> Best Regards,
>> Felix.
>>
>> BTW Thanks for your suggestions on C++, Mr. Michel Loiseleur. They are
>> very inspiring to me. :-)
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
// The license should be put here.
#ifndef __com_sun_star_io_OLESimpleStorage_idl__
#define __com_sun_star_io_OLESimpleStorage_idl__
#ifndef __com_sun_star_io_XOLESimpleStorage_idl__
#include <com/sun/star/io/XOLESimpleStorage.idl>
#endif
//============================================================================
module com { module sun { module star { module embed {
//============================================================================
service OLESimpleStorage: XOLESimpleStorage {
create1 ([in] XInputStream stream, [in] boolean createTempCopy);
create2 ([in] XStream stream, [in] boolean createTempCopy);
};
//============================================================================
}; }; }; };
#endif
// The license should be put here.
#ifndef __com_sun_star_io_XOLESimpleStorage_idl__
#define __com_sun_star_io_XOLESimpleStorage_idl__
#ifndef __com_sun_star_uno_XInterface_idl__
#include <com/sun/star/uno/Xinterface.idl>
#endif
#ifndef __com_sun_star_container_XNameContainer_idl__
#include <com/sun/star/container/XNameContainer.idl>
#endif
#ifndef __com_sun_star_lang_XComponent_idl__
#include <com/sun/star/lang/XComponent.idl>
#endif
#ifndef __com_sun_star_embed_XTransactedObject_idl__
#include <com/sun/star/embed/XTransactedObject.idl>
#endif
#ifndef __com_sun_star_embed_XClassifiedObject_idl__
#include <com/sun/star/embed/XClassifiedObject.idl>
#endif
//============================================================================
module com { module sun { module star { module embed {
//=============================================================================
interface XOLESimpleStorage
{
interface ::com::sun::star::contariner::XNameContainer;
interface ::com::sun::star::lang::XComponent;
interface XTransactedObject;
interface XClassifiedObject;
};
//============================================================================
}; }; }; };
#endif
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]