Issue 111214 - Implement new ControlCommand for Editfield control in Complex Toolbar Framework
Summary: Implement new ControlCommand for Editfield control in Complex Toolbar Framework
Status: ACCEPTED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL: http://wiki.services.openoffice.org/w...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-28 03:09 UTC by muddybeemer
Modified: 2017-05-20 11:28 UTC (History)
3 users (show)

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


Attachments
Patch to add SetFocus command to EditField on complex toolbar (474 bytes, patch)
2012-10-03 15:41 UTC, hanya
hanya.runo: review? (hanya.runo)
Details | Diff
Extension provides complex toolbar for testing (2.94 KB, application/octet-stream)
2012-10-03 15:53 UTC, hanya
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description muddybeemer 2010-04-28 03:09:51 UTC
The following enhancement is requested for the Editfield control in the Complex
Toolbar framework.  

Implement a "SetFocus" ControlCommand for the EditField, which will set the
focus of the UI to this element.
Comment 1 carsten.driesner 2010-04-29 09:16:09 UTC
cd->robertzhou: Please take over. You are familiar with the code and this is a
nice enhancement for developers.
Comment 2 carsten.driesner 2010-08-19 09:29:20 UTC
cd: Set target and confirm issue.
Comment 3 hanya 2012-10-03 15:41:09 UTC
Created attachment 79720 [details]
Patch to add SetFocus command to EditField on complex toolbar
Comment 4 hanya 2012-10-03 15:53:55 UTC
Created attachment 79721 [details]
Extension provides complex toolbar for testing

This extension contains complex toolbar for Writer document having an edit field 
and two buttons, written in Python.

- Install the package and then restart the office.
- Open new Writer document -> "Add-On 1" toolbar is shown (maybe its name is different).
- Push "SetText" button to check the extension working well -> "abc" is shown in the edit field on the toolbar means ok.
- Push "SetFocus" button on the toolbar -> focus gained to the edit field.

The attached extension does not work with multiple documents, only for testing purpose.

Arguments field of css.frame.ControlCommand set to State field of css.frame.FeatureStateEvent 
passed to statusChanged method can not be void.
If void is specified, differently processed in ComplexToolbarController::statusChanged method, empty 
[]com.sun.star.beans.NamedValue can be used to set focus to target edit field.
Comment 5 hanya 2012-10-04 13:08:47 UTC
Not only for edit field but for other controls should be able to get focus by the same way.
Comment 6 Marcus 2017-05-20 11:28:08 UTC
Reset assigne to the default "issues@openoffice.apache.org".