summaryrefslogtreecommitdiff
path: root/sw/source/uibase/config/barcfg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/config/barcfg.cxx')
-rw-r--r--sw/source/uibase/config/barcfg.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/uibase/config/barcfg.cxx b/sw/source/uibase/config/barcfg.cxx
index cbf44772df27..7fc2569348a9 100644
--- a/sw/source/uibase/config/barcfg.cxx
+++ b/sw/source/uibase/config/barcfg.cxx
@@ -62,26 +62,26 @@ SwToolbarConfigItem::~SwToolbarConfigItem()
{
}
-static sal_Int32 lcl_getArrayIndex(int nSelType)
+static sal_Int32 lcl_getArrayIndex(SelectionType nSelType)
{
sal_Int32 nRet = -1;
- if(nSelType & nsSelectionType::SEL_NUM)
+ if(nSelType & SelectionType::NumberList)
{
- if(nSelType & nsSelectionType::SEL_TBL)
+ if(nSelType & SelectionType::Table)
nRet = SEL_TYPE_TABLE_LIST;
else
nRet = SEL_TYPE_LIST_TEXT;
}
- else if(nSelType & nsSelectionType::SEL_TBL)
+ else if(nSelType & SelectionType::Table)
nRet = SEL_TYPE_TABLE_TEXT;
- else if(nSelType & nsSelectionType::SEL_BEZ)
+ else if(nSelType & SelectionType::Ornament)
nRet = SEL_TYPE_BEZIER;
- else if(nSelType & nsSelectionType::SEL_GRF)
+ else if(nSelType & SelectionType::Graphic)
nRet = SEL_TYPE_GRAPHIC;
return nRet;
}
-void SwToolbarConfigItem::SetTopToolbar( sal_Int32 nSelType, sal_Int32 nBarId )
+void SwToolbarConfigItem::SetTopToolbar( SelectionType nSelType, sal_Int32 nBarId )
{
sal_Int32 nProp = lcl_getArrayIndex(nSelType);
if(nProp >= 0)