summaryrefslogtreecommitdiff
path: root/sw/source/ui/inc/langhelper.hxx
blob: 3ff795d83f566c99e315cd68c30d1310f33124c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*************************************************************************
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * Copyright 2000, 2010 Oracle and/or its affiliates.
 *
 * OpenOffice.org - a multi-platform office productivity suite
 *
 * This file is part of OpenOffice.org.
 *
 * OpenOffice.org is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License version 3
 * only, as published by the Free Software Foundation.
 *
 * OpenOffice.org is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License version 3 for more details
 * (a copy is included in the LICENSE file that accompanied this code).
 *
 * You should have received a copy of the GNU Lesser General Public License
 * version 3 along with OpenOffice.org.  If not, see
 * <http://www.openoffice.org/license.html>
 * for a copy of the LGPLv3 License.
 *
 ************************************************************************/
#ifndef _SWLANGHELPER_HXX
#define _SWLANGHELPER_HXX

class SwWrtShell;
class SwView;
class EditEngine;
class EditView;
class OutlinerView;
class SfxItemSet;
struct ESelection;

namespace SwLangHelper
{
    extern USHORT GetLanguageStatus( OutlinerView* pOLV, SfxItemSet& rSet );
    extern bool SetLanguageStatus( OutlinerView* pOLV, SfxRequest &rReq, SwView &rView, SwWrtShell &rSh );

    extern void SetLanguage( SwWrtShell &rWrtSh, const String &rLangText, bool bIsForSelection, SfxItemSet &rCoreSet );
//  extern void SetLanguage( SwWrtShell &rWrtSh, EditEngine* pEditEngine, ESelection aSelection, const String &rLangText, bool bIsForSelection, SfxItemSet &rCoreSet );
    extern void SetLanguage( SwWrtShell &rWrtSh, OutlinerView* pOLV, ESelection aSelection, const String &rLangText, bool bIsForSelection, SfxItemSet &rCoreSet );
    extern void SetLanguage_None( SwWrtShell &rWrtSh, bool bIsForSelection, SfxItemSet &rCoreSet );
//  extern void SetLanguage_None( SwWrtShell &rWrtSh, EditEngine* pEditEngine, ESelection aSelection, bool bIsForSelection, SfxItemSet &rCoreSet  );
    extern void SetLanguage_None( SwWrtShell &rWrtSh, OutlinerView* pOLV, ESelection aSelection, bool bIsForSelection, SfxItemSet &rCoreSet  );
    extern void ResetLanguages( SwWrtShell &rWrtSh, bool bIsForSelection );
//  extern void ResetLanguages( SwWrtShell &rWrtSh, EditEngine* pEditEngine, ESelection aSelection, bool bIsForSelection );
    extern void ResetLanguages( SwWrtShell &rWrtSh, OutlinerView* pOLV, ESelection aSelection, bool bIsForSelection );

    // document
    extern void SelectCurrentPara( SwWrtShell &rWrtSh );
    // EditView
    extern void SelectPara( EditView &rEditView, const ESelection &rCurSel );

    extern String GetTextForLanguageGuessing( EditEngine* rEditEngine, ESelection aDocSelection );
    extern String GetTextForLanguageGuessing( SwWrtShell &rSh );

    extern LanguageType GetLanguage( SfxItemSet aSet, USHORT nLangWhichId );
    extern LanguageType GetLanguage( SwWrtShell &rSh, USHORT nLangWhichId );

    extern LanguageType GetCurrentLanguage( SfxItemSet aSet, USHORT nScriptType );
    extern LanguageType GetCurrentLanguage( SwWrtShell &rSh );
}

