update credits
[LibreOffice.git] / unotools / source / i18n / caserotate.cxx
blob23d0813cca2bee8400ef3bcce63f136199c663d2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
11 #include "unotools/caserotate.hxx"
12 #include <com/sun/star/i18n/TransliterationModules.hpp>
13 #include <com/sun/star/i18n/TransliterationModulesExtra.hpp>
15 //TODO Use XCharacterClassification::getStringType to determine the current
16 //(possibly mixed) case type and rotate to the next one
18 sal_uInt32 RotateTransliteration::getNextMode()
20 using namespace ::com::sun::star::i18n;
22 sal_uInt32 nMode = 0;
24 switch (nF3ShiftCounter)
26 case 0:
27 nMode = TransliterationModulesExtra::TITLE_CASE;
28 break;
29 case 1:
30 nMode = TransliterationModules_LOWERCASE_UPPERCASE;
31 break;
32 default:
33 case 2:
34 nMode = TransliterationModules_UPPERCASE_LOWERCASE;
35 nF3ShiftCounter = -1;
36 break;
39 nF3ShiftCounter++;
41 return nMode;
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */