LibreOffice Module xmloff (master) 1
|
#file More...
#include <txtvfldi.hxx>
Public Member Functions | |
XMLValueImportHelper (SvXMLImport &rImprt, XMLTextImportHelper &rHlp, bool bType, bool bStyle, bool bValue, bool bFormula) | |
should PrepareField set Formula? More... | |
void | ProcessAttribute (sal_Int32 nAttrToken, std::string_view sAttrValue) |
process formula (Prep.F.) More... | |
void | PrepareField (const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) |
prepare XTextField for insertion into document More... | |
bool | IsStringValue () const |
is value a string (rather than double)? More... | |
bool | IsFormatOK () const |
has format been read? More... | |
void | SetDefault (const OUString &sStr) |
Private Attributes | |
SvXMLImport & | rImport |
XMLTextImportHelper & | rHelper |
OUString | sValue |
double | fValue |
string value (only valid if bStringValueOK) More... | |
sal_Int32 | nFormatKey |
double value (only valid if bFloatValueOK) More... | |
OUString | sFormula |
format key (only valid of bFormatOK) More... | |
OUString | sDefault |
formula string More... | |
bool | bIsDefaultLanguage |
default (see bStringDefault/bFormulaDef.) More... | |
bool | bStringType |
format (of nFormatKey) has system language? More... | |
bool | bFormatOK |
is this a string (or a float) type? More... | |
bool | bStringValueOK |
have we read a style:data-style-name attr.? More... | |
bool | bFormulaOK |
have we read a string-value attr.? More... | |
const bool | bSetType |
have we read the formula attribute? More... | |
const bool | bSetValue |
should PrepareField set the SetExp subtype? More... | |
const bool | bSetStyle |
should PrepareField set content/value? More... | |
const bool | bSetFormula |
should PrepareField set NumberFormat? More... | |
#file
XML import of all variable related text fields plus database display field helper class: parses value-type and associated value attributes
Definition at line 32 of file txtvfldi.hxx.
XMLValueImportHelper::XMLValueImportHelper | ( | SvXMLImport & | rImprt, |
XMLTextImportHelper & | rHlp, | ||
bool | bType, | ||
bool | bStyle, | ||
bool | bValue, | ||
bool | bFormula | ||
) |
should PrepareField set Formula?
rHlp | XML Import |
bType | text import helper |
bStyle | process type (PrepareField) |
bValue | process data style (P.F.) |
bFormula | process value (Prep.Field) |
Definition at line 1054 of file txtvfldi.cxx.
|
inline |
has format been read?
Definition at line 75 of file txtvfldi.hxx.
References bFormatOK.
Referenced by XMLDatabaseDisplayImportContext::endFastElement().
|
inline |
is value a string (rather than double)?
Definition at line 72 of file txtvfldi.hxx.
References bStringType.
Referenced by XMLVarFieldImportContext::IsStringValue(), and XMLVariableDeclImportContext::XMLVariableDeclImportContext().
void XMLValueImportHelper::PrepareField | ( | const css::uno::Reference< css::beans::XPropertySet > & | xPropertySet | ) |
prepare XTextField for insertion into document
Definition at line 1203 of file txtvfldi.cxx.
References Any, bFormatOK, bFormulaOK, bIsDefaultLanguage, bSetFormula, bSetStyle, bSetType, bSetValue, bStringType, bStringValueOK, fValue, nFormatKey, sAPI_content, sAPI_number_format, sDefault, sFormula, and sValue.
Referenced by XMLDatabaseDisplayImportContext::endFastElement(), XMLVarFieldImportContext::PrepareField(), XMLTableFormulaImportContext::PrepareField(), and XMLVariableDeclImportContext::XMLVariableDeclImportContext().
void XMLValueImportHelper::ProcessAttribute | ( | sal_Int32 | nAttrToken, |
std::string_view | sAttrValue | ||
) |
process formula (Prep.F.)
process attribute values
Definition at line 1078 of file txtvfldi.cxx.
References aValueTypeMap, bFormatOK, bFormulaOK, bIsDefaultLanguage, bStringType, bStringValueOK, sax::Converter::convertBool(), sax::Converter::convertDouble(), sax::Converter::convertDuration(), SvXMLUnitConverter::convertEnum(), fValue, XMLTextImportHelper::GetDataStyleKey(), nFormatKey, OFFICE, rHelper, rImport, sFormula, STYLE, sValue, TEXT, xmloff::token::XML_BOOLEAN_VALUE, xmloff::token::XML_DATA_STYLE_NAME, xmloff::token::XML_DATE_VALUE, XML_ELEMENT, xmloff::token::XML_FORMULA, XML_NAMESPACE_OOOW, xmloff::token::XML_STRING_VALUE, xmloff::token::XML_TIME_VALUE, xmloff::token::XML_VALUE, xmloff::token::XML_VALUE_TYPE, and XMLOFF_WARN_UNKNOWN_ATTR.
Referenced by XMLVarFieldImportContext::ProcessAttribute(), XMLTableFormulaImportContext::ProcessAttribute(), XMLDatabaseDisplayImportContext::ProcessAttribute(), and XMLVariableDeclImportContext::XMLVariableDeclImportContext().
|
inline |
Definition at line 77 of file txtvfldi.hxx.
References sDefault.
Referenced by XMLVarFieldImportContext::PrepareField().
|
private |
is this a string (or a float) type?
Definition at line 45 of file txtvfldi.hxx.
Referenced by IsFormatOK(), PrepareField(), and ProcessAttribute().
|
private |
have we read a string-value attr.?
Definition at line 47 of file txtvfldi.hxx.
Referenced by PrepareField(), and ProcessAttribute().
|
private |
default (see bStringDefault/bFormulaDef.)
Definition at line 42 of file txtvfldi.hxx.
Referenced by PrepareField(), and ProcessAttribute().
|
private |
should PrepareField set NumberFormat?
Definition at line 52 of file txtvfldi.hxx.
Referenced by PrepareField().
|
private |
should PrepareField set content/value?
Definition at line 51 of file txtvfldi.hxx.
Referenced by PrepareField().
|
private |
have we read the formula attribute?
Definition at line 49 of file txtvfldi.hxx.
Referenced by PrepareField().
|
private |
should PrepareField set the SetExp subtype?
Definition at line 50 of file txtvfldi.hxx.
Referenced by PrepareField().
|
private |
format (of nFormatKey) has system language?
Definition at line 44 of file txtvfldi.hxx.
Referenced by IsStringValue(), PrepareField(), and ProcessAttribute().
|
private |
have we read a style:data-style-name attr.?
Definition at line 46 of file txtvfldi.hxx.
Referenced by PrepareField(), and ProcessAttribute().
|
private |
string value (only valid if bStringValueOK)
Definition at line 38 of file txtvfldi.hxx.
Referenced by PrepareField(), and ProcessAttribute().
|
private |
double value (only valid if bFloatValueOK)
Definition at line 39 of file txtvfldi.hxx.
Referenced by PrepareField(), and ProcessAttribute().
|
private |
Definition at line 35 of file txtvfldi.hxx.
Referenced by ProcessAttribute().
|
private |
Definition at line 34 of file txtvfldi.hxx.
Referenced by ProcessAttribute().
|
private |
formula string
Definition at line 41 of file txtvfldi.hxx.
Referenced by PrepareField(), and SetDefault().
|
private |
format key (only valid of bFormatOK)
Definition at line 40 of file txtvfldi.hxx.
Referenced by PrepareField(), and ProcessAttribute().
|
private |
Definition at line 37 of file txtvfldi.hxx.
Referenced by PrepareField(), and ProcessAttribute().