2010-10-14 08:27:31 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-15 17:28:16 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2013-10-23 19:14:56 +02:00
|
|
|
#ifndef INCLUDED_SVTOOLS_LANGTAB_HXX
|
|
|
|
#define INCLUDED_SVTOOLS_LANGTAB_HXX
|
2007-11-23 15:49:15 +00:00
|
|
|
|
2013-04-05 18:40:39 +02:00
|
|
|
#include <i18nlangtag/lang.h>
|
2014-05-06 19:55:49 +01:00
|
|
|
#include <rtl/ustring.hxx>
|
2010-01-15 14:01:46 +01:00
|
|
|
#include <svtools/svtdllapi.h>
|
2007-11-23 15:49:15 +00:00
|
|
|
|
2014-05-10 07:38:00 +02:00
|
|
|
class LanguageTag;
|
|
|
|
|
2014-05-06 19:55:49 +01:00
|
|
|
class SVT_DLLPUBLIC SvtLanguageTable
|
2007-11-23 15:49:15 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2014-05-22 12:28:02 +02:00
|
|
|
static bool HasLanguageType( const LanguageType eType );
|
2014-05-06 15:34:53 +01:00
|
|
|
static OUString GetLanguageString( const LanguageType eType );
|
|
|
|
static LanguageType GetLanguageType( const OUString& rStr );
|
|
|
|
static sal_uInt32 GetLanguageEntryCount();
|
|
|
|
static LanguageType GetLanguageTypeAtIndex( sal_uInt32 nIndex );
|
|
|
|
|
2014-05-13 12:02:42 +02:00
|
|
|
/** Add a language tag to the table.
|
|
|
|
*/
|
2018-03-08 13:48:09 +02:00
|
|
|
static sal_uInt32 AddLanguageTag( const LanguageTag& rLanguageTag );
|
2007-11-23 15:49:15 +00:00
|
|
|
};
|
|
|
|
|
2009-02-17 10:33:03 +00:00
|
|
|
// Add LRE or RLE embedding characters to the string based on the
|
|
|
|
// String content (see #i78466#, #i32179#)
|
2013-08-14 15:10:01 +02:00
|
|
|
SVT_DLLPUBLIC const OUString ApplyLreOrRleEmbedding( const OUString &rText );
|
2007-11-23 15:49:15 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-14 08:27:31 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|