summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-12-22 11:59:36 +0100
committerJan Holesovsky <kendy@suse.cz>2011-12-22 12:05:09 +0100
commitee1eb926550028da6e5e44089d4706798f94e0bb (patch)
tree485bb5c8b45083f4af26c05b75af2286059ed0e3 /vcl
parent27aa4dccf24fca018e19e563e000051f7f9af62e (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.hxx3
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; }