XMLTextFieldImportContext Class Reference

abstract class for text field import More...

#include <txtfldi.hxx>

Inheritance diagram for XMLTextFieldImportContext:

Inheritance graph
[legend]
Collaboration diagram for XMLTextFieldImportContext:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 TYPEINFO ()
 ist dieses Feld gültig?
 XMLTextFieldImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp, const sal_Char *pService, sal_uInt16 nPrfx, const ::rtl::OUString &rLocalName)
virtual ~XMLTextFieldImportContext ()
 element name w/o prefix
virtual void Characters (const ::rtl::OUString &sContent)
 process character data: will be collected in member sContentBuffer
virtual void StartElement (const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > &xAttrList)
 parses attributes and calls ProcessAttribute
virtual void EndElement ()
 create XTextField and insert into document; calls PrepareTextField

Static Public Member Functions

static XMLTextFieldImportContextCreateTextFieldImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrefix, const ::rtl::OUString &rName, sal_uInt16 nToken)
 create the appropriate field context from (for use in paragraph import)

Protected Member Functions

XMLTextImportHelperGetImportHelper ()
 get helper
inline::rtl::OUString GetServiceName ()
void SetServiceName (::rtl::OUString sStr)
::rtl::OUString GetContent ()
virtual void ProcessAttribute (sal_uInt16 nAttrToken, const ::rtl::OUString &sAttrValue)=0
 process attribute values
virtual void PrepareField (const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > &xPropertySet)=0
 prepare XTextField for insertion into document
sal_Bool CreateField (::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > &xField, const ::rtl::OUString &sServiceName)
 create field from ServiceName
void ForceUpdate (const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > &rPropertySet)
 force an update of the field's value call update on optional XUptadeable interface; (disable Fixed property)

Protected Attributes

::rtl::OUString sServicePrefix
 the import helper
sal_Bool bValid

Private Attributes

const ::rtl::OUString sIsFixed
::rtl::OUStringBuffer sContentBuffer
::rtl::OUString sContent
 collect character data
::rtl::OUString sServiceName
 character data after collection
XMLTextImportHelperrTextImportHelper
 service name for text field


Detailed Description

abstract class for text field import

Definition at line 135 of file txtfldi.hxx.


Constructor & Destructor Documentation

XMLTextFieldImportContext::XMLTextFieldImportContext ( SvXMLImport rImport,
XMLTextImportHelper rHlp,
const sal_Char *  pService,
sal_uInt16  nPrfx,
const ::rtl::OUString rLocalName 
)

Parameters:
rHlp  XML Import
pService  Text import helper
nPrfx  name of SO API service
rLocalName  namespace prefix

XMLTextFieldImportContext::~XMLTextFieldImportContext (  )  [virtual]

element name w/o prefix

Definition at line 329 of file txtfldi.cxx.


Member Function Documentation

XMLTextFieldImportContext::TYPEINFO (  ) 

ist dieses Feld gültig?

Reimplemented from SvXMLImportContext.

Reimplemented in XMLSenderFieldImportContext, XMLAuthorFieldImportContext, XMLPlaceholderFieldImportContext, XMLTimeFieldImportContext, XMLDateFieldImportContext, XMLPageContinuationImportContext, XMLPageNumberImportContext, XMLDatabaseFieldImportContext, XMLDatabaseNameImportContext, XMLDatabaseNextImportContext, XMLDatabaseSelectImportContext, XMLDatabaseNumberImportContext, XMLSimpleDocInfoImportContext, XMLDateTimeDocInfoImportContext, XMLRevisionDocInfoImportContext, XMLUserDocInfoImportContext, XMLHiddenParagraphImportContext, XMLConditionalTextImportContext, XMLHiddenTextImportContext, XMLFileNameImportContext, XMLTemplateNameImportContext, XMLChapterImportContext, XMLCountFieldImportContext, XMLPageVarGetFieldImportContext, XMLPageVarSetFieldImportContext, XMLMacroFieldImportContext, XMLReferenceFieldImportContext, XMLDdeFieldImportContext, XMLSheetNameImportContext, XMLUrlFieldImportContext, XMLBibliographyFieldImportContext, XMLAnnotationImportContext, XMLScriptImportContext, XMLMeasureFieldImportContext, XMLDropDownFieldImportContext, XMLHeaderFieldImportContext, XMLFooterFieldImportContext, XMLDateTimeFieldImportContext, XMLCustomPropertyFieldImportContext, XMLVarFieldImportContext, XMLVariableGetFieldImportContext, XMLExpressionFieldImportContext, XMLTextInputFieldImportContext, XMLSetVarFieldImportContext, XMLVariableSetFieldImportContext, XMLVariableInputFieldImportContext, XMLUserFieldImportContext, XMLUserFieldInputImportContext, XMLSequenceFieldImportContext, XMLTableFormulaImportContext, and XMLDatabaseDisplayImportContext.

