Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | macros does not paste text into Notes as in 2.4 | ||||||
---|---|---|---|---|---|---|---|
Product: | Writer | Reporter: | l_allemano <luigi.allemano> | ||||
Component: | programming | Assignee: | AOO issues mailing list <issues> | ||||
Status: | CONFIRMED --- | QA Contact: | |||||
Severity: | Trivial | ||||||
Priority: | P3 | CC: | issues, michael.ruess | ||||
Version: | OOo 3.0 | ||||||
Target Milestone: | --- | ||||||
Hardware: | All | ||||||
OS: | Windows XP | ||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||
Developer Difficulty: | --- | ||||||
Attachments: |
|
Description
l_allemano
2009-02-05 17:34:42 UTC
Created attachment 59967 [details]
in oo writer 3.0 macros does not works as in 2.4
MRU->OS: see attached document. Selected text is not pasted into a Note anymore as it was done in OOo 2.4 by the Macro. Closed. Ignore my above "Closed" comment... Wanted to reassign to OS... I've came across the same bug (3.1 dev OOO3010m40 build 9388), trying to paste text into a new Note using a macro. Behaviour was extremely erratic: worked about one in twenty times, if that, with no apparent logic. This suggests a problem with timing or threads, and - so far - adding a short pause after the Note's creation (.uno:InsertAnnotation) seems to work for me. A simple example: [code] Sub Main dim document as object dim dispatcher as object document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") dispatcher.executeDispatch(document, ".uno:Copy", "", 0, array()) thisComponent.CurrentController.getViewCursor.collapseToStart() dispatcher.executeDispatch(document, ".uno:InsertAnnotation", "", 0, array()) wait 500 dispatcher.executeDispatch(document, ".uno:Paste", "", 0, array()) End Sub [/code] Hope that helps. Target changed to 3.x Reset assigne to the default "issues@openoffice.apache.org". |