LibreOffice Module xmloff (master) 1
Public Member Functions | Private Attributes | List of all members
XMLValueImportHelper Class Referencefinal

#file More...

#include <txtvfldi.hxx>

Collaboration diagram for XMLValueImportHelper:
[legend]

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
 
XMLTextImportHelperrHelper
 
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...
 

Detailed Description

#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.

Constructor & Destructor Documentation

◆ XMLValueImportHelper()

XMLValueImportHelper::XMLValueImportHelper ( SvXMLImport &  rImprt,
XMLTextImportHelper rHlp,
bool  bType,
bool  bStyle,
bool  bValue,
bool  bFormula 
)

should PrepareField set Formula?

Parameters
rHlpXML Import
bTypetext import helper
bStyleprocess type (PrepareField)
bValueprocess data style (P.F.)
bFormulaprocess value (Prep.Field)

Definition at line 1054 of file txtvfldi.cxx.

Member Function Documentation

◆ IsFormatOK()

bool XMLValueImportHelper::IsFormatOK ( ) const
inline

has format been read?

Definition at line 75 of file txtvfldi.hxx.

References bFormatOK.

Referenced by XMLDatabaseDisplayImportContext::endFastElement().

◆ IsStringValue()

bool XMLValueImportHelper::IsStringValue ( ) const
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().

◆ PrepareField()

void XMLValueImportHelper::PrepareField ( const css::uno::Reference< css::beans::XPropertySet > &  xPropertySet)

◆ ProcessAttribute()

void XMLValueImportHelper::ProcessAttribute ( sal_Int32  nAttrToken,
std::string_view  sAttrValue 
)

◆ SetDefault()

void XMLValueImportHelper::SetDefault ( const OUString &  sStr)
inline

Definition at line 77 of file txtvfldi.hxx.

References sDefault.

Referenced by XMLVarFieldImportContext::PrepareField().

Member Data Documentation

◆ bFormatOK

bool XMLValueImportHelper::bFormatOK
private

is this a string (or a float) type?

Definition at line 45 of file txtvfldi.hxx.

Referenced by IsFormatOK(), PrepareField(), and ProcessAttribute().

◆ bFormulaOK

bool XMLValueImportHelper::bFormulaOK
private

have we read a string-value attr.?

Definition at line 47 of file txtvfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().

◆ bIsDefaultLanguage

bool XMLValueImportHelper::bIsDefaultLanguage
private

default (see bStringDefault/bFormulaDef.)

Definition at line 42 of file txtvfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().

◆ bSetFormula

const bool XMLValueImportHelper::bSetFormula
private

should PrepareField set NumberFormat?

Definition at line 52 of file txtvfldi.hxx.

Referenced by PrepareField().

◆ bSetStyle

const bool XMLValueImportHelper::bSetStyle
private

should PrepareField set content/value?

Definition at line 51 of file txtvfldi.hxx.

Referenced by PrepareField().

◆ bSetType

const bool XMLValueImportHelper::bSetType
private

have we read the formula attribute?

Definition at line 49 of file txtvfldi.hxx.

Referenced by PrepareField().

◆ bSetValue

const bool XMLValueImportHelper::bSetValue
private

should PrepareField set the SetExp subtype?

Definition at line 50 of file txtvfldi.hxx.

Referenced by PrepareField().

◆ bStringType

bool XMLValueImportHelper::bStringType
private

format (of nFormatKey) has system language?

Definition at line 44 of file txtvfldi.hxx.

Referenced by IsStringValue(), PrepareField(), and ProcessAttribute().

◆ bStringValueOK

bool XMLValueImportHelper::bStringValueOK
private

have we read a style:data-style-name attr.?

Definition at line 46 of file txtvfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().

◆ fValue

double XMLValueImportHelper::fValue
private

string value (only valid if bStringValueOK)

Definition at line 38 of file txtvfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().

◆ nFormatKey

sal_Int32 XMLValueImportHelper::nFormatKey
private

double value (only valid if bFloatValueOK)

Definition at line 39 of file txtvfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().

◆ rHelper

XMLTextImportHelper& XMLValueImportHelper::rHelper
private

Definition at line 35 of file txtvfldi.hxx.

Referenced by ProcessAttribute().

◆ rImport

SvXMLImport& XMLValueImportHelper::rImport
private

Definition at line 34 of file txtvfldi.hxx.

Referenced by ProcessAttribute().

◆ sDefault

OUString XMLValueImportHelper::sDefault
private

formula string

Definition at line 41 of file txtvfldi.hxx.

Referenced by PrepareField(), and SetDefault().

◆ sFormula

OUString XMLValueImportHelper::sFormula
private

format key (only valid of bFormatOK)

Definition at line 40 of file txtvfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().

◆ sValue

OUString XMLValueImportHelper::sValue
private

Definition at line 37 of file txtvfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().


The documentation for this class was generated from the following files: