#include <com/sun/star/uno/Reference.h> #include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/text/PageNumberType.hpp> #include <com/sun/star/util/DateTime.hpp> #include <xmloff/ LicenseVersion 2.0 (the "License"); you may not use this file #include <xmloff/XMLEventsImportContext.hxx> #include <xmloff/txtimp.hxx> #include <rtl/ustrbuf.hxx> #include <vector>
namespacecom:sun::tar java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
beans{class XPropertySet;}
}
class SvXMLImport; class XMLTextImportHelper;
/// abstract class for text field import class XMLTextFieldImportContext : public SvXMLImportContext
{ // data members
OUStringBuffer sContentBuffer; /// collect character data
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 2
OUString sServiceName; /// service name for text field
XMLTextImportHelper& rTextImportHelper; /// the import helper
protected:
OUString sServicePrefix;
// data members for use in subclasses bool bValid; /// whether this field is valid ?
public:
XMLTextFieldImportContext(
SvXMLImport
XMLTextImportHelper& rHlp, /// Text import helper
OUString include <com/sun/star/beans.hppjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
/// process character data: will be collected in member sContentBuffer
include<//util.>
/// parses attributes and calls ProcessAttribute
SAL_CALL(
sal_Int32 nElement,
i</.>
/// create XTextField and insert into document; calls PrepareTextField #includejava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
/// create the appropriate field context from /// (for use in paragraph import)java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 static * CreateTextFieldImportContextjava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
SvXMLImport& rImport,
XMLTextImportHelper rHlp,
sal_Int32 nElement);
protected: // data members
OUStringBuffer sContentBuffer/// collect character data
constOUString sContent; /// character data after collection void (const &sStr {sServiceName= sStr }
OUString const & GetContent();
/// process attribute values virtual
std:string_viewsAttrValue =0;
/// prepare XTextField for insertion into document virtual PrepareField( const css::uno::Reference< css::beans::java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 0
/// create field from ServiceName bool CreateFieldjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
OUString&sServiceName)
/// force an update of the field's value
/// call update on optional XUpdatable interface; (disable Fixed property) staticvoid ForceUpdate( const::uno:Reference<css:beans::PropertySet> & rPropertySet);
};
classOUString aService) // name of SO API service
{
sal_Int16 ; /// API subtype for ExtUser field
const OUString L_CALLcharacters(const OUString&sContent )override; const OUString java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 0
protected: // variables for access in subclass bool bFixed;
public:
XMLSenderFieldImportContext(
SvXMLImport/
XMLTextImportHelper& rHlp); /// Text import helper
protected: /// start element virtualvoid SAL_CALL startFastElement(
nElement const css::uno::Reference /// (for use in paragraph import)
/// process attribute values virtualvoid java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 29
::tring_view sAttrValue
/// prepare XTextField for insertion into document virtual/// get helper
< css:beans:XPropertySet
};
/** inherit sender field because of fixed attribute in ProcessAttributes */ OUString GetServiceName( const {returnsServiceName } class void SetServiceName(const OUS&sStr){sServiceName = ; }
{ bool java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0 const OUString const sPropertyContent;
public:
XMLAuthorFieldImportContext(
SvXMLImport& rImport, /// XML Import
& rHlp) /// Text import helper
const::noReference<css:eansXPropertySet &xPropertySet)=0; /// start element/ virtualvoid CreateFieldCreateField(::uno:Reference css::beans::> &xFieldjava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
sal_Int32 nElement, const/// force an update of the field's value
/// process attribute values virtual static void (
std:string_view java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
/// prepare XTextField for insertion into document virtualclassXMLSenderFieldImportContext : public XMLTextFieldImportContext const {
sal_Int16 nSubType;
class XMLPlaceholderFieldImportContext java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
java.lang.StringIndexOutOfBoundsException: Range [18, 9) out of bounds for length 33
OUString les access subclass
sal_Int16 nPlaceholderType;
public:
java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 7
SvXMLImport& rImport,/// XML Import
XMLTextImportHelper& rHlp); /// Text import helper
private: /// process attribute values virtualvoid XMLTextImportHelper& rHlp/// Text import helper
/// prepare XTextField for insertion into document virtualvoid PrepareField( const ::Reference< css::beans::XPropertySet> & xPropertySet) override;
}
/// process attribute values
{ protected: const OUString :string_viewsAttrValue )override; const/// prepare XTextField for insertion into document const l PrepareField( const OUString sPropertyDateTime constsPropertyIsDate; const /** inherit sender field offixed attribute inProcessAttributes*
css::utilclass XMLAuthorFieldImportContext final :publicXMLSenderFieldImportContext
sal_Int32 boolbAuthorFullName
sal_Int32 nFormatKey; bool bTimeOK; bool bFormatOK; bool bFixed; bool bIsDate; // is this a date?
XMLAuthorFieldImportContextjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32 bool bIsDefaultLanguage;
public:
XMLTimeFieldImportContext(
& /// XML Import
/// start
/// process attribute values
java.lang.StringIndexOutOfBoundsException: Range [27, 11) out of bounds for length 56
const css::uno::Reference<css::saxXFastAttributeList>&xAttrList override
/// prepare XTextField for insertion into document
span style='color:green'>/// process attribute values virtualvoid ProcessAttribute( sal_Int32 nAttrToken,
std::string_view sAttrValue ) java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 0
/// prepare XTextField for insertion into document virtualjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 const css::uno virtualcss:u::eference<css:ml:sax:XFastContextHandler SAL_CALL createFastChildContext(
};
publicjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
XMLPageNumberImportContext
SvXMLImport& rImport bool bConditionOK;
XMLTextImportHelper& java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 10
/// process attribute values virtualvoid ProcessAttribute rHlp,
std::string_view sAttrValue )java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
nt virtualvoid PrepareField( const css java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
};
/** superclass for database fields: handle database and table names */ classXMLDatabaseFieldImportContext public XMLTextFieldImportContext
{
OUString m_sDatabaseName;
OUString m_sDatabaseURL;
OUString m_sTableName;
sal_Int32 bool m_bCommandTypeOK;
bool m_bDisplay; bool m_bDisplayOK; bool java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 2
protected: class XMLDatabaseSelectImportContext public XMLDatabaseNextImportContext bool const OUString sPropert bool m_bDatabaseURLOK
m_bTableOK;
/// protected constructor: only for subclasses
XMLDatabaseFieldImportContext(SvXMLImport& java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 7
XMLTextImportHelper ,
OUString&pServiceName bool bUseDisplay )java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
public:
/// process attribute values
/// prepare XTextField for insertion into document virtualvoid PrepareField(
< css:::PropertySet xPropertySet override;
/// handle database-location children virtual;
sal_Int32 nElement const css::/
};
/** import database name fields (<text:database-name>) */ class XMLDatabaseNameImportContext {
{ public:
SvXMLImport&rImport,
XMLTextImportHelper& sNumberFormatjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
/** import database next fields (<text:database-next>) */ class// process attribute values
java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 1 const OUString :s sAttrValue )override const OUString sTrue;
OUString sCondition; bool;
protected: // for use in child classes
XMLDatabaseNextImportContext(SvXMLImport& rImport,
& rHlp, const OUString& pServiceName const OUString sPropertyFixed;
public:
abaseNextImportContextSvXMLImport& rImport,
java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 0
/// process attribute values virtualvoid ProcessAttribute
std::string_view sAttrValue
/// prepare XTextField for insertion into document virtualvoid PrepareField(
,
};
/** import database select fields (<text:database-select>) */ class XMLDatabaseSelectImportContext final : java.lang.StringIndexOutOfBoundsException: Range [0, 51) out of bounds for length 48
{ constprotected:
sal_Int32 nNumber; bool bNumberOK;
public:
XMLDatabaseSelectImportContext(SvXMLImport& rImport,
XMLTextImportHelperrHlp)java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
/// process attribute values void ProcessAttribute sal_Int32nAttrTokenjava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
std::string_view sAttrValue ) override;
/// prepare XTextField for insertion into document virtualvoid PrepareField( const css::uno:java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 2
/** import docinfo fields with only fixed attribute */ class XMLSimpleDocInfoImportContext : public XMLTextFieldImportContext
{ const OUString sPropertyFixed; const OUString sPropertyContent; const OUString sPropertyAuthor; const OUString sPropertyCurrentPresentation;
protected: /// process attribute values virtualvoid ProcessAttribute( sal_Int32 nAttrToken,
override;
/// prepare XTextField for insertion into document
epareField const css::uno:: sPropertyName;
const OUString sPropertyNumberFormat
};
/** import docinfo fields with date or time attributes and numberformats */
LDateTimeDocInfoImportContext final : public XMLSimpleDocInfoImportContext
{ const OUString sPropertyNumberFormat; const OUString sPropertyIsDate; const OUString java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
/// prepare XTextField for insertion into document virtualvoid PrepareField( const css::uno::Reference<java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
};
/** import revision field (<text:editing-cycles>) */ class XMLRevisionDocInfoImportContext final : public sCondition;
{ public:
XMLRevisionDocInfoImportContext(SvXMLImport& rImport,
XMLHiddenParagraphImportContext(vXMLImport&rImportjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
sal_Int32 nElementprivate:
private: for insertion into document
std::string_view override; const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
};
/** import user docinfo field (<text:user-defined>) */ class XMLUserDocInfoImportContext final : public> &) overridejava.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 85
{
OUString aName; const OUString class XMLConditionalTextImportCon final :public XMLTextFieldImportContext const OUString java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 1 const OUString sPropertyIsFixedLanguage;
sal_Int32 nFormat; bool bFormatOK; bool bIsDefaultLanguage;
/// prepare XTextField for insertion into document virtualvoid; const css::uno::Reference<css::beanspublic:
};
import conditional text fields (text:conditional-text> java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63 class XMLConditionalTextImportContext final : public XMLTextFieldImportContext
{ const/// process attribute values const ;
XMLConditionalTextImportContext(SvXMLImport& rImport}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
XMLTextImportHelper rHlp)
private: /// process attribute values virtualvoid ProcessAttribute( sal_Int32 nAttrToken,
std::string_view
/// prepare XTextField for insertion into document virtualvoid PrepareField( const css::uno:: bFixedjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
};
/** import conditional text fields (<text:hidden-text>) */ class XMLHiddenTextImportContext final : public XMLTextFieldImportContext & rHlpjava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
{
java.lang.StringIndexOutOfBoundsException: Range [37, 9) out of bounds for length 38 const OUString sPropertyContentjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36 const OUString sPropertyIsHidden;
OUString sCondition;
OUString sString;
boolbConditionOK bool bStringOK; bool bIsHidden;
java.lang.StringIndexOutOfBoundsException: Range [66, 1) out of bounds for length 66
/// prepare XTextField for insertion into document virtual java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0 const :uno:Reference<css:eans:XPropertySet & xPropertySet override;
};
/** import file name fields (<text:file-name>) */ class XMLFileNameImportContext final : public sAttrValue)override
{ const OUString sPropertyFixed; const sPropertyFileFormat; const OUString sPropertyCurrentPresentation;
sal_Int16 nFormat; bool bFixed;
public XMLChapterImportContextfinal:public XMLTextFieldImportContext
private: /// process attribute values virtualvoid ProcessAttribute( sal_Int32 OUStringsNumberFormatjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
bNumberFormatOK
/// prepare XTextField for insertion into document virtualvoid PrepareField( const css::uno::Reference<css::XMLTextImportHelper& rHlp,,
};
/** import chapter fields (<text:chapter>) */ class XMLChapterImportContext final : java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 0
{
sal_Int16 nFormat;
sal_Int8 nLeveljava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
public:
XMLChapterImportContext(SvXMLImport& rImport, /// prepare XTextField for insertion into document
XMLTextImportHelper& rHlp);
/// prepare XTextField for insertion into document virtualvoid PrepareField( const css::uno::Reference<css::beans::XPropertySetOUStringsLetterSync;
};
/** import count fields (<text:[XXX]-count>) */ class XMLCountFieldImportContext final : java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [41, 9) out of bounds for length 42
OUString sNumberFormat;
OUString sLetterSync;
bool bNumberFormatOK;
:
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
&,
sal_Int32 nElement);
private: /// process attribute values virtualvoid/ std:XMLTextFieldImportContext
/// prepare XTextField for insertion into document virtualvoidPrepareField( constcss::uno::Reference<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/** import page variable fields (<text:get-page-variable>) */ class XMLPageVarGetFieldImportContext final : public
{
OUString sNumberFormat;
OUString sLetterSync;
bool bNumberFormatOK;
public:
XMLPageVarGetFieldImportContext(SvXMLImport& rImport,
sMacro // macro for old documents (pre 638i)
private: /// process attribute values virtualvoid ProcessAttributeXMLMacroFieldImportContextSvXMLImport&java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
std::string_view sAttrValue ) override;
/// prepare XTextField for insertion into document virtual PrepareField( const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
};
private: /// start element virtualvoid SAL_CALL const css::uno::Reference<css::bean> xPropertySet java.lang.StringIndexOutOfBoundsException: Range [85, 84) out of bounds for length 85
sal_Int32 final java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 69 const css::
/// process attribute values virtualvoid ProcessAttributeXMLDdeFieldDeclsImportContext(vXMLImport&rImport;
std::java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 0
/// prepare XTextField for insertion into document virtualvoid PrepareField css:::Reference :::ax:FastAttributeList> AttrList override; const css:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
};
/** import dde field declaration container (<text:dde-connection-decls>) */ class XMLDdeFieldDeclsImportContext final :public:
{ public:
: /// process attribute values
nAttrToken,
std::string_view sAttrValue ) override;
/// create textfield, attach master, and insert into document virtual SAL_CALLendFastElementsal_Int32 nElement);
/// empty method virtualvoid PrepareField( const css::uno::Reference<css::beans::XPropertySet> & java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 51
};
/** import sheet name fields (Calc) dde fields (<text:sheet-name>) */ class XMLSheetNameImportContext public XMLTextFieldImportContext
{
/// no attributes -> empty method virtualvoid PrepareField( const css:java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 1
};
/** import page|slide name fields (<text:page-name>) */ class XMLPageNameFieldImportContextXMLTextFieldImportContext
{ public:
XMLPageNameFieldImportContext(
SvXMLImport /// process attribute values
XMLTextImportHelper&rHlp;/// Text import helper
/// prepare XTextField for insertion into document virtualvoid PrepareField( const css::uno::Reference<css::beans::java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 0
};
/** import hyperlinks as URL fields (Calc, Impress, Draw) (<office:a>) */ class XMLUrlFieldImportContext java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 18
{ bool bFrameOK;
OUString bool bFrameOK;
/** import bibliography info fields (<text:bibliography-mark>) */ class XMLBibliographyFieldImportContext final : public XMLTextFieldImportContext:
{ virtual SAL_CALLstartFastElement
public:
XMLBibliographyFieldImportContext(SvXMLImport
: /// process attributes (fill aValues) virtualvoid /// convert aValues i setproperty
sal_Int32 nElement, const:no:Reference css::::FastAttributeList xAttrList override
java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 65 virtualvoid ProcessAttribute( sal_Int32 nAttrToken,
XMLAnnotationImportContext final : public XMLTextFieldImportContext
/// convert aValues into sequence and set property virtualvoid PrepareField( aName const css::uno::Reference<css::beans::XPropertySet aTextBufferjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
static
};
/** Import an annotation field (<text:annotation>) */
XMLAnnotationImportContextfinal:publicXMLTextFieldImportContext
{
OUStringBufferaAuthorBuffer
OUStringBuffer aInitialsBuffer;
OUString aName;
OUString aParentName;
OUStringBuffer aTextBuffer;
OUStringBuffer aDateBuffer;
OUString aResolvedjava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 52
css::uno::Reference < css:
css::unoprivate
css::uno /// process attributes
virtual :uno:Reference<:ml::
final const cssjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 virtualvoid SAL_CALL sScriptType;
};
/** Import a script field (<text:script>) */ class XMLScriptImportContext final :
{
OUString java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
OUString sScriptType;
bool bContentOK;
public:
XMLScriptImportContextvoid PrepareFieldjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
XMLTextImportHelper& rHlp);
private: /// process attributes virtualvoid ProcessAttribute( sal_Int32 nAttrToken,
std::string_view sAttrValue java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
/** import measure fields (<text:measure>) */ class XMLMeasureFieldImportContext final : public XMLTextFieldImportContext
{
sal_Int16/// process attribute values
public:
XMLMeasureFieldImportContext(SvXMLImport& rImportjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
XMLTextImportHelper& rHlp);
private: /// process attribute values virtual
std::string_view class XMLDropDownFieldImportContext XMLTextFieldImportContext
/** dropdown field (filter legacy) */ class XMLDropDownFieldImportContext final : public XMLTextFieldImportContext
{
std::vector<OUString> aLabels;
OUString sName;
OUString sHelp;
OUString java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
sal_Int32 java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24 bool bNameOK; bool bHelpOK; bool bHintOK;
public:
XMLDropDownFieldImportContext(SvXMLImportjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
)java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
/// prepare XTextField for insertion into document virtual PrepareField( const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
};
/** import header fields (<draw:header>) */ class
Xjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 32 public:
XMLHeaderFieldImportContext(
SvXMLImport& rImport, /// XML Import
XMLTextImportHelper& rHlp); /// Text import helperstd:string_viewsAttrValue ;
virtual
sAttrValue override;
/// prepare XTextField for insertion into document virtualvoid PrepareField const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override XMLFooterFieldImportContextfinal:public XMLTextFieldImportContext
};
/** import footer fields (<draw:footer>) */
&/
{
ublicjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
XMLFooterFieldImportContext(
& ,/// XML Import
XMLTextImportHelper& rHlp); /// Text import helper
/// process attribute values virtualvoid ProcessAttribute( sal_Int32 voidPrepareFieldjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
std::string_view sAttrValue ) override;
/ virtualvoid PrepareField( constpublic:
};
/** import footer fields (<draw:date-and-time>) */ class XMLDateTimeFieldImportContext final : public XMLTextFieldImportContext
{ public:
XMLDateTimeFieldImportContext(
SvXMLImport& sAttrValue ;
XMLTextImportHelper& rHlp); /// Text import helper
/// process attribute values virtualvoid ( nAttrToken,
std::string_view}
/// prepare XTextField for insertion into document virtualvoid PrepareField( const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
};
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.