bump product version to 4.1.6.2
[LibreOffice.git] / sw / source / ui / inc / langhelper.hxx
blob65ac9185c990eb109d66d9b4cac077e14a664ee2
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _SWLANGHELPER_HXX
20 #define _SWLANGHELPER_HXX
22 class SwWrtShell;
23 class SwView;
24 class EditEngine;
25 class EditView;
26 class OutlinerView;
27 class SfxItemSet;
28 struct ESelection;
30 namespace SwLangHelper
32 extern sal_uInt16 GetLanguageStatus( OutlinerView* pOLV, SfxItemSet& rSet );
33 extern bool SetLanguageStatus( OutlinerView* pOLV, SfxRequest &rReq, SwView &rView, SwWrtShell &rSh );
35 extern void SetLanguage( SwWrtShell &rWrtSh, const String &rLangText, bool bIsForSelection, SfxItemSet &rCoreSet );
36 // extern void SetLanguage( SwWrtShell &rWrtSh, EditEngine* pEditEngine, ESelection aSelection, const String &rLangText, bool bIsForSelection, SfxItemSet &rCoreSet );
37 extern void SetLanguage( SwWrtShell &rWrtSh, OutlinerView* pOLV, ESelection aSelection, const String &rLangText, bool bIsForSelection, SfxItemSet &rCoreSet );
38 extern void SetLanguage_None( SwWrtShell &rWrtSh, bool bIsForSelection, SfxItemSet &rCoreSet );
39 // extern void SetLanguage_None( SwWrtShell &rWrtSh, EditEngine* pEditEngine, ESelection aSelection, bool bIsForSelection, SfxItemSet &rCoreSet );
40 extern void SetLanguage_None( SwWrtShell &rWrtSh, OutlinerView* pOLV, ESelection aSelection, bool bIsForSelection, SfxItemSet &rCoreSet );
41 extern void ResetLanguages( SwWrtShell &rWrtSh, bool bIsForSelection );
42 // extern void ResetLanguages( SwWrtShell &rWrtSh, EditEngine* pEditEngine, ESelection aSelection, bool bIsForSelection );
43 extern void ResetLanguages( SwWrtShell &rWrtSh, OutlinerView* pOLV, ESelection aSelection, bool bIsForSelection );
45 // document
46 extern void SelectCurrentPara( SwWrtShell &rWrtSh );
47 // EditView
48 extern void SelectPara( EditView &rEditView, const ESelection &rCurSel );
50 extern String GetTextForLanguageGuessing( EditEngine* rEditEngine, ESelection aDocSelection );
51 extern String GetTextForLanguageGuessing( SwWrtShell &rSh );
53 extern LanguageType GetLanguage( SfxItemSet aSet, sal_uInt16 nLangWhichId );
54 extern LanguageType GetLanguage( SwWrtShell &rSh, sal_uInt16 nLangWhichId );
56 extern LanguageType GetCurrentLanguage( SfxItemSet aSet, sal_uInt16 nScriptType );
57 extern LanguageType GetCurrentLanguage( SwWrtShell &rSh );
60 #endif
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */