MOULIN Camille wrote:

>> Depending on the knowledge of the developer a rough estimation for the
>> effort would be 3-4 weeks. 
> Yiik :-(  I had dreamed it would be 1 or 2 days 

Well, I share your dreams ;-), but that's reality.

The problem is that a lot of logic is implemented in the "toolbar"
itself. It knows all instantiated controls and so can easily access all
of their functionality directly.

In a "regular" toolbar we would just have a container for controls that
does not participate in the implementation of their functionality. As
the functionality of the hyperlink bar is distributed over several
controls, we had to create (and implement) new APIs that let the
controls and the document interact. We have a concept for that already
(it's called "complex custom toolbox controls"), but it's so
fundamentally different to the existing code that using it here would
create an effort that is comparable with a complete rewrite of the toolbar.

Of course it would be possible to double the code for the configuration
menu and just add it to the hyperlink toolbar. This would take only a
few days. But this feature is not important enough (IMHO) to spoil the
code with this hack.

There could be another option that came up when I discussed the problem
with Carsten Driesner: what if we could "bundle" the three controls into
a common parent window (transparent and with no borders so that the "sub
controls" completely fill it) and use that one as the toolbar control?
All code currently in the hyperlink bar itself could be moved to that
new control. This control then could be added to any "regular" toolbar
as usual. That would be doable in much shorter time. Worth thinking
about it...

Regards,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "nospamfor...@gmx.de".
I use it for the OOo lists and only rarely read other mails sent to it.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org

Reply via email to