From 37f238837cdd2532363efe2af1735ab24cb9a1b9 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Tue, 18 Dec 2012 23:05:29 +0100 Subject: some small fixes for UI around date cond formats --- sc/source/ui/condformat/condformatdlgentry.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/condformat/condformatdlgentry.cxx b/sc/source/ui/condformat/condformatdlgentry.cxx index 3fc161205127..b5166705ac3e 100644 --- a/sc/source/ui/condformat/condformatdlgentry.cxx +++ b/sc/source/ui/condformat/condformatdlgentry.cxx @@ -1170,6 +1170,9 @@ ScDateFrmtEntry::ScDateFrmtEntry( Window* pParent, ScDocument* pDoc, const ScCon { sal_Int32 nPos = static_cast(pFormat->GetDateType()); maLbDateEntry.SelectEntryPos(nPos); + + rtl::OUString aStyleName = pFormat->GetStyleName(); + maLbStyle.SelectEntry(aStyleName); } } @@ -1180,6 +1183,7 @@ void ScDateFrmtEntry::Init() FillStyleListBox( mpDoc, maLbStyle ); maLbStyle.SetSelectHdl( LINK( this, ScDateFrmtEntry, StyleSelectHdl ) ); + maLbStyle.SelectEntryPos(1); } void ScDateFrmtEntry::SetActive() @@ -1193,9 +1197,9 @@ void ScDateFrmtEntry::SetActive() void ScDateFrmtEntry::SetInactive() { - maLbDateEntry.Show(); - maFtStyle.Show(); - maWdPreview.Show(); + maLbDateEntry.Hide(); + maFtStyle.Hide(); + maWdPreview.Hide(); Deselect(); } -- cgit