tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / include / svtools / sampletext.hxx
blobd85391b5b04dfafd01c126e5ef148e0de383a19d
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 #pragma once
11 #include <svtools/svtdllapi.h>
12 #include <rtl/ustring.hxx>
13 #include <unicode/uscript.h>
14 #include <vcl/fontcapabilities.hxx>
16 class OutputDevice;
17 namespace vcl
19 class Font;
22 UScriptCode otCoverageToScript(vcl::UnicodeCoverage::UnicodeCoverageEnum eOTCoverage);
24 bool isSymbolFont(const vcl::Font& rFont);
26 bool canRenderNameOfSelectedFont(OutputDevice const& rDevice);
28 //These ones are typically for use in the font dropdown box beside the
29 //fontname, so say things roughly like "Script/Alphabet/Name-Of-Major-Language"
30 OUString makeShortRepresentativeSymbolTextForSelectedFont(OutputDevice const& rDevice);
31 OUString makeShortRepresentativeTextForSelectedFont(OutputDevice const& rDevice);
32 OUString makeShortRepresentativeTextForScript(UScriptCode eScript);
33 //For the cases where the font doesn't fully support a script, but has partial support
34 //for a useful subset
35 OUString makeShortMinimalTextForScript(UScriptCode eScript);
37 //These ones are typically for use in the font preview window in format character
38 SVT_DLLPUBLIC OUString makeRepresentativeTextForFont(sal_Int16 nScriptType, const vcl::Font& rFont);
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */