1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #include <unotools/caserotate.hxx>
11 #include <i18nutil/transliteration.hxx>
13 //TODO Use XCharacterClassification::getStringType to determine the current
14 //(possibly mixed) case type and rotate to the next one
16 TransliterationFlags
RotateTransliteration::getNextMode()
18 TransliterationFlags nMode
= TransliterationFlags::NONE
;
20 switch (nF3ShiftCounter
)
23 nMode
= TransliterationFlags::TITLE_CASE
;
26 nMode
= TransliterationFlags::SENTENCE_CASE
;
29 nMode
= TransliterationFlags::LOWERCASE_UPPERCASE
;
33 nMode
= TransliterationFlags::UPPERCASE_LOWERCASE
;
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */