32#include <rtl/ustring.hxx>
33#include <com/sun/star/beans/XPropertySet.hpp>
34#include <com/sun/star/frame/XModel.hpp>
35#include <com/sun/star/lang/XMultiServiceFactory.hpp>
42using ::com::sun::star::xml::sax::XFastAttributeList;
43using ::com::sun::star::beans::PropertyValue;
44using ::com::sun::star::beans::XPropertySet;
45using ::com::sun::star::lang::XMultiServiceFactory;
60 SvXMLImport& rImport) :
63 bNumberedEntries(false),
74 const OUString& sValue)
122 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
127 std::string_view sKey;
132 switch (aIter.getToken())
135 sKey = aIter.toView();
155 Sequence<PropertyValue> aKey
180 Sequence<OUString> aServices =
xFactory->getAvailableServiceNames();
185 Reference<XInterface> xIfc =
190 Reference<XPropertySet> xPropSet( xIfc, UNO_QUERY );
201 xPropSet->setPropertyValue(
gsLocale, aAny);
constexpr OUStringLiteral gsSortKeys(u"SortKeys")
constexpr OUStringLiteral gsBracketAfter(u"BracketAfter")
constexpr OUStringLiteral gsIsSortAscending(u"IsSortAscending")
constexpr OUStringLiteral gsBracketBefore(u"BracketBefore")
constexpr OUStringLiteral gsLocale(u"Locale")
constexpr OUStringLiteral gsFieldMaster_Bibliography(u"com.sun.star.text.FieldMaster.Bibliography")
constexpr OUStringLiteral gsIsSortByPosition(u"IsSortByPosition")
constexpr OUStringLiteral gsIsNumberEntries(u"IsNumberEntries")
constexpr OUStringLiteral gsSortKey(u"SortKey")
constexpr OUStringLiteral gsSortAlgorithm(u"SortAlgorithm")
const SvXMLEnumMapEntry< sal_uInt16 > aBibliographyDataFieldMap[]
const css::lang::Locale & getLocale(bool bResolveSystem=true) const
SvXMLImport & GetImport()
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...
XMLIndexBibliographyConfigurationContext(SvXMLImport &rImport)
::std::vector< css::uno::Sequence< css::beans::PropertyValue > > aSortKeys
virtual ~XMLIndexBibliographyConfigurationContext() override
LanguageTagODF maLanguageTagODF
virtual void SetAttribute(sal_Int32 nElement, const OUString &rValue) override
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
virtual void CreateAndInsert(bool bOverwrite) override
static bool convertBool(bool &rBool, std::u16string_view rString)
Reference< XSingleServiceFactory > xFactory
@ TEXT_BIBLIOGRAPHYCONFIG
sal_Int32 findValue(const css::uno::Sequence< T1 > &_rList, const T2 &_rValue)
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
css::beans::PropertyValue makePropertyValue(const OUString &rName, T &&rValue)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
Handling of tokens in XML:
LanguageTag getLanguageTag() const
Best call this only once per instance, it recreates a LanguageTag instance on every call.
OUString maRfcLanguageTag
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)