From 74cac597d25ed613072e9a607115de420beecd98 Mon Sep 17 00:00:00 2001 From: Dózsa Bálint Date: Mon, 21 Mar 2011 12:10:06 +0000 Subject: FIX BUG 32559 - calc --- sc/source/ui/view/cellsh1.cxx | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'sc/source/ui/view/cellsh1.cxx') diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx index c5cb779ee2a4..64febde3a460 100644 --- a/sc/source/ui/view/cellsh1.cxx +++ b/sc/source/ui/view/cellsh1.cxx @@ -112,6 +112,8 @@ #include #include #include +#include +#include #include @@ -2088,6 +2090,34 @@ void ScCellShell::ExecuteTrans( SfxRequest& rReq ) } } +void ScCellShell::ExecuteRotateTrans( SfxRequest& rReq ) +{ + using namespace ::com::sun::star::i18n; + { + sal_uInt32 nMode = 0; + + if( rReq.GetSlot() == SID_TRANSLITERATE_ROTATE_CASE ) { + switch ( nF3ShiftCounter ) { + case 0: + nMode = TransliterationModulesExtra::TITLE_CASE; + break; + case 1: + nMode = TransliterationModules_LOWERCASE_UPPERCASE; + break; + case 2: + nMode = TransliterationModules_UPPERCASE_LOWERCASE; + nF3ShiftCounter = -1; + break; + } + + if ( nMode ) + GetViewData()->GetView()->TransliterateText( nMode ); + + nF3ShiftCounter++; + } + } +} + void ScCellShell::ExecuteExternalSource( const String& _rFile, const String& _rFilter, const String& _rOptions, const String& _rSource, sal_uLong _nRefresh, SfxRequest& _rRequest ) -- cgit