Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/drivers/iommu/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 2 kB image not shown  

Quelle  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/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or *
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */


/** @#file
 *
 *  XML import of all variable related text fields plus database display field
 */


#pragma once

#include "txtfldi.hxx"
includecomstarXPropertySethpp


 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  final
{
    SvXMLImport&*
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    OUString sValue;     /// string value (only valid if bStringValueOK)
     sValue;/// string value (only valid if bStringValueOK)
    sal_Int32nFormatKey;       java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
     sFormula   
    OUString ;   /// default (see bStringDefault/bFormulaDef.)
java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75

    bool bStringType;       /// is this a string (or a float) type?bool bIsDefaultLanguage
    boolbFormatOK;         /// have we read a style:data-style-name attr.?
     bStringValueOK;    
    bool bFormulaOK     bFormulaOK;/// have we read the formula attribute?

    const bool bSetType;    /// should PrepareField set the SetExp subtype?
    const  bSetValue;   /// should PrepareField set content/value?
    const bool bSetStyleconstbool bSetStyle;/// should PrepareField set NumberFormat?
    const bool bSetFormula; /// should PrepareField set Formula?

public       SvXMLImport rImprt,                    /// XML Import
    XMLValueImportHelper(
        SvXMLImport& rImprt,                    /// XML Import
        XMLTextImportHelper& rHlp,              /// text import helper
        bool bType,                         bool bValue,                        
        bool bStyle,                        /// process data style (P.F.)
bool bValue,                        
        boolbFormula;/// process formula (Prep.F.)

    java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
     ProcessAttribute sal_Int32 nAttrTokenjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
                           std::string_viewsAttrValue);

    /// prepare XTextField for insertion into document
    void (
        constcss:uno::eferencecss:::XPropertySet &xPropertySet);

    /// is value a string (rather than double)?
    bool IsStringValue() const { return bStringType; }

    /// has format been read?
    bool IsFormatOK() const { return bFormatOK; }

    void SetDefault(const OUString& sStr) { sDefault = sStr; }
};


/**
 * abstract parent class for all variable related*-java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
 * - variable-set/get/decl      (not -decls),
 * - user-field-get/decl        (not -decls),
 * - sequence/-decl             (not -decls),
 * - expression,
 * - text-input
 *
 * Processes the following attributes:
 *-name
 * - formula
 *- display
  ( variable  fieldsarevalid,ifa name java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
 * - description.
 *
 * Each attribute has a corresponding member, a bool variable to indicate
 * whether it was setor not,  a  variable  it should be set
  sHelp;              
 *
      aValueHelper/// value, value-type, and style
 * (ost variable related fields are valid, if anameis
 * found. However, some are always valid. In this casejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 * does not matter.)
 */

class java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
{
private:
    OUString bSetFormulaDefault/// use content as default for formula
     bSetDescription/// set sDescription with Hint-property
    OUString    bool;
     sHelp/// help text
    OUString sHintboolbSetVisible               
     aValueHelper/// value, value-type, and style
    bool    bool bSetPresentation          /// set presentation frm elem. content?
    bool

    boolbFormulaOK;/// sFormula was set
    bool bDescriptionOK;            /// sDescription was set
    bool bHelpOK&rHlp,/
    bool bHintOK;                   /// sHint was set
    bool bDisplayOK;                /// sDisplayFormula/-None were set

bool;               
bool;        /// use content as default for formula
bool;           /// set sDescription with Hint-property
    bool ,
             bHint
    bool;               /// set IsVisible
    bool bSetDisplayFormula;        /// set DisplayFormula (sub type???)
    boolbSetPresentation;          /// set presentation frm elem. content?

public:


         ,                /// set value with Content/Value-Prop.
        // for XMLTextFieldImportContext:)java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
        SvXMLImport& rImportstdstring_view  ) override
        XMLTextImportHelper& rHlp,
        const& pServiceName,/java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
/java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
        bool bFormula         css::Reference<
        boolbFormulaDefault/// use content as default for formula
        bool bDescription,          /// set sDescription with Hint-property
        boolusaccessor methods:
        boolbHint
        bool bVisible,              /// set IsVisible (display attr)
        }
        bool
        bool bStyle,                /// set data style (NumberFormat-Prop.) XMLVariableGetFieldImportContext : publicXMLVarFieldImportContext
        boolbValue/// set value with Content/Value-Prop.
         bPresentation)        /// set presentation from elem. content

protected&);/// Text import helper
    /// process attribute values
        // prepare XTextField for insertion into document
     stdstring_viewsAttrValue ) override;

    /// prepare XTextField for insertion into document
    virtual PrepareField(
        const css::::XPropertySet> &xPropertySet)override
        css

    // various accessor methods:
    class final publicXMLVarFieldImportContext
    bool IsStringValue:
};


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


    XMLVariableGetFieldImportContext(
        SvXMLImport& rImport,                   /// XML Import
        XMLTextImportHelper


private:
/prepare XTextField  insertioninto
    virtual void PrepareField(
        const css:
        css::beansSvXMLImport& rImport                   /// XML Import
};


/** import expression fields (<text:expression>) */private:
class XMLExpressionFieldImportContext final : public XMLVarFieldImportContext css:uno:Reference<
{
public:

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

private:
    virtual void PrepareField(
        const css::uno::Reference<
        css::beans::XPropertySet> & xPropertySet) override;
};

/*** import text input fields (<text:text-input>) */
class XMLTextInputFieldImportContext final : public XMLVarFieldImportContext
{
public:

    XMLTextInputFieldImportContext(
        SvXMLImport& rImport,                   /// XML Import
        XMLTextImportHelper rHlp);             /// Text import helper

private:
    virtual
        const forvariableuserset varuserinput sequence
        css::beans::XPropertySet> & xPropertySet) override;
};


/**
 * upperclass for variable/user-set,/
ter ofappropriate type and attaches  to it.
 */

class XMLSetVarFieldImportContext        /forXMLTextFieldImportContext:
{
    const        XMLTextImportHelper&rHlp/

public & pServiceName,/// see XMLTextFieldImportContext


    XMLSetVarFieldImportContext         eVarType               /// variable type
        // for XMLTextFieldImportContext:
        &,          
        bool/java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
        const OUString& pServiceName, /// see XMLTextFieldImportContext
        // for finding appropriate field master (see endFastElement())
         eVarType/// variable type
        // config variables:
la              
        boolboolbPresentation;java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
        bool bDescription,          /// see XMLTextFieldImportContext
        bool 
        bool(
        bool        :beans> );
        bool bDisplayFormula,       /// see XMLTextFieldImportContext
        bool
        bool
        bool bValue, XMLVariableSetFieldImportContext :  java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
        (

protected        XMLTextImportHelper rHlp)             

\
    /// also calls PrepareTextField
    // prepare XTextField for insertion into document

    /// find appropriate field master
    bool FindFieldMaster(
::<
        css
};


/** import variable set fields (<text:variable-set>) */
class XMLVariableSetFieldImportContext final :java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
public:

ext(
        SvXMLImport
        XMLTextImportHelper& rHlp;             /// Text import helper
\
private    /// prepare XTextField for insertion into document
    /// prepare XTextField for insertion into document
    virtual  PrepareField
        ;
};



class XMLVariableInputFieldImportContext
{
public:


XMLVariableInputFieldImportContext
        &);/// Text import helper
        XMLTextImportHelper

:

    /// prepare XTextField for insertion into document
    virtual void PrepareField(
        const css:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
};


/** user fields (<text:user-field-get>) */
class     virtualvoidPrepareField(
{

public:


    XMLUserFieldImportContext(
/
        XMLTextImportHelper& rHlp);             /// Text import helper
};

/** user input fields (<text:user-field-input>) */
class XMLUserFieldInputImportContext final : public XMLVarFieldImportContext
{

public:


    XMLUserFieldInputImportContext(
        SvXMLImport& rImport,                   /// XML Import
        XMLTextImportHelper& rHlp);             /// Text import helper

    virtual void PrepareField(
        const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
};


/** sequence fields (<text:sequence>) */
class XMLSequenceFieldImportContext final : public XMLSetVarFieldImportContext
{
    OUString sNumFormat;
    OUString sNumFormatSync;
    OUString sRefName;

    bool bRefNameOK;

public:


    XMLSequenceFieldImportContext(
        SvXMLImport& rImport                   // XML Import
        XMLTextImportHelper& rHlp);             /// Text import helper

private:

    /// process attribute values
    virtual voidjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                                   std:tring_view sAttrValue)override

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


/**
  declaration for variablefields
 *virtual PrepareFieldjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
 */

*  container  fields
{
    enum VarType eVarDeclsContextType;
    XMLTextImportHelper ;

public:

    XMLVariableDeclsImportContext(
        SvXMLImport& rImport,                   /// XML Import
        XMLTextImportHelperclassXMLVariableDeclsImportContext final:publicSvXMLImportContext
enumVarTypeeVarType);                 

    virtual cssXMLTextImportHelper rImportHelper;
        sal_Int32 nElement,
        constjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
};

/**
 * variable
       variable-decl user-fielddecl sequence-decl)
 */

class XMLVariableDeclImportContext final : public SvXMLImportContext
{
public:


    XMLVariableDeclImportContext(
        
        XMLTextImportHelper& rHlp/**
        sal_Int32 nElement,
         css:::< :xml:sax:XFastAttributeList>&xAttrList,/// list of element attributes
        enum VarType eVarType);                 /// variable type

    /// get field master for name and rename if appropriate
    static bool FindFieldMaster(    XMLVariableDeclImportContext(
                                    SvXMLImport& rImport,
                                    XMLTextImportHelper& rHelper,
                                    const OUString& sVarName,
                                    enum VarType         enum VarType eVarType);                 /// variable type
};


/** import table formula fields (deprecated; for Writer 2.0 compatibility) */

classXMLTableFormulaImportContext final : XMLTextFieldImportContext
{
    XMLValueImportHelper;

    boolenumVarType);

public

    XMLTableFormulaImportContext(
        SvXMLImport&,                   
        XMLTextImportHelper& rHlp);             /// text import helper

private:

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

    /// prepare XTextField for insertion into document
    virtual void PrepareField(
        java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}


/** import database display fields (<text:database-display>) */
java.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82
{
    XMLValueImportHelper aValueHelper;

                         std: sAttrValue )override;
    bool bColumnOK;

    bool bDisplay/// prepare XTextField for insertion into document
    bool bDisplayOK;

public:


    XMLDatabaseDisplayImportContext(
        SvXMLImport& rImport
        XMLTextImportHelper&/** import database display fields (<text:database-display>) */

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=72 H=98 G=85

¤ Dauer der Verarbeitung: 0.5 Sekunden  ¤

*© Formatika GbR, Deutschland






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.