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/.
9 #ifndef INCLUDED_SVTOOLS_SAMPLETEXT_HXX
10 #define INCLUDED_SVTOOLS_SAMPLETEXT_HXX
12 #include "svtools/svtdllapi.h"
13 #include <rtl/ustring.hxx>
14 #include <unicode/uscript.h>
15 #include <i18nlangtag/lang.h>
16 #include <com/sun/star/i18n/ScriptType.hpp>
17 #include <vcl/fontcapabilities.hxx>
22 SVT_DLLPUBLIC UScriptCode
otCoverageToScript(vcl::UnicodeCoverage::UnicodeCoverageEnum eOTCoverage
);
24 SVT_DLLPUBLIC
bool isSymbolFont(const Font
&rFont
);
25 SVT_DLLPUBLIC
bool isOpenSymbolFont(const Font
&rFont
);
27 SVT_DLLPUBLIC
bool canRenderNameOfSelectedFont(OutputDevice
&rDevice
);
29 //These ones are typically for use in the font dropdown box beside the
30 //fontname, so say things roughly like "Script/Alphabet/Name-Of-Major-Language"
31 SVT_DLLPUBLIC OUString
makeShortRepresentativeSymbolTextForSelectedFont(OutputDevice
&rDevice
);
32 SVT_DLLPUBLIC OUString
makeShortRepresentativeTextForSelectedFont(OutputDevice
&rDevice
);
33 SVT_DLLPUBLIC OUString
makeShortRepresentativeTextForScript(UScriptCode eScript
);
34 //For the cases where the font doesn't fully support a script, but has partial support
36 SVT_DLLPUBLIC OUString
makeShortMinimalTextForScript(UScriptCode eScript
);
38 //These ones are typically for use in the font preview window in format character
39 SVT_DLLPUBLIC OUString
makeRepresentativeTextForFont(sal_Int16 nScriptType
, const Font
&rFont
);
40 SVT_DLLPUBLIC OUString
makeRepresentativeTextForLanguage(LanguageType eLang
);
41 SVT_DLLPUBLIC OUString
makeRepresentativeTextForScript(UScriptCode eScript
);
42 SVT_DLLPUBLIC OUString
makeMinimalTextForScript(UScriptCode eScript
);
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */