[Libreoffice] framework::DropdownToolbarController: dispatch does not get selected item text
Dietmar
dhiller1 at gmx.de
Wed Feb 23 09:57:50 PST 2011
Hi,
I am looking for a volunteer to change ONE line of code.
It is bug http://www.openoffice.org/issues/show_bug.cgi?id=104788
inherited from OOo. It is about 1.5 years old and inhibits extension
developers (like me) from using the Dropdownbox in the toolbar.
The line that has to be changed according to the api mailing list and
that bug report is below:
Index: framework/source/uielement/dropdownboxtoolbarcontroller.cxx
===================================================================
--- framework/source/uielement/dropdownboxtoolbarcontroller.cxx (revision 274324)
+++ framework/source/uielement/dropdownboxtoolbarcontroller.cxx (working copy)
@@ -222,7 +222,7 @@
xDispatch = getDispatchFromCommand( m_aCommandURL );
aCommandURL = m_aCommandURL;
aTargetURL = getInitializedURL();
- aSelectedText = m_pListBoxControl->GetText();
+ aSelectedText = m_pListBoxControl->GetSelectEntry();
}
}
Background info:
In an extension one can design an own toolbar, that might contain this
dropdownbox.
When this value is changed the extension gets notified via a dispatch
through the above procedure.
The "aSelectedText" should contain the text content of the newly
selected dropdownbox item, but due to this bug just returns an empty
string.
So the extension does not know which item was selected.
My current work around: using ToggleDropdownButton (not as nice in this
circumstance)
Since it is a one-liner, I am hoping that someone could quickly make
this change. If you are living in Munich, a free beer is guaranteed!
Do I have to file a bug?
Thanks
Dietmar
--
http://extensions.services.openoffice.org/en/project/BorderLiner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110223/1a59546d/attachment.htm>
More information about the LibreOffice
mailing list