Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


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




Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.