28#include <com/sun/star/beans/XPropertySet.hpp>
65 std::string_view sAttrValue );
69 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet);
139 const OUString& pServiceName,
142 bool bFormulaDefault,
156 std::string_view sAttrValue )
override;
160 const css::uno::Reference<
161 css::beans::XPropertySet> & xPropertySet)
override;
183 const css::uno::Reference<
184 css::beans::XPropertySet> & xPropertySet)
override;
199 const css::uno::Reference<
200 css::beans::XPropertySet> & xPropertySet)
override;
214 const css::uno::Reference<
215 css::beans::XPropertySet> & xPropertySet)
override;
234 const OUString& pServiceName,
239 bool bFormulaDefault,
254 virtual void SAL_CALL
endFastElement(sal_Int32 nElement)
override;
259 css::beans::XPropertySet> & xMaster);
275 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
293 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
321 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
345 std::string_view sAttrValue )
override;
349 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
371 const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList )
override;
387 const css::uno::Reference< css::xml::sax::XFastAttributeList> & xAttrList,
391 static bool FindFieldMaster(css::uno::Reference<css::beans::XPropertySet> & xMaster,
394 const OUString& sVarName,
416 std::string_view sAttrValue )
override;
420 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
446 std::string_view sAttrValue )
override;
449 virtual void SAL_CALL
endFastElement(sal_Int32 nElement)
override;
This class deliberately does not support XWeak, to improve performance when loading large documents.
import database display fields (<text:database-display>)
XMLValueImportHelper aValueHelper
XMLDatabaseDisplayImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
create, prepare and insert database field master and database field
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
text import helper
superclass for database fields: handle database and table names
import expression fields (<text:expression>)
XMLExpressionFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
Text import helper.
sequence fields (<text:sequence>)
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
Text import helper.
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
XMLSequenceFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
upperclass for variable/user-set, var/user-input, and sequence fields inds field master of appropriat...
bool FindFieldMaster(css::uno::Reference< css::beans::XPropertySet > &xMaster)
find appropriate field master
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
see XMLTextFieldImportContext
XMLSetVarFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, const OUString &pServiceName, VarType eVarType, bool bFormula, bool bFormulaDefault, bool bDescription, bool bHelp, bool bHint, bool bVisible, bool bDisplayFormula, bool bType, bool bStyle, bool bValue, bool bPresentation)
import table formula fields (deprecated; for Writer 2.0 compatibility)
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
text import helper
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
XMLTableFormulaImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
XMLValueImportHelper aValueHelper
abstract class for text field import
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
Text import helper.
XMLTextInputFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
user fields (<text:user-field-get>)
XMLUserFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
user input fields (<text:user-field-input>)
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
Text import helper.
XMLUserFieldInputImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet)
prepare XTextField for insertion into document
const bool bSetType
have we read the formula attribute?
bool bFormatOK
is this a string (or a float) type?
bool bFormulaOK
have we read a string-value attr.?
bool IsFormatOK() const
has format been read?
bool bIsDefaultLanguage
default (see bStringDefault/bFormulaDef.)
OUString sFormula
format key (only valid of bFormatOK)
bool bStringType
format (of nFormatKey) has system language?
OUString sDefault
formula string
XMLValueImportHelper(SvXMLImport &rImprt, XMLTextImportHelper &rHlp, bool bType, bool bStyle, bool bValue, bool bFormula)
should PrepareField set Formula?
const bool bSetStyle
should PrepareField set content/value?
sal_Int32 nFormatKey
double value (only valid if bFloatValueOK)
XMLTextImportHelper & rHelper
const bool bSetFormula
should PrepareField set NumberFormat?
void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue)
process formula (Prep.F.)
bool IsStringValue() const
is value a string (rather than double)?
double fValue
string value (only valid if bStringValueOK)
bool bStringValueOK
have we read a style:data-style-name attr.?
void SetDefault(const OUString &sStr)
const bool bSetValue
should PrepareField set the SetExp subtype?
abstract parent class for all variable related fields
XMLVarFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, const OUString &pServiceName, bool bFormula, bool bFormulaDefault, bool bDescription, bool bHelp, bool bHint, bool bVisible, bool bDisplayFormula, bool bType, bool bStyle, bool bValue, bool bPresentation)
set presentation frm elem. content?
const OUString & GetName() const
OUString sFormula
name attribute
bool bDisplayOK
sHint was set
OUString sHelp
description
bool bSetDisplayFormula
set IsVisible
bool bSetDescription
use content as default for formula
bool bDisplayFormula
value, value-type, and style
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
set presentation from elem. content
bool bSetHelp
set sDescription with Hint-property
XMLValueImportHelper aValueHelper
hint
OUString sDescription
formula attribute
bool bHintOK
sHelp was set
bool bDescriptionOK
sFormula was set
bool bSetPresentation
set DisplayFormula (sub type???)
bool bFormulaOK
hide field?
bool bDisplayNone
display formula?(rather than value)
bool bSetFormulaDefault
set Formula property
bool bSetFormula
sDisplayFormula/-None were set
bool IsStringValue() const
bool bHelpOK
sDescription was set
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
variable field declarations (variable-decl, user-field-decl, sequence-decl)
static bool FindFieldMaster(css::uno::Reference< css::beans::XPropertySet > &xMaster, SvXMLImport &rImport, XMLTextImportHelper &rHelper, const OUString &sVarName, enum VarType eVarType)
variable type
XMLVariableDeclImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, enum VarType eVarType)
variable declaration container for all variable fields (variable-decls, user-field-decls,...
enum VarType eVarDeclsContextType
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
variable type
XMLVariableDeclsImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, enum VarType eVarType)
XMLTextImportHelper & rImportHelper
import variable get fields (<text:variable-get>)
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
Text import helper.
XMLVariableGetFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
variable input fields (<text:variable-input>)
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
Text import helper.
XMLVariableInputFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
import variable set fields (<text:variable-set>)
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
Text import helper.
XMLVariableSetFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
VarType
variable type (for XMLSetVarFieldImportContext)