summaryrefslogtreecommitdiff
path: root/cui/source/options/optchart.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-07-13 14:01:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-07-13 14:30:31 +0100
commitd2118b08463e60b96244165f4671a7249e06efff (patch)
tree5a29923d5ed83d5f6cb6c0669d40a3bc5f247d3e /cui/source/options/optchart.cxx
parent04f6d24a0a072dc8f1298b34bd2c473b5f0f961e (diff)
convert chart color QueryBox to .ui
Change-Id: Idc514afb9b4e5e2404500d3ad81a4e4203600218
Diffstat (limited to 'cui/source/options/optchart.cxx')
-rw-r--r--cui/source/options/optchart.cxx10
1 files changed, 5 insertions, 5 deletions
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);
}
}