diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-12-18 23:05:29 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-12-20 02:49:30 +0100 |
commit | 37f238837cdd2532363efe2af1735ab24cb9a1b9 (patch) | |
tree | 733c0fb683e1efe2e12dd20616f92d6ea5afbd0d /sc | |
parent | 31eee6b372539f0f1ccb82d9a8012e878d498d56 (diff) |
some small fixes for UI around date cond formats
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/condformat/condformatdlgentry.cxx | 10 |
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(); } |