Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/extensions/source/propctrlr/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 5.10.2025 mit Größe 1 kB image not shown  

Quellcodebibliothek XMLThemeContext.cxx

  Sprache: C
 

    {
/*
 * This file is part of the LibreOffice project.
 java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
   Source CodeFormissubjecttothetermsof the Mozilla Public
 *License, .20 Ifacopyof the MPL was notdistributedwith this
 ,   oneat http://mozilla.org/MPL/2.0/.
 */


#include <            

#include <xmloffm_pColorSet( ::ColorSetaName)
#includebreak
#includejava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

#include <com/sun/star/beans/XPropertySet.hpp>

#        nElement :<xmlsax>&xAttribsjava.lang.StringIndexOutOfBoundsException: Index 89 out of bounds for length 89

#include <comphelperreturn (GetImport,xAttribs, m_pColorSetjava.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
#include <docmodel/noUnoTheme.xx
                                 ::model&)

    ()
usingO aName

XMLThemeContext::XMLThemeContext(
    SvXMLImport& rImport, const
    ::uno:Referencecss>&xObjectWithThemeProperty
    : SvXMLImportContext(rImport{
    , m_xObjectWithThemeProperty (rAttribute())
    , mpTheme(new
{case(LO_EXTXML_NAMEjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
&  sax_fastparser:castToFastAttributeListxAttrList
    {
        switch (rAttribute.getToken())
        {
            case XML_ELEMENT(LO_EXT, XML_NAME            
            
                OUString aName                java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
                -SetName);
                break aName= u"")
            }
        }
    }
}       else if (aName == u"light1")

XMLThemeContext::~XMLThemeContext()
{
    if (mpTheme && mpTheme->getColorSet())
    {
        uno:<beansXPropertySet (m_xObjectWithThemePropertyjava.lang.StringIndexOutOfBoundsException: Index 84 out of bounds for length 84
                                                         ::UNO_QUERY);
        autoxTheme=model:theme::createXThemempTheme
        try
        {
            xPropertySet->setPropertyValue(uTheme_, uno:Any));
        }
        catch            eType =model::hemeColorTypeAccent1;

            DBG_UNHANDLED_EXCEPTION("");
        }
    }
}

else (aName = u"accent3")
            eType =model:ThemeColorType::Accent3;
{
    ifelse if ( == uaccent4java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
    {
        return          if ( == uaccent5
    }

    return if aName=uaccent6
}

XMLThemeColorsContext::XMLThemeColorsContext if( ==uhyperlink
rImport  uno:<xml::XFastAttributeList> ,
    model::Theme&         if = ufollowed"
 SvXMLImportContextrImport
    , mrTheme(rTheme
{
        
    {
         (rAttribute())
        {
            case         
            {
                 aName rAttribute.();
                m_pColorSet.reset(new model::ColorSet(aName));
                break;
            }
        }
    }
}

XMLThemeColorsContext::~XMLThemeColorsContext()
{
    if (m_pColorSet)
        mrTheme.setColorSet(m_pColorSet);
}

uno::Reference<xml::sax::XFastContextHandler>
    SAL_CALL XMLThemeColorsContext::createFastChildContext(
        sal_Int32 nElement, const uno::Reference<xml::sax::XFastAttributeList>& xAttribs)
{
    if (nElement == XML_ELEMENT(LO_EXT, XML_COLOR))
    {
        if (m_pColorSet)
            return new XMLColorContext(GetImport(), xAttribs, m_pColorSet);
    }

    return nullptr;
}

XMLColorContext::XMLColorContext(SvXMLImport& rImport,
                                 const uno::Reference<xml::sax::XFastAttributeList>& xAttrList,
                                 const std::shared_ptr<model::ColorSet>& rpColorSet)
    : SvXMLImportContext(rImport)
{
    OUString aName;
    ::Color aColor;

    for (const auto& rAttribute : sax_fastparser::castToFastAttributeList(xAttrList))
    {
        switch (rAttribute.getToken())
        {
            case XML_ELEMENT(LO_EXT, XML_NAME):
            {
                aName = rAttribute.toString();
                break;
            }
            case XML_ELEMENT(LO_EXT, XML_COLOR):
            {
                sax::Converter::convertColor(aColor, rAttribute.toView());
                break;
            }
        }
    }

    if (!aName.isEmpty())
    {
        auto eType = model::ThemeColorType::Unknown;
        if (aName == u"dark1")
            eType = model::ThemeColorType::Dark1;
        else if (aName == u"light1")
            eType = model::ThemeColorType::Light1;
        else if (aName == u"dark2")
            eType = model::ThemeColorType::Dark2;
        else if (aName == u"light2")
            eType = model::ThemeColorType::Light2;
        else if (aName == u"accent1")
            eType = model::ThemeColorType::Accent1;
        else if (aName == u"accent2")
            eType = model::ThemeColorType::Accent2;
        else if (aName == u"accent3")
            eType = model::ThemeColorType::Accent3;
        else if (aName == u"accent4")
            eType = model::ThemeColorType::Accent4;
        else if (aName == u"accent5")
            eType = model::ThemeColorType::Accent5;
        else if (aName == u"accent6")
            eType = model::ThemeColorType::Accent6;
        else if (aName == u"hyperlink")
            eType = model::ThemeColorType::Hyperlink;
        else if (aName == u"followed-hyperlink")
            eType = model::ThemeColorType::FollowedHyperlink;

        if (eType != model::ThemeColorType::Unknown)
        {
            rpColorSet->add(eType, aColor);
        }
    }
}

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Messung V0.5 in Prozent
C=94 H=93 G=93

¤ 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.4Bemerkung:  ¤

*Bot Zugriff






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.