LibreOffice Module svtools (master) 1
sampletext.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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
10
11#include <svtools/svtdllapi.h>
12#include <rtl/ustring.hxx>
13#include <unicode/uscript.h>
15
16class OutputDevice;
17namespace vcl
18{
19class Font;
20}
21
23
24bool isSymbolFont(const vcl::Font& rFont);
25
26bool canRenderNameOfSelectedFont(OutputDevice const& rDevice);
27
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"
32OUString 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
35OUString makeShortMinimalTextForScript(UScriptCode eScript);
36
37//These ones are typically for use in the font preview window in format character
38SVT_DLLPUBLIC OUString makeRepresentativeTextForFont(sal_Int16 nScriptType, const vcl::Font& rFont);
39
40/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SVT_DLLPUBLIC OUString makeRepresentativeTextForFont(sal_Int16 nScriptType, const vcl::Font &rFont)
OUString makeShortRepresentativeTextForSelectedFont(OutputDevice const &rDevice)
bool canRenderNameOfSelectedFont(OutputDevice const &rDevice)
Definition: sampletext.cxx:143
OUString makeShortMinimalTextForScript(UScriptCode eScript)
Definition: sampletext.cxx:541
bool isSymbolFont(const vcl::Font &rFont)
Definition: sampletext.cxx:108
OUString makeShortRepresentativeTextForScript(UScriptCode eScript)
Definition: sampletext.cxx:220
UScriptCode otCoverageToScript(vcl::UnicodeCoverage::UnicodeCoverageEnum eOTCoverage)
OUString makeShortRepresentativeSymbolTextForSelectedFont(OutputDevice const &rDevice)
Definition: sampletext.cxx:149
#define SVT_DLLPUBLIC
Definition: svtdllapi.h:27