Ian Laurenson wrote: > Maybe I need to check some assumptions I have been making: > > * The only way of finding the relative location on a page is by a > ViewCursor. (By relative I mean the number of characters from the left > margin and number of lines down the page)
Sorry, I don't know if this is true. Maybe a Writer specialist should tell us. > * The only way of having a second ViewCursor is by having a second > window - such as that produced by Window > New Window. Yes. Each View can have only one ViewCursor. > * The only way of creating a new window for thisComponent by a macro is > by doing a UNO dispatch call. Yes. The OOo API lacks a factory for Views. We have plans to add that, but not in the OOo2.0 release. But there could be another option: you could use the existing ViewCursor. Set it invisible, get the current selection (from the XSelectionSupplier of the Controller object), move it somewhere else, so what you want, restore old selection (again through XSelectionSupplier) and make the ViewCursor visible again. I did that alreay in an AddOn by myself. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
