Hi Alexej

If you run this macro on a document which is long enough, you may notice that each time getString() is called, a progress indicator
is shown for few time, with a label which says (if I managed
to make it out) "Exporting document".

There is no such effect, if I call the "getString()" method for the
portion itself (i. e. execute oPortion.getString ()), instead of
creating an intermediate text cursor. However, intermediate text
cursors are often needed to workaround other OOo bugs, even if
creating them doesn't look necessary :(

this seems a bug to me
did you open an issue ?

reading the idl
OpenOffice.org2.0_SDK/docs/common/ref/com/sun/star/text/XSimpleText.html#createTextCursorByRange
only accepts 1 arg (thanks to Andrew for the correction)
so if it is an undocumented feature, ask for the idl update

thanks for reporting

Laurent
--
Laurent Godard <[EMAIL PROTECTED]> - Ingénierie OpenOffice.org
Indesko >> http://www.indesko.com
Nuxeo CPS >> http://www.nuxeo.com - http://www.cps-project.org
Livre "Programmation OpenOffice.org", Eyrolles 2004

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

Reply via email to