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

import conditional text fields (<text:hidden-text>) More...

#include <txtfldi.hxx>

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

Public Member Functions

 XMLHiddenTextImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp)
 
- Public Member Functions inherited from XMLTextFieldImportContext
 XMLTextFieldImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp, const OUString &pService)
 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 startUnknownElement (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
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 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
 

Private Member Functions

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

Private Attributes

const OUString sPropertyCondition
 
const OUString sPropertyContent
 
const OUString sPropertyIsHidden
 
OUString sCondition
 
OUString sString
 
bool bConditionOK
 
bool bStringOK
 
bool bIsHidden
 

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...
 
- Protected Member Functions inherited from XMLTextFieldImportContext
XMLTextImportHelperGetImportHelper ()
 get helper More...
 
const OUString & GetServiceName () const
 
void SetServiceName (const OUString &sStr)
 
OUString const & GetContent ()
 
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
 
- 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 XMLTextFieldImportContext
OUString sServicePrefix
 the import helper More...
 
bool bValid
 

Detailed Description

import conditional text fields (<text:hidden-text>)

Definition at line 592 of file txtfldi.hxx.

Constructor & Destructor Documentation

XMLHiddenTextImportContext::XMLHiddenTextImportContext ( SvXMLImport rImport,
XMLTextImportHelper rHlp 
)

Definition at line 1888 of file txtfldi.cxx.

Member Function Documentation

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

prepare XTextField for insertion into document

Implements XMLTextFieldImportContext.

Definition at line 1941 of file txtfldi.cxx.

References Any, bIsHidden, sCondition, sPropertyCondition, sPropertyContent, sPropertyIsHidden, and sString.

void XMLHiddenTextImportContext::ProcessAttribute ( sal_Int32  nAttrToken,
std::string_view  sAttrValue 
)
overrideprivatevirtual

Member Data Documentation

bool XMLHiddenTextImportContext::bConditionOK
private

Definition at line 601 of file txtfldi.hxx.

Referenced by ProcessAttribute().

bool XMLHiddenTextImportContext::bIsHidden
private

Definition at line 603 of file txtfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().

bool XMLHiddenTextImportContext::bStringOK
private

Definition at line 602 of file txtfldi.hxx.

Referenced by ProcessAttribute().

OUString XMLHiddenTextImportContext::sCondition
private

Definition at line 598 of file txtfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().

const OUString XMLHiddenTextImportContext::sPropertyCondition
private

Definition at line 594 of file txtfldi.hxx.

Referenced by PrepareField().

const OUString XMLHiddenTextImportContext::sPropertyContent
private

Definition at line 595 of file txtfldi.hxx.

Referenced by PrepareField().

const OUString XMLHiddenTextImportContext::sPropertyIsHidden
private

Definition at line 596 of file txtfldi.hxx.

Referenced by PrepareField().

OUString XMLHiddenTextImportContext::sString
private

Definition at line 599 of file txtfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().


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