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_uInt16 nAttrToken, const OUString &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

SvXMLImportrImport
 
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 fieldhelper class: parses value-type and associated value attributes

Definition at line 33 of file txtvfldi.hxx.

Constructor & Destructor Documentation

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 1088 of file txtvfldi.cxx.

Member Function Documentation

bool XMLValueImportHelper::IsFormatOK ( ) const
inline

has format been read?

Definition at line 76 of file txtvfldi.hxx.

References bFormatOK.

Referenced by XMLDatabaseDisplayImportContext::EndElement().

bool XMLValueImportHelper::IsStringValue ( ) const
inline

is value a string (rather than double)?

Definition at line 73 of file txtvfldi.hxx.

References bStringType.

Referenced by XMLVarFieldImportContext::IsStringValue(), and XMLVariableDeclImportContext::XMLVariableDeclImportContext().

void XMLValueImportHelper::PrepareField ( const css::uno::Reference< css::beans::XPropertySet > &  xPropertySet)
void XMLValueImportHelper::ProcessAttribute ( sal_uInt16  nAttrToken,
const OUString &  sAttrValue 
)
void XMLValueImportHelper::SetDefault ( const OUString &  sStr)
inline

Definition at line 78 of file txtvfldi.hxx.

Referenced by XMLVarFieldImportContext::PrepareField().

Member Data Documentation

bool XMLValueImportHelper::bFormatOK
private

is this a string (or a float) type?

Definition at line 46 of file txtvfldi.hxx.

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

bool XMLValueImportHelper::bFormulaOK
private

have we read a string-value attr.?

Definition at line 48 of file txtvfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().

bool XMLValueImportHelper::bIsDefaultLanguage
private

default (see bStringDefault/bFormulaDef.)

Definition at line 43 of file txtvfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().

const bool XMLValueImportHelper::bSetFormula
private

should PrepareField set NumberFormat?

Definition at line 53 of file txtvfldi.hxx.

Referenced by PrepareField().

const bool XMLValueImportHelper::bSetStyle
private

should PrepareField set content/value?

Definition at line 52 of file txtvfldi.hxx.

Referenced by PrepareField().

const bool XMLValueImportHelper::bSetType
private

have we read the formula attribute?

Definition at line 50 of file txtvfldi.hxx.

Referenced by PrepareField().

const bool XMLValueImportHelper::bSetValue
private

should PrepareField set the SetExp subtype?

Definition at line 51 of file txtvfldi.hxx.

Referenced by PrepareField().

bool XMLValueImportHelper::bStringType
private

format (of nFormatKey) has system language?

Definition at line 45 of file txtvfldi.hxx.

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

bool XMLValueImportHelper::bStringValueOK
private

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

Definition at line 47 of file txtvfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().

double XMLValueImportHelper::fValue
private

string value (only valid if bStringValueOK)

Definition at line 39 of file txtvfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().

sal_Int32 XMLValueImportHelper::nFormatKey
private

double value (only valid if bFloatValueOK)

Definition at line 40 of file txtvfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().

XMLTextImportHelper& XMLValueImportHelper::rHelper
private

Definition at line 36 of file txtvfldi.hxx.

Referenced by ProcessAttribute().

SvXMLImport& XMLValueImportHelper::rImport
private

Definition at line 35 of file txtvfldi.hxx.

Referenced by ProcessAttribute().

OUString XMLValueImportHelper::sDefault
private

formula string

Definition at line 42 of file txtvfldi.hxx.

Referenced by PrepareField().

OUString XMLValueImportHelper::sFormula
private

format key (only valid of bFormatOK)

Definition at line 41 of file txtvfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().

OUString XMLValueImportHelper::sValue
private

Definition at line 38 of file txtvfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().


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