[Libreoffice-commits] core.git: sc/source
Katarina Behrens
Katarina.Behrens at cib.de
Wed May 20 02:14:27 PDT 2015
sc/source/ui/namedlg/namemgrtable.cxx | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
New commits:
commit 5591fdada7cf4f81f173f7954e2b4831c6dc89c9
Author: Katarina Behrens <Katarina.Behrens at cib.de>
Date: Tue May 19 15:48:19 2015 +0200
tdf#91126: Enable click-on-column-header sorting
in the same way as in f92ab4da51647a4353038
Change-Id: I209475499307c5564774e1cd5808e3792a10be25
diff --git a/sc/source/ui/namedlg/namemgrtable.cxx b/sc/source/ui/namedlg/namemgrtable.cxx
index 9fea7df..5bbb895 100644
--- a/sc/source/ui/namedlg/namemgrtable.cxx
+++ b/sc/source/ui/namedlg/namemgrtable.cxx
@@ -20,10 +20,6 @@
#include <sfx2/app.hxx>
-#define ITEMID_NAME 1
-#define ITEMID_RANGE 2
-#define ITEMID_SCOPE 3
-
#define MINSIZE 80
static OUString createEntryString(const ScRangeNameLine& rLine)
@@ -49,9 +45,9 @@ ScRangeManagerTable::ScRangeManagerTable( SvSimpleTableContainer& rParent, boost
OUString aScopeStr(ScGlobal::GetRscString(STR_HEADER_SCOPE));
HeaderBar& rHeaderBar = GetTheHeaderBar();
- rHeaderBar.InsertItem( ITEMID_NAME, aNameStr, 0, HeaderBarItemBits::LEFT| HeaderBarItemBits::VCENTER );
- rHeaderBar.InsertItem( ITEMID_RANGE, aRangeStr, 0, HeaderBarItemBits::LEFT| HeaderBarItemBits::VCENTER );
- rHeaderBar.InsertItem( ITEMID_SCOPE, aScopeStr, 0, HeaderBarItemBits::LEFT| HeaderBarItemBits::VCENTER );
+ InsertHeaderEntry( aNameStr );
+ InsertHeaderEntry( aRangeStr );
+ InsertHeaderEntry( aScopeStr );
rHeaderBar.SetEndDragHdl( LINK( this, ScRangeManagerTable, HeaderEndDragHdl ) );
setColWidths();
More information about the Libreoffice-commits
mailing list