virtual void XMLTextFieldImportContext::Characters ( const ::rtl::OUString sContent  )  [virtual]

process character data: will be collected in member sContentBuffer

Reimplemented from SvXMLImportContext.

virtual void XMLTextFieldImportContext::StartElement ( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > &  xAttrList  )  [virtual]

parses attributes and calls ProcessAttribute

Reimplemented from SvXMLImportContext.

Reimplemented in XMLSenderFieldImportContext, XMLAuthorFieldImportContext, XMLReferenceFieldImportContext, and XMLBibliographyFieldImportContext.

void XMLTextFieldImportContext::EndElement (  )  [virtual]

static XMLTextFieldImportContext* XMLTextFieldImportContext::CreateTextFieldImportContext ( SvXMLImport rImport,
XMLTextImportHelper rHlp,
sal_uInt16  nPrefix,
const ::rtl::OUString rName,
sal_uInt16  nToken 
) [static]

create the appropriate field context from (for use in paragraph import)

Referenced by XMLImpSpanContext_Impl::CreateChildContext().

XMLTextImportHelper& XMLTextFieldImportContext::GetImportHelper (  )  [inline, protected]

inline ::rtl::OUString XMLTextFieldImportContext::GetServiceName (  )  [inline, protected]

void XMLTextFieldImportContext::SetServiceName ( ::rtl::OUString  sStr  )  [inline, protected]

Definition at line 191 of file txtfldi.hxx.

References sServiceName.

OUString XMLTextFieldImportContext::GetContent (  )  [protected]

virtual void XMLTextFieldImportContext::ProcessAttribute ( sal_uInt16  nAttrToken,
const ::rtl::OUString sAttrValue 
) [protected, pure virtual]

virtual void XMLTextFieldImportContext::PrepareField ( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > &  xPropertySet  )  [protected, pure virtual]

sal_Bool XMLTextFieldImportContext::CreateField ( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > &  xField,
const ::rtl::OUString sServiceName 
) [protected]

void XMLTextFieldImportContext::ForceUpdate ( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > &  rPropertySet  )  [protected]

force an update of the field's value call update on optional XUptadeable interface; (disable Fixed property)


Member Data Documentation

Definition at line 137 of file txtfldi.hxx.

::rtl::OUStringBuffer XMLTextFieldImportContext::sContentBuffer [private]

Definition at line 140 of file txtfldi.hxx.

Referenced by GetContent().

collect character data

Reimplemented in XMLScriptImportContext.

Definition at line 141 of file txtfldi.hxx.

Referenced by GetContent().

character data after collection

Definition at line 142 of file txtfldi.hxx.

Referenced by GetServiceName(), and SetServiceName().

service name for text field

Definition at line 143 of file txtfldi.hxx.

Referenced by EndElement(), and GetImportHelper().

sal_Bool XMLTextFieldImportContext::bValid [protected]


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

Generated on Thu Apr 29 14:47:14 2010 for ooo-build Module xmloff (ooo/OOO320_m15) by  doxygen 1.5.6