On Mon, 15 Dec 2008 03:09:01 -0600, Frank Meies <[email protected]>
wrote:
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 Selection
ap=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
Is a Copy paste procedure to transalte some content but for some reason
like I mentioned, it doesnt hold the whole content. Is just a 12kb of text
yet when it paste is just a fraction of the selected content.
--
Alexandro Colorado
CoLeader of OpenOffice.org ES
http://es.openoffice.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]