diff options
author | Dózsa Bálint <dozsa@linux-dugf.site> | 2011-03-21 12:10:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-21 12:10:06 +0000 |
commit | 74cac597d25ed613072e9a607115de420beecd98 (patch) | |
tree | f8334ac8749845ba423c95559d22b841375b6d93 /sc/source/ui/view/cellsh1.cxx | |
parent | d5d663c24dda5ca0106ad32b84a1a8d825cd4874 (diff) |
FIX BUG 32559 - calc
Diffstat (limited to 'sc/source/ui/view/cellsh1.cxx')
-rw-r--r-- | sc/source/ui/view/cellsh1.cxx | 30 |
1 files changed, 30 insertions, 0 deletions
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 <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <cppuhelper/bootstrap.hxx> +#include <com/sun/star/i18n/TransliterationModules.hpp> +#include <com/sun/star/i18n/TransliterationModulesExtra.hpp> #include <boost/scoped_ptr.hpp> @@ -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 ) |