diff options
author | Jan Holesovsky <kendy@suse.cz> | 2011-12-22 11:59:36 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-12-22 12:04:21 +0100 |
commit | e095be2fd4a54d7cd876a6d2f86363a99ddb5ed8 (patch) | |
tree | 5bf6e9a62760777958292ed8eb2bc69c038a4a92 /vcl | |
parent | 1c84402c87142f1f473c08dbac926a683f86f067 (diff) |
Improve usability of the Page Break control.
- use the same fade in/out values that we use for headers/footers
- clicking on the line opens the menu too
- clicking outside the menu hides the button
- leaving the line or the button hides the button immediately
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/vcl/menubtn.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/inc/vcl/menubtn.hxx b/vcl/inc/vcl/menubtn.hxx index 1e65504b97bc..b9bdd8162194 100644 --- a/vcl/inc/vcl/menubtn.hxx +++ b/vcl/inc/vcl/menubtn.hxx @@ -88,7 +88,8 @@ public: void SetPopupMenu( PopupMenu* pNewMenu ); PopupMenu* GetPopupMenu() const { return mpMenu; } - sal_uInt16 GetCurItemId() const { return mnCurItemId; } + sal_uInt16 GetCurItemId() const { return mnCurItemId; } + void SetCurItemId( sal_uInt16 nItemId ) { mnCurItemId = nItemId; } void SetActivateHdl( const Link& rLink ) { maActivateHdl = rLink; } const Link& GetActivateHdl() const { return maActivateHdl; } |