From a4e9c5f3420eba9d1de8817aa553d50bbf2bc81d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 3 Jul 2013 13:09:15 +0100 Subject: restore a11y relations and some other clean up Change-Id: Ic44d45a969bc7e4c809906a59650eab1ee37c424 --- cui/source/inc/tabstpge.hxx | 4 ++++ cui/source/tabpages/tabstpge.cxx | 13 +++++++------ cui/uiconfig/ui/paratabspage.ui | 6 ++++++ 3 files changed, 17 insertions(+), 6 deletions(-) (limited to 'cui') diff --git a/cui/source/inc/tabstpge.hxx b/cui/source/inc/tabstpge.hxx index 8ffa90345e7e..c19f085b7981 100644 --- a/cui/source/inc/tabstpge.hxx +++ b/cui/source/inc/tabstpge.hxx @@ -23,6 +23,7 @@ #include #include #include +#include #include #include @@ -94,6 +95,9 @@ private: PushButton* m_pDelAllBtn; PushButton* m_pDelBtn; + VclContainer* m_pTypeFrame; + VclContainer* m_pFillFrame; + // local variables, internal functions SvxTabStop aAktTab; SvxTabStopItem aNewTabs; diff --git a/cui/source/tabpages/tabstpge.cxx b/cui/source/tabpages/tabstpge.cxx index b620af14f0f6..ba44cf2fbe39 100644 --- a/cui/source/tabpages/tabstpge.cxx +++ b/cui/source/tabpages/tabstpge.cxx @@ -141,6 +141,9 @@ SvxTabulatorTabPage::SvxTabulatorTabPage( Window* pParent, const SfxItemSet& rAt get(m_pDelAllBtn,"buttonBTN_DELALL"); get(m_pDelBtn,"buttonBTN_DEL"); + get(m_pTypeFrame, "frameFL_TABTYPE"); + get(m_pFillFrame, "frameFL_FILLCHAR"); + // This page needs ExchangeSupport SetExchangeSupport(); @@ -160,7 +163,6 @@ SvxTabulatorTabPage::SvxTabulatorTabPage( Window* pParent, const SfxItemSet& rAt m_pCenterTab->SetClickHdl( aLink ); m_pDezChar->SetLoseFocusHdl( LINK( this, SvxTabulatorTabPage, GetDezCharHdl_Impl ) ); - //m_pDezChar->SetMaxTextLen(1); m_pDezChar->Disable(); m_pDezCharLabel->Disable(); @@ -171,7 +173,6 @@ SvxTabulatorTabPage::SvxTabulatorTabPage( Window* pParent, const SfxItemSet& rAt m_pFillSolidLine->SetClickHdl( aLink ); m_pFillSpecial->SetClickHdl( aLink ); m_pFillChar->SetLoseFocusHdl( LINK( this, SvxTabulatorTabPage, GetFillCharHdl_Impl ) ); - //m_pFillChar->SetMaxTextLen(1); m_pFillChar->Disable(); m_pTabBox->SetDoubleClickHdl( LINK( this, SvxTabulatorTabPage, SelectHdl_Impl ) ); @@ -336,8 +337,8 @@ void SvxTabulatorTabPage::DisableControls( const sal_uInt16 nFlag ) m_pDezCharLabel->Disable(); m_pDezChar->Disable(); } -// if ( ( TABTYPE_ALL & nFlag ) == TABTYPE_ALL ) -// m_pTabTypeLabel->Disable(); + if ( ( TABTYPE_ALL & nFlag ) == TABTYPE_ALL ) + m_pTypeFrame->Disable(); if ( ( TABFILL_NONE & nFlag ) == TABFILL_NONE ) m_pNoFillChar->Disable(); if ( ( TABFILL_POINT & nFlag ) == TABFILL_POINT ) @@ -351,8 +352,8 @@ void SvxTabulatorTabPage::DisableControls( const sal_uInt16 nFlag ) m_pFillSpecial->Disable(); m_pFillChar->Disable(); } -// if ( ( TABFILL_ALL & nFlag ) == TABFILL_ALL ) -// m_pFillLabel->Disable(); + if ( ( TABFILL_ALL & nFlag ) == TABFILL_ALL ) + m_pFillFrame->Disable(); } // ----------------------------------------------------------------------- diff --git a/cui/uiconfig/ui/paratabspage.ui b/cui/uiconfig/ui/paratabspage.ui index 709e9df234c5..fe2e2f84dc7f 100644 --- a/cui/uiconfig/ui/paratabspage.ui +++ b/cui/uiconfig/ui/paratabspage.ui @@ -416,6 +416,9 @@ 0.090000003576278687 True radiobuttonBTN_FILLCHAR_NO + + + 0 @@ -430,6 +433,9 @@ False 1 + + + 1 -- cgit