LibreOffice Module xmloff (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
XMLDatabaseNextImportContext Class Reference

import database next fields (<text:database-next>) More...

#include <txtfldi.hxx>

Inheritance diagram for XMLDatabaseNextImportContext:
[legend]
Collaboration diagram for XMLDatabaseNextImportContext:
[legend]

Public Member Functions

 XMLDatabaseNextImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp)
 
virtual void ProcessAttribute (sal_Int32 nAttrToken, std::string_view sAttrValue) override
 process attribute values More...
 
virtual void PrepareField (const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
 prepare XTextField for insertion into document More...
 
- Public Member Functions inherited from XMLDatabaseFieldImportContext
virtual void ProcessAttribute (sal_Int32 nAttrToken, std::string_view sAttrValue) override
 process attribute values More...
 
virtual void PrepareField (const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
 prepare XTextField for insertion into document More...
 
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
 handle database-location children More...
 
- Public Member Functions inherited from XMLTextFieldImportContext
 XMLTextFieldImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp, OUString aService)
 whether this field is valid ? More...
 
virtual void SAL_CALL characters (const OUString &sContent) override
 name of SO API service More...
 
virtual void SAL_CALL startFastElement (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
 parses attributes and calls ProcessAttribute More...
 
virtual void SAL_CALL endFastElement (sal_Int32 nElement) override
 create XTextField and insert into document; calls PrepareTextField More...
 
- Public Member Functions inherited from SvXMLImportContext
 SvXMLImportContext (SvXMLImport &rImport)
 A contexts constructor does anything that is required if an element starts. More...
 
virtual ~SvXMLImportContext ()
 A contexts destructor does anything that is required if an element ends. More...
 
virtual void SAL_CALL startFastElement (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL startUnknownElement (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL endFastElement (sal_Int32 Element) override
 endFastElement is called before a context will be destructed, but after an elements context has been parsed. More...
 
virtual void SAL_CALL endUnknownElement (const OUString &Namespace, const OUString &Name) override
 
virtual css::uno::Reference< XFastContextHandler > SAL_CALL createFastChildContext (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createUnknownChildContext (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL characters (const OUString &aChars) override
 This method is called for all characters that are contained in the current element. More...
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) final override
 
virtual void SAL_CALL acquire () noexcept final override
 
virtual void SAL_CALL release () noexcept final override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () final override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () final override
 

Protected Member Functions

 XMLDatabaseNextImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp, const OUString &pServiceName)
 
- Protected Member Functions inherited from XMLDatabaseFieldImportContext
 XMLDatabaseFieldImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp, const OUString &pServiceName, bool bUseDisplay)
 protected constructor: only for subclasses More...
 
- Protected Member Functions inherited from XMLTextFieldImportContext
XMLTextImportHelperGetImportHelper ()
 get helper More...
 
const OUString & GetServiceName () const
 
void SetServiceName (const OUString &sStr)
 
OUString const & GetContent ()
 
virtual void ProcessAttribute (sal_Int32 nAttrToken, std::string_view sAttrValue)=0
 process attribute values More...
 
virtual void PrepareField (const css::uno::Reference< css::beans::XPropertySet > &xPropertySet)=0
 prepare XTextField for insertion into document More...
 
bool CreateField (css::uno::Reference< css::beans::XPropertySet > &xField, const OUString &sServiceName)
 create field from ServiceName More...
 
- Protected Member Functions inherited from SvXMLImportContext
SvXMLImportGetImport ()
 
const SvXMLImportGetImport () const
 

Private Attributes

const OUString sPropertyCondition
 
const OUString sTrue
 
OUString sCondition
 
bool bConditionOK
 

Additional Inherited Members

- Static Public Member Functions inherited from XMLTextFieldImportContext
static XMLTextFieldImportContextCreateTextFieldImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElement)
 create the appropriate field context from (for use in paragraph import) More...
 
- Static Protected Member Functions inherited from XMLTextFieldImportContext
static void ForceUpdate (const css::uno::Reference< css::beans::XPropertySet > &rPropertySet)
 force an update of the field's value call update on optional XUpdatable interface; (disable Fixed property) More...
 
- Protected Attributes inherited from XMLDatabaseFieldImportContext
bool m_bDatabaseOK
 
bool m_bDatabaseNameOK
 
bool m_bDatabaseURLOK
 
bool m_bTableOK
 
- Protected Attributes inherited from XMLTextFieldImportContext
OUString sServicePrefix
 the import helper More...
 
bool bValid
 

Detailed Description

import database next fields (<text:database-next>)

Definition at line 362 of file txtfldi.hxx.

Constructor & Destructor Documentation

◆ XMLDatabaseNextImportContext() [1/2]

XMLDatabaseNextImportContext::XMLDatabaseNextImportContext ( SvXMLImport rImport,
XMLTextImportHelper rHlp,
const OUString &  pServiceName 
)
protected

Definition at line 1244 of file txtfldi.cxx.

◆ XMLDatabaseNextImportContext() [2/2]

XMLDatabaseNextImportContext::XMLDatabaseNextImportContext ( SvXMLImport rImport,
XMLTextImportHelper rHlp 
)

Definition at line 1254 of file txtfldi.cxx.

Member Function Documentation

◆ PrepareField()

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

prepare XTextField for insertion into document

Reimplemented from XMLDatabaseFieldImportContext.

Reimplemented in XMLDatabaseSelectImportContext.

Definition at line 1288 of file txtfldi.cxx.

References Any, bConditionOK, XMLDatabaseFieldImportContext::PrepareField(), sCondition, sPropertyCondition, and sTrue.

Referenced by XMLDatabaseSelectImportContext::PrepareField().

◆ ProcessAttribute()

void XMLDatabaseNextImportContext::ProcessAttribute ( sal_Int32  nAttrToken,
std::string_view  sAttrValue 
)
overridevirtual

Member Data Documentation

◆ bConditionOK

bool XMLDatabaseNextImportContext::bConditionOK
private

Definition at line 367 of file txtfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().

◆ sCondition

OUString XMLDatabaseNextImportContext::sCondition
private

Definition at line 366 of file txtfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().

◆ sPropertyCondition

const OUString XMLDatabaseNextImportContext::sPropertyCondition
private

Definition at line 364 of file txtfldi.hxx.

Referenced by PrepareField().

◆ sTrue

const OUString XMLDatabaseNextImportContext::sTrue
private

Definition at line 365 of file txtfldi.hxx.

Referenced by PrepareField().


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