<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
Hi,<BR>
<BR>
I am looking for a volunteer to change ONE line of code.<BR>
It is bug <A HREF="http://www.openoffice.org/issues/show_bug.cgi?id=104788">http://www.openoffice.org/issues/show_bug.cgi?id=104788</A> inherited from OOo. It is about 1.5 years old and inhibits extension developers (like me) from using the Dropdownbox in the toolbar.<BR>
<BR>
The line that has to be changed according to the api mailing list and that bug report is below:<BR>
<BR>
Index: framework/source/uielement/dropdownboxtoolbarcontroller.cxx
<PRE>
===================================================================
--- 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();
}
}
</PRE>
<BR>
Background info:<BR>
In an extension one can design an own toolbar, that might contain this dropdownbox.<BR>
When this value is changed the extension gets notified via a dispatch through the above procedure.<BR>
The "aSelectedText" should contain the text content of the newly selected dropdownbox item, but due to this bug just returns an empty string.<BR>
So the extension does not know which item was selected.<BR>
My current work around: using ToggleDropdownButton (not as nice in this circumstance)<BR>
<BR>
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!<BR>
<BR>
Do I have to file a bug?<BR>
<BR>
Thanks<BR>
Dietmar<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
--
<A HREF="http://extensions.services.openoffice.org/en/project/BorderLiner">http://extensions.services.openoffice.org/en/project/BorderLiner</A>
</PRE>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>