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


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@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@suse.com  <><, Pseudo Engineer, itinerant idiot



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.