LibreOffice Module xmloff (master) 1
|
superclass for database fields: handle database and table names More...
#include <txtfldi.hxx>
Public 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... | |
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 | |
XMLDatabaseFieldImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp, const OUString &pServiceName, bool bUseDisplay) | |
protected constructor: only for subclasses More... | |
Protected Member Functions inherited from XMLTextFieldImportContext | |
XMLTextImportHelper & | GetImportHelper () |
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 | |
SvXMLImport & | GetImport () |
const SvXMLImport & | GetImport () const |
Protected Attributes | |
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 |
Private Attributes | |
OUString | m_sDatabaseName |
OUString | m_sDatabaseURL |
OUString | m_sTableName |
sal_Int32 | m_nCommandType |
bool | m_bCommandTypeOK |
bool | m_bDisplay |
bool | m_bDisplayOK |
bool | m_bUseDisplay |
Additional Inherited Members | |
Static Public Member Functions inherited from XMLTextFieldImportContext | |
static XMLTextFieldImportContext * | CreateTextFieldImportContext (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... | |
superclass for database fields: handle database and table names
Definition at line 307 of file txtfldi.hxx.
|
protected |
protected constructor: only for subclasses
Definition at line 1100 of file txtfldi.cxx.
References CommandType, m_nCommandType, and TABLE.
|
overridevirtual |
handle database-location children
Reimplemented from SvXMLImportContext.
Definition at line 1164 of file txtfldi.cxx.
References sax_fastparser::castToFastAttributeList(), FORM, m_bDatabaseOK, m_bDatabaseURLOK, m_sDatabaseURL, ProcessAttribute(), xmloff::token::XML_CONNECTION_RESOURCE, XML_ELEMENT, xmloff::token::XML_HREF, xmloff::token::XML_TOKEN_INVALID, and XMLOFF_WARN_UNKNOWN_ELEMENT.
|
overridevirtual |
prepare XTextField for insertion into document
Implements XMLTextFieldImportContext.
Reimplemented in XMLDatabaseNextImportContext, XMLDatabaseSelectImportContext, and XMLDatabaseNumberImportContext.
Definition at line 1195 of file txtfldi.cxx.
References Any, gsPropertyDataBaseName(), gsPropertyDataBaseURL(), gsPropertyDataCommandType(), gsPropertyIsVisible(), gsPropertyTableName(), m_bCommandTypeOK, m_bDatabaseNameOK, m_bDatabaseURLOK, m_bDisplay, m_bDisplayOK, m_bUseDisplay, m_nCommandType, m_sDatabaseName, m_sDatabaseURL, and m_sTableName.
Referenced by XMLDatabaseDisplayImportContext::endFastElement(), XMLDatabaseNextImportContext::PrepareField(), and XMLDatabaseNumberImportContext::PrepareField().
|
overridevirtual |
process attribute values
Implements XMLTextFieldImportContext.
Reimplemented in XMLDatabaseNameImportContext, XMLDatabaseNextImportContext, XMLDatabaseSelectImportContext, XMLDatabaseNumberImportContext, and XMLDatabaseDisplayImportContext.
Definition at line 1116 of file txtfldi.cxx.
References xmloff::token::IsXMLToken(), m_bCommandTypeOK, m_bDatabaseNameOK, m_bDatabaseOK, m_bDisplay, m_bDisplayOK, m_bTableOK, m_nCommandType, m_sDatabaseName, m_sTableName, TEXT, xmloff::token::XML_COMMAND, xmloff::token::XML_DATABASE_NAME, xmloff::token::XML_DISPLAY, XML_ELEMENT, xmloff::token::XML_NONE, xmloff::token::XML_QUERY, xmloff::token::XML_TABLE, xmloff::token::XML_TABLE_NAME, xmloff::token::XML_TABLE_TYPE, xmloff::token::XML_VALUE, and XMLOFF_WARN_UNKNOWN_ATTR.
Referenced by createFastChildContext(), XMLDatabaseNameImportContext::ProcessAttribute(), XMLDatabaseNextImportContext::ProcessAttribute(), XMLDatabaseNumberImportContext::ProcessAttribute(), and XMLDatabaseDisplayImportContext::ProcessAttribute().
|
private |
Definition at line 314 of file txtfldi.hxx.
Referenced by PrepareField(), and ProcessAttribute().
|
protected |
Definition at line 322 of file txtfldi.hxx.
Referenced by PrepareField(), and ProcessAttribute().
|
protected |
Definition at line 321 of file txtfldi.hxx.
Referenced by createFastChildContext(), ProcessAttribute(), XMLDatabaseNameImportContext::ProcessAttribute(), XMLDatabaseNextImportContext::ProcessAttribute(), XMLDatabaseSelectImportContext::ProcessAttribute(), XMLDatabaseNumberImportContext::ProcessAttribute(), and XMLDatabaseDisplayImportContext::ProcessAttribute().
|
protected |
Definition at line 323 of file txtfldi.hxx.
Referenced by createFastChildContext(), and PrepareField().
|
private |
Definition at line 316 of file txtfldi.hxx.
Referenced by PrepareField(), and ProcessAttribute().
|
private |
Definition at line 317 of file txtfldi.hxx.
Referenced by PrepareField(), and ProcessAttribute().
|
protected |
Definition at line 324 of file txtfldi.hxx.
Referenced by ProcessAttribute(), XMLDatabaseNameImportContext::ProcessAttribute(), XMLDatabaseNextImportContext::ProcessAttribute(), XMLDatabaseSelectImportContext::ProcessAttribute(), XMLDatabaseNumberImportContext::ProcessAttribute(), and XMLDatabaseDisplayImportContext::ProcessAttribute().
|
private |
Definition at line 318 of file txtfldi.hxx.
Referenced by PrepareField().
|
private |
Definition at line 313 of file txtfldi.hxx.
Referenced by PrepareField(), and ProcessAttribute().
|
private |
Definition at line 309 of file txtfldi.hxx.
Referenced by PrepareField(), and ProcessAttribute().
|
private |
Definition at line 310 of file txtfldi.hxx.
Referenced by createFastChildContext(), and PrepareField().
|
private |
Definition at line 311 of file txtfldi.hxx.
Referenced by PrepareField(), and ProcessAttribute().