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 <vcl/fontcapabilities.hxx>
19 namespace vcl
{ class Font
; }
21 SVT_DLLPUBLIC UScriptCode
otCoverageToScript(vcl::UnicodeCoverage::UnicodeCoverageEnum eOTCoverage
);
23 SVT_DLLPUBLIC
bool isSymbolFont(const vcl::Font
&rFont
);
25 SVT_DLLPUBLIC
bool canRenderNameOfSelectedFont(OutputDevice
const &rDevice
);
27 //These ones are typically for use in the font dropdown box beside the
28 //fontname, so say things roughly like "Script/Alphabet/Name-Of-Major-Language"
29 SVT_DLLPUBLIC OUString
makeShortRepresentativeSymbolTextForSelectedFont(OutputDevice
const &rDevice
);
30 SVT_DLLPUBLIC OUString
makeShortRepresentativeTextForSelectedFont(OutputDevice
const &rDevice
);
31 SVT_DLLPUBLIC OUString
makeShortRepresentativeTextForScript(UScriptCode eScript
);
32 //For the cases where the font doesn't fully support a script, but has partial support
34 SVT_DLLPUBLIC OUString
makeShortMinimalTextForScript(UScriptCode eScript
);
36 //These ones are typically for use in the font preview window in format character
37 SVT_DLLPUBLIC OUString
makeRepresentativeTextForFont(sal_Int16 nScriptType
, const vcl::Font
&rFont
);
38 SVT_DLLPUBLIC OUString
makeRepresentativeTextForLanguage(LanguageType eLang
);
39 SVT_DLLPUBLIC OUString
makeRepresentativeTextForScript(UScriptCode eScript
);
40 SVT_DLLPUBLIC OUString
makeMinimalTextForScript(UScriptCode eScript
);
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */