From d2118b08463e60b96244165f4671a7249e06efff Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 13 Jul 2013 14:01:18 +0100 Subject: convert chart color QueryBox to .ui Change-Id: Idc514afb9b4e5e2404500d3ad81a4e4203600218 --- cui/source/options/optchart.cxx | 10 +++++----- cui/source/options/optchart.src | 7 +------ 2 files changed, 6 insertions(+), 11 deletions(-) (limited to 'cui/source/options') diff --git a/cui/source/options/optchart.cxx b/cui/source/options/optchart.cxx index cf7d025c5e48..34e5c1af59c9 100644 --- a/cui/source/options/optchart.cxx +++ b/cui/source/options/optchart.cxx @@ -227,11 +227,11 @@ IMPL_LINK( SvxDefaultColorOptPage, RemoveChartColor, PushButton*, pButton ) if( pColorConfig ) { OSL_ENSURE(pColorConfig->GetColorList().size() > 1, "don't delete the last chart color"); - QueryBox aQuery(pButton, CUI_RES(RID_OPTQB_COLOR_CHART_DELETE)); - aQuery.SetText(String(CUI_RES(RID_OPTSTR_COLOR_CHART_DELETE))); - if(RET_YES == aQuery.Execute()) - { + MessageDialog aQuery(pButton, "QueryDeleteChartColorDialog", + "cui/ui/querydeletechartcolordialog.ui"); + if (RET_YES == aQuery.Execute()) + { pColorConfig->GetColorList().remove( nIndex ); aLbChartColors.Clear(); @@ -244,7 +244,7 @@ IMPL_LINK( SvxDefaultColorOptPage, RemoveChartColor, PushButton*, pButton ) else if (aLbChartColors.GetEntryCount() > 0) aLbChartColors.SelectEntryPos( nIndex ); else - aPBRemove.Enable( sal_False ); + aPBRemove.Enable(true); } } diff --git a/cui/source/options/optchart.src b/cui/source/options/optchart.src index 3034b1348dd7..1653216e5d0c 100644 --- a/cui/source/options/optchart.src +++ b/cui/source/options/optchart.src @@ -84,12 +84,7 @@ String RID_SVXSTR_DIAGRAM_ROW Text [ en-US ] = "Data Series $(ROW)" ; }; -QueryBox RID_OPTQB_COLOR_CHART_DELETE -{ - Buttons = WB_YES_NO ; - DefButton = WB_DEF_NO ; - Message [ en-US ] = "Do you really want to delete the chart color?" ; -}; + String RID_OPTSTR_COLOR_CHART_DELETE { Text [ en-US ] = "Chart Color Deletion" ; -- cgit v1.2.3