Hi Kohei

some thoughts about the new ExternalDocLinks API in CWS mooxlsc...

First, there is no documentation in the IDL files, please consider to add some ;-)

I think, a cleaner way to implement the service ExternalDocLinks is to make it a container, i.e. to support the interfaces XNameAccess, XIndexAccess, and XEnumerationAccess, similar to e.g. the DDELinks service. The interface XExternalDocLinks would add the new method addDocLink() that looks for an existing link or creates a new one, and returns the index. The XNameAccess uses the URLs as names.

The elements of the container could implement the new service ExternalDocLink which is a container too. Elements are the ExternalSheetCache objects, names of the elements are the sheet names in the external document. A new interface XExternalDocLink adds the method addSheetCache() that looks for an existing cache similar to above.

To do: do we need API to remove something from the cache, or an entire cache, or even an entire external linked document?

Yes I know, that would be a little bit more work, but would make the new API more consistent to the existing Calc API. :-)


Daniel

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

Reply via email to