summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-12-18 23:05:29 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-12-20 02:50:10 +0100
commit9604cbdb015ec4724f0c7eb1120fc02d5b65d935 (patch)
tree1e15dbbfbdf47f5c6e895494aaab1d40da4da068
parentedccbb232a9190f33d6a55e7833608f99a6566fe (diff)
some small fixes for UI around date cond formats
-rw-r--r--sc/source/ui/condformat/condformatdlgentry.cxx10
1 files changed, 7 insertions, 3 deletions
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<sal_Int32>(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();
}