29#include <com/sun/star/text/BibliographyDataField.hpp>
36using ::com::sun::star::beans::PropertyValue;
37using ::com::sun::star::uno::Reference;
38using ::com::sun::star::uno::Sequence;
45 "TokenBibliographyDataField",
47 nBibliographyInfo(BibliographyDataField::IDENTIFIER),
48 bBibliographyInfoOK(false)
76 {
XML_ISBN, BibliographyDataField::ISBN },
78 {
XML_MONTH, BibliographyDataField::MONTH },
79 {
XML_NOTE, BibliographyDataField::NOTE },
82 {
XML_PAGES, BibliographyDataField::PAGES },
87 {
XML_TITLE, BibliographyDataField::TITLE },
88 {
XML_URL, BibliographyDataField::URL },
90 {
XML_YEAR, BibliographyDataField::YEAR },
96 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
101 switch(aIter.getToken())
144 css::uno::Sequence<css::beans::PropertyValue> & rValues)
151 auto pValues = rValues.getArray();
const PropertyValue * pValues
const SvXMLEnumMapEntry< sal_uInt16 > aBibliographyDataFieldMap[]
static bool convertEnum(EnumT &rEnum, std::u16string_view rValue, const SvXMLEnumMapEntry< EnumT > *pMap)
convert string to enum using given enum map, if the enum is not found in the map, this method will re...
XMLIndexBibliographyEntryContext(SvXMLImport &rImport, XMLIndexTemplateContext &rTemplate)
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
process parameters
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
call FillPropertyValues and insert into template
virtual void FillPropertyValues(css::uno::Sequence< css::beans::PropertyValue > &rValues) override
fill property values for this template entry
sal_Int16 nBibliographyInfo
virtual ~XMLIndexBibliographyEntryContext() override
Import index entry templates.
virtual void FillPropertyValues(css::uno::Sequence< css::beans::PropertyValue > &rValues)
fill property values for this template entry
OUString m_sCharStyleName
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
call FillPropertyValues and insert into template
Import index entry templates.
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
Handling of tokens in XML:
@ XML_BIBLIOGRAPHY_DATA_FIELD
@ XML_BIBILIOGRAPHIC_TYPE
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)