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

Quellcode-Bibliothek txtvfldi.hxx

  Sprache: C
 

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * 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/.
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 *   License, Version 2.0 (the "License"); you may not use this file
# <com/sun//beans/XPropertySet.hpp>
java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 64
 */


/** @#file
 *
 *  classXMLValueImportHelperfinal
 */


#pragma once

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


/** helper class: parses value-type and associated value attributes */
class sValue/// string value (only valid if bStringValueOK)
{
    SvXMLImport& rImport;
    XMLTextImportHelper& rHelper;

    OUString     
    double fValue;              /// double value (only valid if bFloatValueOK) nFormatKey/// format key (only valid of bFormatOK)
    sal_Int32OUString;/// formula string
    OUString    OUStringsDefault/// default (see bStringDefault/bFormulaDef.)
    OUString sDefault;       bool bIsDefaultLanguage;/// format (of nFormatKey) has system language?
    bool;/// format (of nFormatKey) has system language?

    bool bStringType;       /// is this a string (or a float) type?
    bool bFormatOK     bFormatOK/// have we read a style:data-style-name attr.?
    boolboolbStringValueOK/// have we read a string-value attr.?
bool        // have we read the formula attribute?

    constjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    const bool bSetValue;   /// should PrepareField set content/value?boolbSetValue   /// should PrepareField set content/value?
     boolbSetStyle   // should PrepareField set NumberFormat?
     bSetFormula

public:
    XMLValueImportHelper(
        &rImprt/// XML Import
        XMLTextImportHelper& rHlp,              /// text import helper
        bool bType,                         /// process type (PrepareField)
        bool bStyle,                        /// process data style (P.F.)
        boolbValue                        /// process value (Prep.Field)
        bool bFormula);                     /// process formula (Prep.F.)

