Kaydet (Commit) 37f23883 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

some small fixes for UI around date cond formats

üst 31eee6b3
...@@ -1170,6 +1170,9 @@ ScDateFrmtEntry::ScDateFrmtEntry( Window* pParent, ScDocument* pDoc, const ScCon ...@@ -1170,6 +1170,9 @@ ScDateFrmtEntry::ScDateFrmtEntry( Window* pParent, ScDocument* pDoc, const ScCon
{ {
sal_Int32 nPos = static_cast<sal_Int32>(pFormat->GetDateType()); sal_Int32 nPos = static_cast<sal_Int32>(pFormat->GetDateType());
maLbDateEntry.SelectEntryPos(nPos); maLbDateEntry.SelectEntryPos(nPos);
rtl::OUString aStyleName = pFormat->GetStyleName();
maLbStyle.SelectEntry(aStyleName);
} }
} }
...@@ -1180,6 +1183,7 @@ void ScDateFrmtEntry::Init() ...@@ -1180,6 +1183,7 @@ void ScDateFrmtEntry::Init()
FillStyleListBox( mpDoc, maLbStyle ); FillStyleListBox( mpDoc, maLbStyle );
maLbStyle.SetSelectHdl( LINK( this, ScDateFrmtEntry, StyleSelectHdl ) ); maLbStyle.SetSelectHdl( LINK( this, ScDateFrmtEntry, StyleSelectHdl ) );
maLbStyle.SelectEntryPos(1);
} }
void ScDateFrmtEntry::SetActive() void ScDateFrmtEntry::SetActive()
...@@ -1193,9 +1197,9 @@ void ScDateFrmtEntry::SetActive() ...@@ -1193,9 +1197,9 @@ void ScDateFrmtEntry::SetActive()
void ScDateFrmtEntry::SetInactive() void ScDateFrmtEntry::SetInactive()
{ {
maLbDateEntry.Show(); maLbDateEntry.Hide();
maFtStyle.Show(); maFtStyle.Hide();
maWdPreview.Show(); maWdPreview.Hide();
Deselect(); Deselect();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment