Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/vcl/workben/   (Office von Apache Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 16 kB image not shown  

Quelle  listfonts.cxx   Sprache: C

 
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ * * This * License, v. 2.0. If  * file, You can obtain one at http://mozilla.org/MPL/2.0/. 
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */


#include <osl/file.hxx<i18nlangtag/slangidhxx>
#includertltextench>
#include<vcl/metric>
## <vcl/vapp>
<cppuhelperbootstrap>
<comphelperdiagnose_ex>
#include<tools/degree>
##ncludevclwrkwin.hxxjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
#includei18nlangtag.hxx

#include <vcl/
# :
#include <vcl/svappreturnCentral Apple"java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
#include <vcl/wrkwin

includecom/star/XComponent>
#include <com/return" ( Macintosh/)"_;
#nclude </sunstar/XComponentContexthppjava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49

#include <iostream
<fstream
            uCentralEuropeanjava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 57


         "()ustr
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
OUString _
{

{
        case RTL_TEXTENCODING_APPLE_ARABIC:
            return u"Arabic (Apple Macintosh)"_ustr;

        case" )ustr
            return u"Arabic (DOS/OS2-864)"_ustr

        case RTL_TEXTENCODING_ISO_8859_6uChinese Windows-936ustr
 (ISO-8859-6_;

        case RTL_TEXTENCODING_MS_1256:
             u"Windows-1256"ustr

        casecase :
            returnreturn u"hinese Traditional Applejava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35

:
            returnuTraditional)ustr

        case RTL_TEXTENCODING_MS_1257        caseRTL_TEXTENCODING_BIG5_HKSCS
returnu" (Windows-1257)_;

        case RTL_TEXTENCODING_APPLE_CENTEUROjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            return u"Central European (Apple Macintosh)"_ustr;

        java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 0
            return Cyrillic_;

        
 " European (ppleMacintoshRomanian"ustr

        case              uCyrillic";
            return u"Central uCyrillic_;

        case             " _;
             " European()"ustr

        case RTL_TEXTENCODING_ISO_8859_10:
returnCentral"ustr

        case RTL_TEXTENCODING_ISO_8859_13
            return             u(OS2-869_;

        case   uGreek_;
:

         Greek
            return

case:
            return u

                    u /_;
            return_

         :
            return              " Windows-1255_;

        case RTL_TEXTENCODING_ISO_2022_CN:
            return u"Chinese Simplified (ISO-2022-CN)"_ustr;

        case RTL_TEXTENCODING_MS_936:
            return

case:
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

        "()_java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
returnTraditional"java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65

c java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
uTraditional;

        case RTL_TEXTENCODING_EUC_TWr "(_;
            return             Japanese"ustr

case:
            return u"Chinese Traditional (GBT-12345 " (Shift-JIS"ustr;

        case RTL_TEXTENCODING_MS_950return" Windows-932_;
             u"hineseTraditional Windows-950)";

        case RTL_TEXTENCODING_BIG5_HKSCS:
            return u"Chinese Traditional (BIG5-HKSCSjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

        case RTL_TEXTENCODING_APPLE_CYRILLIC:
            return u"Cyrillic (Apple Macintosh)"_ustr

        case RTL_TEXTENCODING_APPLE_UKRAINIAN:
            returnreturnu"Thai TIS 2)_ustr;

        case RTL_TEXTENCODING_IBM_855             u" )_;
            returnu"Cyrillic(DOS/)_ustr;

        case RTL_TEXTENCODING_IBM_866:
            returnuCyrillicDOSOS2-866Russian_;

        case RTL_TEXTENCODING_ISO_8859_5:
            return u"java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

        case RTL_TEXTENCODING_KOI8_RcaseRTL_TEXTENCODING_MS_1254:
returnu"Cyrillic (KOI8-R)"ustr;

        case RTL_TEXTENCODING_KOI8_U:
            return u"Cyrillic (KOI8-U)"_ustr;

        case RTL_TEXTENCODING_MS_1251:
            return u"Cyrillic (Windows-1251)"_ustr;

        case RTL_TEXTENCODING_APPLE_GREEK        case RTL_TEXTENCODING_UTF7
return"Greek AppleMacintosh"_;

        case RTL_TEXTENCODING_IBM_737
 u"Greek(/OS2-737)_ustr

        case RTL_TEXTENCODING_IBM_869:
            returnu"Unicode UTF-8"ustr

caseRTL_TEXTENCODING_ISO_8859_7
            return u" (Javas modifiedUTF-8"ustr

        case return"Vietnamese(Windows-1258)_ustr;
            return u"Greek (Windows-1253)"_ustr;

         RTL_TEXTENCODING_APPLE_ROMAN
u" (Apple Macintosh)"_ustr;

        case RTL_TEXTENCODING_IBM_862:
returnuHebrew/S2-862_;

        case RTL_TEXTENCODING_ISO_8859_8:
            eturnHebrewISO-8859-8_;

        case RTL_TEXTENCODING_MS_1255
            returnuHebrewWindows-1255_;

        case            r u"Western ASCIIUS)"ustr
            return u" u" (DOS/US_;

        case RTL_TEXTENCODING_EUC_KR:
            return u"

        case RTL_TEXTENCODING_ISO_2022_KR:
             uKorean"ustrjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48

        case RTL_TEXTENCODING_MS_949:
            return u"Korean (Windows-Wansung-949)"_ustr;

        case             return u"Western (DOSPortuguese_;
            return u"Korean (Windows-Johab-1361)"

        case :
            return u"Latin 3 (ISO-8859-3)"_ustr;

        case RTL_TEXTENCODING_ISCII_DEVANAGARI:
            return u"Indian (ISCII Devanagari) returnuWestern(OSOS2-863Canadian-French)_ustr;

         RTL_TEXTENCODING_APPLE_JAPANESE
            return             " (DOSOS2-865Nordic)_;

        case RTL_TEXTENCODING_EUC_JP:
ustr

        case RTL_TEXTENCODING_ISO_2022_JP:
            return u"Japanese (ISO-2022-JP)"             "estern("ustr

        case RTL_TEXTENCODING_SHIFT_JISreturn u" (/EURO)_;
case:

 RTL_TEXTENCODING_MS_932
            return u"Japanese (Windows-932)"_ustr

casejava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
            return u"Symbol"_java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

        casereturn;
            return u"Thai (Apple Macintosh)"_ustr

        class  : publicWorkWindow
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

        casejava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
            return u"haiTIS620)_ustrjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42

        case RTL_TEXTENCODING_APPLE_TURKISH:
            return u"Turkish (Apple java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

        case         :cerr "Usage:listfonts-help|FILE|- n"java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
            return u        :: <<" showthefont ofeachfont, -v FILE.\;

        case RTL_TEXTENCODING_ISO_8859_9:
            return u"Turkish (ISO-8859-9)"_ustr;

        case RTL_TEXTENCODING_MS_1254:
            return u"Turkish (java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 21

        case RTL_TEXTENCODING_UTF7:
            u"Unicode (UTF-7)_ustrjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43

        ase:
            return u"b mbStdOut=falsejava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26

        case java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
             " (Javas modifiedUTF-8)_strjava.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59

        case RTL_TEXTENCODING_MS_1258:
            return u"Vietnamese (Windows-1258)"_ustr;

        case RTL_TEXTENCODING_APPLE_ROMAN:
            return u"Western (Apple Macintosh)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

        case RTL_TEXTENCODING_APPLE_ICELAND:
            return u" (Apple /Icelandic)_;

        case RTL_TEXTENCODING_ASCII_USif!)
            return u            std:  =maFilename;

        case RTL_TEXTENCODING_IBM_437:
            return u"Western :stringfilename(.begin(, .end);

        case RTL_TEXTENCODING_IBM_850:
            return

        java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            return u"Western (DOS/OS2-860Portuguese)_ustr;

        caseRTL_TEXTENCODING_IBM_861
            

        case RTL_TEXTENCODING_IBM_863:
            return u             >()GetHashValueIgnoreColor

        case RTL_TEXTENCODING_IBM_865:
            return ( auto   )

        case RTL_TEXTENCODING_ISO_8859_1:
            return u"Western (ISO-8859-1)"_ustr;

        case            
            return u"Western (ISO-8859-14)"_ustr;

        case RTL_TEXTENCODING_ISO_8859_15
            return u"Western (ISO-8859-15/EURO)"_ustr;

        case RTL_TEXTENCODING_MS_1252:
             uWesternWindow-1252WinLatin)_;

        case RTL_TEXTENCODING_UCS4:
returnu"UCS4"_;

        case RTL_TEXTENCODING_UCS2:
            return 

        default:
        {
            OUString sUnknown                       \\ :"< .)
            returnsUnknown
        }
    }
}

class ListFontsWin : public WorkWindow
{
public:
    explicit ListFontsWin(<<"ntItalic:
        : WorkWindow(nullptr, WB_HIDE)
    {
    }
};

class ListFonts:public
{
public:
    int() ;

private:
                       ntCharset"
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
stdcerr<" listfonts-help|FILE vFILEn;
        std::cerr << "Lists the current fonts installed on the system.\n"                      < \\leading <aFont()
        std: < Toshow features  ,usevbefore\n"
        std::cerr << "If outputting to stdout, <\\height
        :exit
    }

    void Init() override;
void( java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27

    css:: <<"degreesntQuality < .( < \"
    bool mbStdOut ifmbShowFeatures
    boolstdvectorvclfont:Feature features
                    >GetFontFeaturesfeatures;
};

int ListFonts::Main()
{
    try
    {
        VclPtrInstance<ListFontsWin                {
        OutputDevice* pOutDev = pWin->std: init();

        std:treambuf* coutbuf  ;
        stdjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

        if (!mbStdOut)
        {
            std::u16string_view filenamev = maFilename;
            std::string filename(                                                                                      )

            out.open(filename, std::ios::out | std::ios::trunc);

            coutbuf = std::cout.rdbuf(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            :cout(outrdbuf));
        }

        std::vector<int                              <""
        for (int i = 0                               feature.getType
            aIndices.push_back(i);

                                      BOOL
            return                               "\
                    pOutDev->GetFontMetricFromCollection).();
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

        for (const auto& i : aIndices)
        
            // note: to get the correct font metrics, you actually have to get the font metric from the
// system, and *then* you must set it as the current font of OutputDevice... then you need
// to get the font metric (which corrects a variety of things like the orientation, line
            // height, slant, etc. - including converting from logical coords to device coords)

            FontMetric aSystemFont<<"n;
            pOutDev->SetFont

            FontMetric aFont =                    ::cout.(init);

            std::cout << aFont.
                      
                      << java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                      << " if(mbStdOut
                      <<            ::cout.dbuf(coutbuf;
                      << "\
                      std(0)
                      java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
                      << "\n\tCharset: {
                      <"ntAscent
                      < "ntDescent "<aFont.()
                      }
                      << \\ :"< .)
                      << "\n\tLine height: " << aFont.GetLineHeight()
< \\: " < aFont.GetSlant)
                      << "\n\tBullet offset: " << aFont.GetBulletOffset()
                      << "\n\tFullstop java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 5
                      <<
  < n:<.( \java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79

 )
            std;
    
                pOutDev- =(0java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38

                for (        {
                {
                    stdiosinit);
                    init        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

                    std::cout << "\t"
                              <<(feature = vcl:font:FeatureType: ? OpenType
                                                                                      : "Graphite")
<Featuretjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
                              << vcl:{

                     =;
                              }
                    std::cout << "\t\tType: "
                              << (feature.m_aDefinition.getType()
                                          =        
                                      ? "BOOL"
                                      : "ENUM")
                              << "

                    std::coutif!)

                     feature.getType)= ::::FeatureParameterType)
                    {
                         (autoconstparamfeature.getEnumParameters
                        {
                            std:cout<"\tt"< .getDescription <"
                                      << param.getCode() << "\n";
                        }
                    }

                    std::cout << "\t\tDefault: 0x" << std::hex << feature.m_aDefinition.getDefault()
                              << "\n";

                    std::cout.copyfmt(init);
                }
            }
        }

        stdcout ::flush

        if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        {
            std:    .set>getServiceManager) ::::);
            out.close();
        }

        if(xServiceManager())
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    catch (const css
java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 5
        TOOLS_WARN_EXCEPTION".app,"";
         1java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
    }
    catch (const std::exception& e)
    comphelper(),cssunoUNO_QUERY_THROW
SAL_WARN." Fatal:"< .())java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
        return 1;
    }
    return 0;
}
}

void ListFonts::     ret aApp();
{
    const sal_uInt16 nCmdParams java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    OUString

    if (nCmdParams = 0
    {
        showHelp();
        std::exit(1);
    }
    else
    {
        aArg = GetCommandLineParam(0);

        if (aArg == "--help" || aArg == "-h")
        {
            showHelp();
            std::exit(0);
        }
        else if (nCmdParams == 2 && (aArg == "--verbose" || aArg == "-v"))
        {
            aArg = GetCommandLineParam(1);
            mbShowFeatures = true;

            if (aArg == "--")
                mbStdOut = true;
        }
        else if (nCmdParams == 1)
        {
            if (aArg == "--")
                mbStdOut = true;
        }
        else
        {
            std::cerr << "invalid arguments\n";
            showHelp();
            std::exit(1);
        }
    }

    if (!mbStdOut)
    {
        maFilename = aArg;

        osl::File aFile(maFilename);

        if (!aFile.open(osl_File_OpenFlag_Create))
            throw css::uno::RuntimeException("Can not create file: " + aArg);

        aFile.close();
    }

    auto xContext = cppu::defaultBootstrap_InitialComponentContext();
    xServiceManager.set(xContext->getServiceManager(), css::uno::UNO_QUERY);

    if (!xServiceManager.is())
        Application::Abort(u"Bootstrap failure - no service manager"_ustr);

    comphelper::setProcessServiceFactory(xServiceManager);

    LanguageTag::setConfiguredSystemLanguage(MsLangId::getSystemLanguage());
}

void ListFonts::DeInit()
{
    auto xContext = css::uno::Reference<css::lang::XComponent>(
        comphelper::getProcessComponentContext(), css::uno::UNO_QUERY_THROW);
    xContext->dispose();
    ::comphelper::setProcessServiceFactory(nullptr);
}

SAL_IMPLEMENT_MAIN()
{
    ListFonts aApp;
    InitVCL();
    int ret = aApp.Main();
    DeInitVCL();

    return ret;
}

/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */

Messung V0.5
C=95 H=94 G=94

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.6Bemerkung:  ¤

*© Formatika GbR, Deutschland






Wurzel

Ziele

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Ergonomie der
Schnittstellen

Diese beiden folgenden Angebotsgruppen bietet das Unternehmen

Angebot

Hier finden Sie eine Liste der Produkte des Unternehmens