lok: calc - send other views our selection in their co-ordinates.
[LibreOffice.git] / include / svtools / sampletext.hxx
blob9c32cba7b545ddbd1af3cdcbd14bddcc9c59cb15
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/.
8 */
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>
18 class OutputDevice;
19 namespace vcl { class Font; }
21 UScriptCode otCoverageToScript(vcl::UnicodeCoverage::UnicodeCoverageEnum eOTCoverage);
23 bool isSymbolFont(const vcl::Font &rFont);
25 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 OUString makeShortRepresentativeSymbolTextForSelectedFont(OutputDevice const &rDevice);
30 OUString makeShortRepresentativeTextForSelectedFont(OutputDevice const &rDevice);
31 OUString makeShortRepresentativeTextForScript(UScriptCode eScript);
32 //For the cases where the font doesn't fully support a script, but has partial support
33 //for a useful subset
34 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);
40 #endif
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */