diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-11-22 06:35:24 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-11-23 06:25:34 +0100 |
commit | 684b53cfcfa7ec9978426a13714471d2b8af6ce7 (patch) | |
tree | f3d1ddcbbf0d0136b8d2d2627ca0941b87d25bd3 /sc/source/ui/namedlg | |
parent | c0d8d83b9d03f3c6b902221062047096544c99a3 (diff) |
ManageNames: use a more modern looking button for RangeOptions
Diffstat (limited to 'sc/source/ui/namedlg')
-rw-r--r-- | sc/source/ui/namedlg/namedlg.cxx | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/sc/source/ui/namedlg/namedlg.cxx b/sc/source/ui/namedlg/namedlg.cxx index 272b9cbc4dbd..46970a400762 100644 --- a/sc/source/ui/namedlg/namedlg.cxx +++ b/sc/source/ui/namedlg/namedlg.cxx @@ -158,11 +158,6 @@ void ScNameDlg::Init() maBtnColHeader.Hide(); maBtnRowHeader.Hide(); - maBtnMore.AddWindow( &maBtnCriteria ); - maBtnMore.AddWindow( &maBtnPrintArea ); - maBtnMore.AddWindow( &maBtnColHeader ); - maBtnMore.AddWindow( &maBtnRowHeader ); - // Initialize scope list. maLbScope.InsertEntry(maGlobalNameStr); maLbScope.SelectEntryPos(0); @@ -495,12 +490,27 @@ void MoveWindow( Window& rButton, long nPixel) void ScNameDlg::MorePushed() { + Size nSize = GetSizePixel(); + //depending on the state of the button, move all elements below up/down long nPixel = 85; if (!maBtnMore.GetState()) { nPixel *= -1; + maBtnRowHeader.Hide(); + maBtnColHeader.Hide(); + maBtnPrintArea.Hide(); + maBtnCriteria.Hide(); + } + else + { + maBtnRowHeader.Show(); + maBtnColHeader.Show(); + maBtnPrintArea.Show(); + maBtnCriteria.Show(); } + nSize.Height() += nPixel; + SetSizePixel(nSize); MoveWindow(maBtnAdd, nPixel); MoveWindow(maBtnDelete, nPixel); MoveWindow(maBtnHelp, nPixel); |