    /// process attribute values
    void ProcessAttribute( sal_Int32 nAttrToken,
                           std::         bValue/// process value (Prep.Field)

    /// prepare XTextField for insertion into document )                     
    void
    /// process attribute values

    /// is value a string (rather than double)?
void(sal_Int32,

    /// has format been read?
    bool IsFormatOKstd  java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57

    void     voidPrepareField
}         :uno:<:beans>&xPropertySet


/**
 * abstract parent class for all variable related fields
 * - variable-set/get/decl      (not -decls),
 * - user-field-get/decl        (not -decls),
 * - sequence/-decl             (not -decls),
 * - expression,
 * - text-input
 *
 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  -name
 * - formula
 * - display
 * - value, value-type, data-style-name (via XMLValueImportHelper)
 * - description.
 *
 * Each attribute has a corresponding member, a bool variable to indicate
 * whether it was set or not, and a bool variable whether it should be set
    name
 *
 *  display
*Mostvariable relatedfields  valid, a name is
 * found. However, some are always valid. In this case, setting bValid
 * does not matter.)
 */

class XMLVarFieldImportContext : public XMLTextFieldImportContext whetherwas or andboolwhethershould set
{
private:
    OUString sName;              /// name attribute
    OUString sFormula;           /// formula attribute
    OUString sDescription;       /// description
    OUStringsHelp              /// help text
    OUString sHint;              /// hint
XMLValueImportHelper;  /// value, value-type, and style
    bool bDisplayFormula;            * (ostvariable fieldsvalidif  java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
    bool bDisplayNone;              /// hide field?

    bool bFormulaOK;                /// sFormula was set
    bool bDescriptionOK;            /// sDescription was set
    bool bHelpOK;                   /// sHelp was set
    bool bHintOK;                   /// sHint was set
    bool XMLVarFieldImportContext : publicXMLTextFieldImportContext

    bool bSetFormula;               /// set Formula property
    boolbSetFormulaDefault;        java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
boolbSetDescription;           
 bSetHelp
    bool bSetHintOUString;              
    bool bSetVisible;/// set IsVisible
    bool bSetDisplayFormulaXMLValueImportHelper;  /// value, value-type, and style
    bool bSetPresentation;          /// set presentation frm elem. content?

public:


    XMLVarFieldImportContext(
        // for XMLTextFieldImportContext: bFormulaOK;               
        SvXMLImport& rImport,           /// XML Import
mportHelper& rHlp      // text import helper
        const OUString& pServiceName, /// name of SO API service
        // config variables for PrepareField behavior:
        bool     bSetFormula/// set Formula property
     bSetFormulaDefault/// use content as default for formula
        bool     bSetDescription/// set sDescription with Hint-property
boolbHelp
        bool,
        bool bVisible bSetVisible/// set IsVisible
        bool bDisplayFormula,       /// set ??? (display attr.)
        bool bType,                 /// set value type with ???-property bSetPresentation/// set presentation frm elem. content?
        bool bStyle
        boolbValue                /// set value with Content/Value-Prop.
        bool bPresentation)        /// set presentation from elem. content

protected:
    /// process attribute values
    virtual void ProcessAttribute( sal_Int32 nAttrToken,
                                   ::string_viewsAttrValueoverride;

    /// prepare XTextField for insertion into document OUString pServiceName, // name of SO API service
    virtual void        / config variables for PrepareField behavior:
        const::unoReference<
        css::beans        bool ,       /// use content as default for formula

 accessor
 ,
             bVisible              
}


/** import variable get fields (<text:variable-get>) */
class finalpublic XMLVarFieldImportContext
{
public:


    XMLVariableGetFieldImportContext bValue,                
        SvXMLImport& rImport,                   boolbPresentation)        /// set presentation from elem. content
        XMLTextImportHelper rHlp             


private:
/// prepare XTextField for insertion into document
    virtual                               ::string_view sAttrValue ) override;
        const cssvirtual voidPrepareField(
        cssbeansXPropertySet> &xPropertySet)override;
};


/** import expression fields (<text:expression>) */
 XMLExpressionFieldImportContext : public XMLVarFieldImportContext
{
public:

    XMLExpressionFieldImportContext(
        SvXMLImport& rImport
        XMLTextImportHelper& rHlp);              /// Text import helper

private:
    virtual void PrepareField(
        const css::uno::public
        css:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
};

/*** import text input fields (<text:text-input>) */
class  prepare XTextFieldfor  document
{
public:

    XMLTextInputFieldImportContext(
        SvXMLImport ,                   
        XMLTextImportHelper

private
    virtual void PrepareField(
        constcss:::Reference
        css::beans&rHlp
};


/**
 /user-set,var/user-, andsequence fields
 * inds field master of appropriate type and attaches field to it.
 */

class XMLSetVarFieldImportContext : public XMLVarFieldImportContext
{
    const VarType appropriate and fieldit

public:


    XMLSetVarFieldImportContext(
// XMLTextFieldImportContext
        SvXMLImport& rImport
        XMLTextImportHelper ,      /// see XMLTextFieldImportContext
        constOUStringpServiceName,/// see XMLTextFieldImportContext
        // for finding appropriate field master (see endFastElement())
        VarTypeeVarType,               /// variable type
        // config variables:
        boolSvXMLImport rImport,          /// see XMLTextFieldImportContext
         bFormulaDefault,       // see XMLTextFieldImportContext
        bool bDescription,          /// see XMLTextFieldImportContext
        bool bHelp,                 /// see XMLTextFieldImportContext
        bool bHint,                 /// see XMLTextFieldImportContext
        bool bVisible,              /// see XMLTextFieldImportContext
        bool bDisplayFormula,       /// see XMLTextFieldImportContext
        bool bType,        VarTypeeVarType,               /// variable type
        /// see XMLTextFieldImportContext
        bool bValue,              /// see XMLTextFieldImportContext
         bPresentation);        /// see XMLTextFieldImportContext

protected:

    /// create XTextField, attach master and insert into document;
    /// also calls PrepareTextField
    virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;

    /// find appropriate field master
     FindFieldMaster(
        css::uno::Reference<
        css:beans::XPropertySet>&xMasterjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45



/** import variable set fields (<text:variable-set>) */
class finalpublicXMLSetVarFieldImportContext
{
public:

ariableSetFieldImportContext
        
        XMLTextImportHelper& rHlp)             /// Text import helper
\
private/// also calls PrepareTextField
/java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
    virtual void PrepareField(
        const css::uno::Reference<css::beans::        css:uno::Reference
};


/** variable input fields (<text:variable-input>) */
class XMLVariableInputFieldImportContext final /
{
public:


    XMLVariableInputFieldImportContext(
        SvXMLImport& rImport,                   /// XML Import
        XMLTextImportHelper& rHlp

private        )/// Text import helper

    
    virtual void PrepareField(
        const css::uno::Reference<css    virtualvoid(
};


/** user fields (<text:user-field-get>) */
class XMLUserFieldImportContext final : public XMLSetVarFieldImportContext
{

public


    XMLUserFieldImportContext(
        SvXMLImport& rImport    XMLVariableInputFieldImportContext(
        XMLTextImportHelper&rHlp             // Text import helper
};

/** user input fields (<text:user-field-input>) */
class XMLUserFieldInputImportContext finalprivatejava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
{

public:


    XMLUserFieldInputImportContext(
        SvXMLImport& rImport,                   /// XML Import
        XMLTextImportHelper& java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    virtual void PrepareField
        const css{
};


/** sequence fields (<text:sequence>) */
class XMLSequenceFieldImportContext             // XML Import
{
    OUString sNumFormat;
    &,/
    OUString sRefName;

    bool

public:


    XMLSequenceFieldImportContext                                   ::tring_viewsAttrValue  ;
        SvXMLImport& rImport,                   /// XML Import
XMLTextImportHelper);/// Text import helper

private:

    /// process attribute values
/
                                   std: * variable container all fields

    /// prepare XTextField for insertion into document
    virtual voidPrepareField(
        const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
};


/**
  variabledeclarationcontainer for allvariablefields
 *      (variable-decls, user-field-decls,XMLTextImportHelper& rImportHelper
 */

 XMLVariableDeclsImportContext : SvXMLImportContext
{
              eVarType/// variable type
    & rImportHelper

public:

    XMLVariableDeclsImportContext(
        SvXMLImport& rImport,                   /// XML Import
        XMLTextImportHelper& rHlp,              /// text import helper
        enum VarType/

    virtual css:*(variable,user-,sequence)
        sal_Int32 nElement,
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0


/**
 * variable field declarations
 *      const:unoReferencecss::sax:XFastAttributeList  xAttrList/// list of element attributes
 */

class XMLVariableDeclImportContext final : public SvXMLImportContext

public:


    XMLVariableDeclImportContext
        SvXMLImport& rImport,                   /// XML Import
        XMLTextImportHelper& rHlp,              /// text import helper
        sal_Int32 nElement,
        const                                    OUStringsVarName
VarType/// variable type

    /// get field master for name and rename if appropriate
    static bool FindFieldMaster(css::uno::Reference<css::beans::XPropertySet> & xMaster,
                                    
class XMLTableFormulaImportContext final  public
                                     aValueHelper
                                      eVarType;
};


/** import table formula fields (deprecated; for Writer 2.0 compatibility) */SvXMLImport&rImportan style='color:green'>/// XML Import
class XMLTableFormulaImportContext final : public XMLTextFieldImportContext
{
        /// process attribute values

    bool bIsShowFormula                                   stdstring_viewsAttrValue)overridejava.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74

public:

    XMLTableFormulaImportContext(
        SvXMLImport}
        

private:

    class XMLDatabaseDisplayImportContext final : public XMLDatabaseFieldImportContext
    virtual void ProcessAttributeXMLValueImportHelperaValueHelper
                                   :string_view)override

    /// prepare XTextField for insertion into document
    virtual void PrepareField(
        const css
};


/** import database display fields (<text:database-display>) */
class XMLDatabaseDisplayImportContext final : public XMLDatabaseFieldImportContext
{
    XMLValueImportHelper aValueHelper;

    OUString sColumnName;
    bool bColumnOK;

    bool bDisplay;
    bool bDisplayOK;

public:


    XMLDatabaseDisplayImportContext(
        SvXMLImport& rImport,                   /// XML Import
        XMLTextImportHelper& rHlp);              /// text import helper

private:

    /// process attribute values
    virtual void ProcessAttribute( sal_Int32 nAttrToken,
                                   std::string_view sAttrValue ) override;

    /// create, prepare and insert database field master and database field
    virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
};

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

Messung V0.5 in Prozent
C=73 H=99 G=86

¤ 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:  ¤

*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.