-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mathias Bauer wrote: > Darragh Sherwin wrote: > >>Hi, >> >>I wrote this little python script below to split up a document into >>fragments to reply to a mail on the UDK list to show how to copy part of >>a document but I think it would be more useful on the this list (API) >> >>It fragments the document into 30 lines pieces, and copies the fragment >>into a blank document. This will copy almost every thing in the 30 lines >>including text, tables and graphics. > > > Isn't that something for our code snippets database? > > Best regards, > Mathias >
Of course here we go: http://codesnippets.services.openoffice.org/Office/Office.ConnectViaPipe.snip http://codesnippets.services.openoffice.org/Office/Office.CreateDocument.snip http://codesnippets.services.openoffice.org/Office/Office.FetchingServicesFromDesktop.snip http://codesnippets.services.openoffice.org/Office/Office.UsingDispatchAPI.snip http://codesnippets.services.openoffice.org/Writer/Writer.CopyComponentsToNewDocument.snip As you can see I have splitted up the whole code into logical parts and linked them using a new feature of the codesnippet page. Maybe someone knowning Python could take a look and correct errors and give some goog keywords to add to snippets. Maybe we should extend our Snippet-XML to link snippets? I thought of something like: - ------------------8<------------------ ... <linked-snippets> <snippet application="Office" snippet="Office.CreateDocument.snip" /> ... </linked-snippets> ... - ------------------8<------------------ What do other think about this idea? I think its worth an idea. cu Tom -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org iD8DBQFDUQFckVPeOFLgZFIRAhR2AKCrAxrpu8tfWUKGk+EriBpt9qzyTQCfRdeO j0S9TdCDzCmTAoXux6x76p4= =Nc/n -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]