Hi Alexandro, On 12/10/08 20:20, Alexandro Colorado wrote:
What is the maximum selection a macro can hold in Writer. i wonder if the limit is according to writer, the python macro or the temporary memory.Right now even a 64k seems to go beyond the limit. def trigger( self, args ): # get the actual context deskDict = self.getDesktopDict(self.ctx) viewCursor=deskDict['viewcursor'] # Go to start of document without select viewCursor.gotoStart(False) #go to endo of document selecting range from start viewCursor.gotoEnd(True) #Translate Selectionap=self.smgr.createInstanceWithContext("es.ua.apertium.transel", self.ctx)ap.trigger("execute");
well, the selection itself does not have any limits. A 'selection' is nothing more but two references to the text: start of selection and end of selection. So I'd say that it depends on what you want to do with the selection.
Hope this helps, Frank -- Frank Meies (fme) - Co-Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
