Issue 49596 - Dispatch Command ".uno:EditStyle" not interceptable in any case
Summary: Dispatch Command ".uno:EditStyle" not interceptable in any case
Status: CONFIRMED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Windows 2000
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-20 16:21 UTC by leguff
Modified: 2013-02-24 21:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
complex testcase to reproduce the behaviour (7.29 KB, application/octet-stream)
2005-05-23 16:43 UTC, stephan.wunderlich
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description leguff 2005-05-20 16:21:57 UTC
Hi,

I'd like to avoid users to edit any styles in OpenOffice.
First idea was to add "EditStyle" to the disabled commands under
Commands.xcu. But this didn't work (others work fine).
So I decided to implement a DispatchInterceptor for all open frames.
I get the URL ".uno:EditStyle" if the user tries to edit a style
via PopUpMenu within the document, but I don't get a command when
the user selects "Modify" in the PopMenu of the StyleDialog.

Btw.: I don't get any commands with DispatchInterception when
calling ".uno:[CommandName]" with the DispatchHelper-service either
(e.g. when dispatching command with OOoBasic).

Any chance to get this work with the release of OOo2.0?

bye

Mathias
Comment 1 stephan.wunderlich 2005-05-23 16:42:27 UTC
seems the stylist doesn't use the dispatcher of the frame it belongs too. The
Interceptor registered at the DispatchProvider of the frame isn't called in case
of calling the stylist's context menu.
Comment 2 stephan.wunderlich 2005-05-23 16:43:54 UTC
Created attachment 26473 [details]
complex testcase to reproduce the behaviour