Locating Backing Window Recent Documents Object

Joel Madero jmadero.dev at gmail.com
Fri Jul 6 08:54:22 PDT 2012


haha digging a ditch for myself ;) I think I now am following the logic of
MouseButtonDown but I'm still not seeing where it's being called (and where
rMEvt) is coming from. Basically where are the pixel ranges defined as
different actions (open vs. recent documents).

Here is a link to the bug (or enhancement depending on your opinion of it).

https://bugs.freedesktop.org/show_bug.cgi?id=47164


Thanks again for everyone's patience.


Joel

On Fri, Jul 6, 2012 at 8:42 AM, Michael Meeks <michael.meeks at suse.com>wrote:

> Hi Joel,
>
> On Fri, 2012-07-06 at 08:17 -0700, Joel Madero wrote:
> > Someone else suggested there also but I'm not seeing anything that
> > would differentiate Open vs. Recent Documents on the backingwindow.
>
>         Having a link to the relevant bug / issue might be interesting :-)
> Ivan's link is good:
>
> framework/source/services/backingwindow.hxx:
>         MenuButton                      maOpenButton;
>
> framework/source/services/backingwindow.cxx:
>     maOpenButton.SetMenuMode( MENUBUTTON_MENUMODE_TIMED );
>     maOpenButton.SetSelectHdl( LINK( this, BackingWindow, SelectHdl ) );
>     maOpenButton.SetActivateHdl( LINK( this, BackingWindow, ActivateHdl )
> );
>
>         The code is in:
>
> vcl/source/control/menubtn.cxx, method MenuButton::MouseButtonDown
>
>         I assume 'Select' vs. 'Activate' are the different modes:
> pop-down, or
> whatever here:
>
> IMPL_LINK( BackingWindow, ActivateHdl, Button*, pButton )
> {
>     if( pButton == &maOpenButton )
>         prepareRecentFileMenu();
>     return 0;
> }
>
>         Looks like the recent files list is not built until that is
> clicked.
>
>         Does that help ? :-)
>
>         And/or what's the root issue ?
>
>         Thanks for digging !
>
>                 Michael.
>
> --
> michael.meeks at suse.com  <><, Pseudo Engineer, itinerant idiot
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120706/0fc633ac/attachment.html>


More information about the LibreOffice mailing list