From 9897942db6c53dff3a85b880d9d2b955011ef189 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 6 Oct 2012 16:19:42 +0100 Subject: Tweak hyphen as a togglable option after all In a65f48f375d218b592ba7c17752f9ca86e14bd65 I wondered why hyphenation was set to be a toggle able feature when it opens a non-modal dialog. Looking closer, it *is* a toggable feature on/off for draw/impress, but this isn't the case for writer. Reverted it for calc too, although apparently not toggable there. Change-Id: If02568d58253c380e6d668a728f9c3ae6acf1128 --- sw/source/ui/uiview/viewstat.cxx | 9 --------- 1 file changed, 9 deletions(-) (limited to 'sw') diff --git a/sw/source/ui/uiview/viewstat.cxx b/sw/source/ui/uiview/viewstat.cxx index 7938caab65cc..3aee693a3434 100644 --- a/sw/source/ui/uiview/viewstat.cxx +++ b/sw/source/ui/uiview/viewstat.cxx @@ -247,15 +247,6 @@ void SwView::GetState(SfxItemSet &rSet) rSet.Put((const SvxLanguageItem&) pWrtShell->GetDefault(RES_CHRATR_CTL_LANGUAGE), RES_CHRATR_CTL_LANGUAGE); break; - case FN_HYPHENATE_OPT_DLG: - { - sal_Bool bCheck = sal_False; - - if (pWrtShell->GetSelectionType() & (nsSelectionType::SEL_DRW_TXT|nsSelectionType::SEL_DRW)) - bCheck = IsDrawTextHyphenate(); - rSet.Put(SfxBoolItem(nWhich, bCheck)); - } - break; case FN_REDLINE_ON: rSet.Put( SfxBoolItem( nWhich, GetDocShell()->IsChangeRecording() ) ); break; -- cgit