#endif
6c1570034fc88973a061138b133ea'>basctl/source/basicide/basidesh.cxx4
-rw-r--r--basctl/source/basicide/bastype3.cxx14
-rw-r--r--basctl/source/basicide/bastypes.cxx12
-rw-r--r--basctl/source/basicide/moduldl2.cxx2
-rw-r--r--basctl/source/basicide/moduldlg.cxx4
-rw-r--r--basctl/source/basicide/sbxitem.cxx14
-rw-r--r--basctl/source/inc/baside3.hxx2
-rw-r--r--basctl/source/inc/basidesh.hxx2
-rw-r--r--basctl/source/inc/bastype2.hxx2
-rw-r--r--basctl/source/inc/bastypes.hxx12
-rw-r--r--basctl/source/inc/sbxitem.hxx22
-rw-r--r--cui/source/options/cfgchart.cxx2
-rw-r--r--cui/source/options/connpoolsettings.cxx2
-rw-r--r--cui/source/options/dbregistersettings.cxx2
-rw-r--r--dbaccess/source/ui/dlg/DbAdminImpl.cxx2
-rw-r--r--dbaccess/source/ui/dlg/optionalboolitem.cxx2
-rw-r--r--dbaccess/source/ui/misc/stringlistitem.cxx2
-rw-r--r--editeng/source/items/bulitem.cxx2
-rw-r--r--editeng/source/items/charhiddenitem.cxx2
-rw-r--r--editeng/source/items/flditem.cxx4
-rw-r--r--editeng/source/items/frmitems.cxx55
-rw-r--r--editeng/source/items/justifyitem.cxx10
-rw-r--r--editeng/source/items/numitem.cxx8
-rw-r--r--editeng/source/items/optitems.cxx2
-rw-r--r--editeng/source/items/paraitem.cxx24
-rw-r--r--editeng/source/items/textitem.cxx94
-rw-r--r--editeng/source/items/writingmodeitem.cxx2
-rw-r--r--editeng/source/items/xmlcnitm.cxx2
-rw-r--r--include/editeng/borderline.hxx16
-rw-r--r--include/editeng/boxitem.hxx1
-rw-r--r--include/editeng/formatbreakitem.hxx2
-rw-r--r--include/editeng/langitem.hxx4
-rw-r--r--include/editeng/protitem.hxx2
-rw-r--r--include/sfx2/app.hxx3
-rw-r--r--include/sfx2/evntconf.hxx3
-rw-r--r--include/sfx2/objsh.hxx4
-rw-r--r--include/sfx2/viewfrm.hxx2
-rw-r--r--include/svl/cenumitm.hxx2
-rw-r--r--include/svl/cintitem.hxx16
-rw-r--r--include/svl/custritm.hxx7
-rw-r--r--include/svl/eitem.hxx9
-rw-r--r--include/svl/flagitem.hxx3
-rw-r--r--include/svl/intitem.hxx20
-rw-r--r--include/svl/macitem.hxx2
-rw-r--r--include/svl/metitem.hxx3
-rw-r--r--include/svl/poolitem.hxx318
-rw-r--r--include/svl/setitem.hxx6
-rw-r--r--include/svl/stritem.hxx7
-rw-r--r--include/svl/visitem.hxx2
-rw-r--r--include/svtools/borderline.hxx11
-rw-r--r--include/svx/grfcrop.hxx5
-rw-r--r--include/svx/hlnkitem.hxx3
-rw-r--r--include/svx/optgrid.hxx3
-rw-r--r--include/svx/sdangitm.hxx3
-rw-r--r--include/svx/sdgmoitm.hxx2
-rw-r--r--include/svx/sdtaditm.hxx3
-rw-r--r--include/svx/sdtaitm.hxx9
-rw-r--r--include/svx/sdtakitm.hxx3
-rw-r--r--include/svx/sdtfsitm.hxx2
-rw-r--r--include/svx/sdynitm.hxx3
-rw-r--r--include/svx/sxcecitm.hxx5
-rw-r--r--include/svx/sxctitm.hxx3
-rw-r--r--include/svx/sxekitm.hxx3
-rw-r--r--include/svx/sxmtpitm.hxx4
-rw-r--r--include/svx/sxmuitm.hxx3
-rw-r--r--sc/source/core/data/attrib.cxx30
-rw-r--r--sc/source/core/tool/defaultsoptions.cxx2
-rw-r--r--sc/source/core/tool/docoptio.cxx2
-rw-r--r--sc/source/core/tool/formulaopt.cxx2
-rw-r--r--sc/source/core/tool/printopt.cxx2
-rw-r--r--sc/source/core/tool/viewopti.cxx2
-rw-r--r--sc/source/ui/app/uiitems.cxx22
-rw-r--r--sc/source/ui/condformat/condformatdlgitem.cxx2
-rw-r--r--sd/source/ui/app/optsitem.cxx16
-rw-r--r--sfx2/source/control/minfitem.cxx2
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx2
-rw-r--r--sfx2/source/dialog/tplpitem.cxx2
-rw-r--r--sfx2/source/doc/objitem.cxx2
-rw-r--r--sfx2/source/doc/watermarkitem.cxx2
-rw-r--r--sfx2/source/doc/zoomitem.cxx2
-rw-r--r--sfx2/source/view/frame.cxx11
-rw-r--r--svl/source/items/flagitem.cxx4
-rw-r--r--svl/source/items/globalnameitem.cxx5
-rw-r--r--svl/source/items/grabbagitem.cxx7
-rw-r--r--svl/source/items/ilstitem.cxx5
-rw-r--r--svl/source/items/imageitm.cxx2
-rw-r--r--svl/source/items/int64item.cxx2
-rw-r--r--svl/source/items/intitem.cxx4
-rw-r--r--svl/source/items/itemset.cxx2
-rw-r--r--svl/source/items/lckbitem.cxx1
-rw-r--r--svl/source/items/poolitem.cxx25
-rw-r--r--svl/source/items/ptitem.cxx3
-rw-r--r--svl/source/items/rectitem.cxx3
-rw-r--r--svl/source/items/rngitem.cxx2
-rw-r--r--svl/source/items/sitem.cxx10
-rw-r--r--svl/source/items/slstitm.cxx5
-rw-r--r--svl/source/items/srchitem.cxx2
-rw-r--r--svl/source/items/voiditem.cxx4
-rw-r--r--svx/inc/sxcikitm.hxx3
-rw-r--r--svx/inc/sxfiitm.hxx3
-rw-r--r--svx/inc/sxlayitm.hxx6
-rw-r--r--svx/inc/sxmfsitm.hxx3
-rw-r--r--svx/inc/sxmkitm.hxx3
-rw-r--r--svx/inc/sxmsitm.hxx4
-rw-r--r--svx/inc/sxmtaitm.hxx6
-rw-r--r--svx/inc/sxreaitm.hxx6
-rw-r--r--svx/inc/sxreoitm.hxx6
-rw-r--r--svx/inc/sxsiitm.hxx4
-rw-r--r--svx/source/dialog/rulritem.cxx18
-rw-r--r--svx/source/dialog/svxgraphicitem.cxx2
-rw-r--r--svx/source/items/RectangleAlignmentItem.cxx2
-rw-r--r--svx/source/items/SmartTagItem.cxx2
-rw-r--r--svx/source/items/algitem.cxx8
-rw-r--r--svx/source/items/chrtitem.cxx10
-rw-r--r--svx/source/items/clipfmtitem.cxx2
-rw-r--r--svx/source/items/customshapeitem.cxx4
-rw-r--r--svx/source/items/drawitem.cxx21
-rw-r--r--svx/source/items/e3ditem.cxx2
-rw-r--r--svx/source/items/galleryitem.cxx3
-rw-r--r--svx/source/items/grfitem.cxx9
-rw-r--r--svx/source/items/hlnkitem.cxx2
-rw-r--r--svx/source/items/numinf.cxx10
-rw-r--r--svx/source/items/ofaitem.cxx6
-rw-r--r--svx/source/items/pageitem.cxx3
-rw-r--r--svx/source/items/rotmodit.cxx2
-rw-r--r--svx/source/xoutdev/xattr.cxx48
-rw-r--r--svx/source/xoutdev/xattr2.cxx40
-rw-r--r--sw/inc/fmtcnct.hxx2
-rw-r--r--sw/inc/fmtftntx.hxx2
-rw-r--r--sw/inc/grfatr.hxx14
-rw-r--r--sw/source/core/attr/cellatr.cxx6
-rw-r--r--sw/source/core/attr/fmtwrapinfluenceonobjpos.cxx2
-rw-r--r--sw/source/core/attr/hints.cxx2
-rw-r--r--sw/source/core/graphic/grfatr.cxx6
-rw-r--r--sw/source/core/layout/atrfrm.cxx47
-rw-r--r--sw/source/core/para/paratr.cxx4
-rw-r--r--sw/source/core/tox/tox.cxx6
-rw-r--r--sw/source/core/txtnode/atrfld.cxx4
-rw-r--r--sw/source/core/txtnode/atrflyin.cxx2
-rw-r--r--sw/source/core/txtnode/atrftn.cxx2
-rw-r--r--sw/source/core/txtnode/atrref.cxx4
-rw-r--r--sw/source/core/txtnode/attrcontentcontrol.cxx4
-rw-r--r--sw/source/core/txtnode/attrlinebreak.cxx2
-rw-r--r--sw/source/core/txtnode/fmtatr2.cxx20
-rw-r--r--sw/source/filter/basflt/fltshell.cxx13
-rw-r--r--sw/source/filter/inc/fltshell.hxx3
-rw-r--r--sw/source/uibase/chrdlg/ccoll.cxx2
-rw-r--r--sw/source/uibase/config/cfgitems.cxx16
-rw-r--r--sw/source/uibase/dialog/swwrtshitem.cxx3
-rw-r--r--sw/source/uibase/envelp/envimg.cxx2
-rw-r--r--sw/source/uibase/envelp/labimg.cxx2
-rw-r--r--sw/source/uibase/inc/cfgitems.hxx2
-rw-r--r--sw/source/uibase/utlui/uiitems.cxx9
160 files changed, 935 insertions, 513 deletions
diff --git a/avmedia/source/framework/mediaitem.cxx b/avmedia/source/framework/mediaitem.cxx
index 320a24bc9bfe..0b60fb3add58 100644
--- a/avmedia/source/framework/mediaitem.cxx
+++ b/avmedia/source/framework/mediaitem.cxx
@@ -83,7 +83,7 @@ struct MediaItem::Impl
MediaItem::MediaItem( sal_uInt16 i_nWhich, AVMediaSetMask nMaskSet )
- : SfxPoolItem( i_nWhich )
+ : SfxPoolItem( i_nWhich, SfxItemType::MediaItemType )
, m_pImpl( new Impl(nMaskSet) )
{
}
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index b01e5c238a6c..e53f5fad7728 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx