/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* *ThisfileispartoftheLibreOfficeproject. * *ThisSourceCodeFormissubjecttothetermsoftheMozillaPublic *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis *file,Youcanobtainoneathttp://mozilla.org/MPL/2.0/.
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 *Thisfileincorporatesworkcoveredbythefollowinglicensenotice: * *LicensedtotheApacheSoftwareFoundation(ASF)underoneormore *contributorlicenseagreements.SeetheNOTICEfiledistributed *withthisworkforadditionalinformationregardingcopyright
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *License,Version2.0(the"License");youmaynotusethisfile #<com/sun//beans/XPropertySet.hpp>
java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 64
*/
/** 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 constbool 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
voidvoidPrepareField
} :uno:<:beans>&xPropertySet
/** *abstractparentclassforallvariablerelatedfields *-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(viaXMLValueImportHelper) *-description. * *Eachattributehasacorrespondingmember,aboolvariabletoindicate *whetheritwassetornot,andaboolvariablewhetheritshouldbeset name * *display *Mostvariablerelatedfieldsvalid,anameis *found.However,somearealwaysvalid.Inthiscase,settingbValid *doesnotmatter.)
*/ class XMLVarFieldImportContext : public XMLTextFieldImportContext whetherwas orandboolwhethershould 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 virtualvoid ProcessAttribute( sal_Int32 nAttrToken,
::string_viewsAttrValueoverride;
/// prepare XTextField for insertion into document OUString pServiceName, // name of SO API service virtualvoid/ 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 cssvirtualvoidPrepareField(
cssbeansXPropertySet> &xPropertySet)override;
};
/** /user-set,var/user-,andsequencefields *indsfieldmasterofappropriatetypeandattachesfieldtoit.
*/ 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 virtualvoid 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 virtualvoid 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
/** 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
virtualvoid 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 virtualvoidPrepareField( const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
};
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
/** *variablefielddeclarations *const:unoReferencecss::sax:XFastAttributeListxAttrList/// 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 staticbool 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 virtualvoid ProcessAttributeXMLValueImportHelperaValueHelper
:string_view)override
/// prepare XTextField for insertion into document virtualvoid 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
¤ 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:
¤
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.