LibreOffice Module xmloff (master) 1
|
import bibliography info fields (<text:bibliography-mark>) More...
#include <txtfldi.hxx>
Public Member Functions | |
XMLBibliographyFieldImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp) | |
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 |
Private Member Functions | |
virtual void SAL_CALL | startFastElement (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override |
process attributes (fill aValues) More... | |
virtual void | ProcessAttribute (sal_Int32 nAttrToken, std::string_view sAttrValue) override |
empty method; all attributes are handled in StartElement More... | |
virtual void | PrepareField (const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override |
convert aValues into sequence and set property More... | |
Static Private Member Functions | |
static const char * | MapBibliographyFieldName (sal_Int32 nElement) |
Private Attributes | |
::std::vector< css::beans::PropertyValue > | aValues |
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... | |
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 |
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 |
import bibliography info fields (<text:bibliography-mark>)
Definition at line 932 of file txtfldi.hxx.
XMLBibliographyFieldImportContext::XMLBibliographyFieldImportContext | ( | SvXMLImport & | rImport, |
XMLTextImportHelper & | rHlp | ||
) |
Definition at line 2897 of file txtfldi.cxx.
References XMLTextFieldImportContext::bValid.
|
staticprivate |
Definition at line 3011 of file txtfldi.cxx.
References pName, TOKEN_MASK, xmloff::token::XML_ADDRESS, xmloff::token::XML_ANNOTE, xmloff::token::XML_AUTHOR, xmloff::token::XML_BIBILIOGRAPHIC_TYPE, xmloff::token::XML_BIBLIOGRAPHY_TYPE, xmloff::token::XML_BOOKTITLE, xmloff::token::XML_CHAPTER, xmloff::token::XML_CUSTOM1, xmloff::token::XML_CUSTOM2, xmloff::token::XML_CUSTOM3, xmloff::token::XML_CUSTOM4, xmloff::token::XML_CUSTOM5, xmloff::token::XML_EDITION, xmloff::token::XML_EDITOR, xmloff::token::XML_HOWPUBLISHED, xmloff::token::XML_IDENTIFIER, xmloff::token::XML_INSTITUTION, xmloff::token::XML_ISBN, xmloff::token::XML_JOURNAL, xmloff::token::XML_LOCAL_URL, xmloff::token::XML_MONTH, xmloff::token::XML_NOTE, xmloff::token::XML_NUMBER, xmloff::token::XML_ORGANIZATIONS, xmloff::token::XML_PAGES, xmloff::token::XML_PUBLISHER, xmloff::token::XML_REPORT_TYPE, xmloff::token::XML_SCHOOL, xmloff::token::XML_SERIES, xmloff::token::XML_TARGET_TYPE, xmloff::token::XML_TARGET_URL, xmloff::token::XML_TITLE, xmloff::token::XML_URL, xmloff::token::XML_VOLUME, and xmloff::token::XML_YEAR.
Referenced by startFastElement().
|
overrideprivatevirtual |
convert aValues into sequence and set property
Implements XMLTextFieldImportContext.
Definition at line 2995 of file txtfldi.cxx.
|
overrideprivatevirtual |
empty method; all attributes are handled in StartElement
Implements XMLTextFieldImportContext.
Definition at line 2986 of file txtfldi.cxx.
|
overrideprivatevirtual |
process attributes (fill aValues)
Reimplemented from XMLTextFieldImportContext.
Definition at line 2937 of file txtfldi.cxx.
References aBibliographyDataTypeMap, Any, aValues, sax_fastparser::castToFastAttributeList(), SvXMLUnitConverter::convertEnum(), SvXMLImportContext::GetImport(), IsTokenInNamespace(), MapBibliographyFieldName(), nToken, TOKEN_MASK, xmloff::token::XML_BIBILIOGRAPHIC_TYPE, xmloff::token::XML_BIBLIOGRAPHY_TYPE, xmloff::token::XML_LOCAL_URL, XML_NAMESPACE_LO_EXT, XML_NAMESPACE_TEXT, xmloff::token::XML_TARGET_URL, and xmloff::token::XML_URL.
|
private |
Definition at line 934 of file txtfldi.hxx.
Referenced by PrepareField(), and startFastElement().