summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorEfe Gürkan YALAMAN <efeyalaman@gmail.com>2013-07-29 03:48:41 +0300
committerThorsten Behrens <tbehrens@suse.com>2013-08-01 02:19:41 +0200
commit876de50303e9f9254103870f32577640611fd4df (patch)
treee4be7e643ee212da4d618f9038d1a61d0466b164 /cui
parent39b31a28ced6d8bcb631921193d382322eb73ef7 (diff)
initial editBtn click handler added
Change-Id: I31ea8ab94331a8f6edc9e3c3f8f35105da5d7041
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optaboutconfig.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx
index 8434aa048e58..688b48b41228 100644
--- a/cui/source/options/optaboutconfig.cxx
+++ b/cui/source/options/optaboutconfig.cxx
@@ -46,6 +46,8 @@ CuiAboutConfigTabPage::CuiAboutConfigTabPage( Window* pParent, const SfxItemSet&
WinBits nBits = WB_SCROLL | WB_SORT | WB_HSCROLL | WB_VSCROLL;
pPrefBox = new svx::OptHeaderTabListBox( *m_pPrefCtrl, nBits );
+ m_pEditBtn->SetClickHdl( LINK( this, CuiAboutConfigTabPage, StandardHdl_Impl ) );
+
HeaderBar &rBar = pPrefBox->GetTheHeaderBar();
rBar.InsertItem( ITEMID_PREF, get<FixedText>("preference")->GetText(), 0, HIB_LEFT | HIB_VCENTER | HIB_CLICKABLE | HIB_UPARROW);
rBar.InsertItem( ITEMID_TYPE, get<FixedText>("status")->GetText(), 0, HIB_LEFT | HIB_VCENTER | HIB_CLICKABLE | HIB_UPARROW );
@@ -273,6 +275,20 @@ IMPL_LINK( CuiAboutConfigTabPage, HeaderSelect_Impl, HeaderBar*, pBar )
IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
{
SvTreeListEntry* pEntry = pPrefBox->FirstSelected();
+
+ OUString sType = pPrefBox->GetEntryText( pEntry, 2 );
+
+ if( sType == OUString("boolean") )
+ {
+ //TODO: this is just cosmetic, take all needed value and handle them properly
+ OUString sValue = pPrefBox->GetEntryText( pEntry, 1 );
+ if (sValue == OUString("true"))
+ pPrefBox->SetEntryText( OUString("false"), pEntry, 1 );
+ else if(sValue == OUString("false"))
+ pPrefBox->SetEntryText( OUString("true"), pEntry, 1 );
+ }
+ //TODO: add other types
+
return 0;
}