43#include <com/sun/star/frame/XModel.hpp>
44#include <com/sun/star/xml/sax/XAttributeList.hpp>
45#include <com/sun/star/text/UserDataPart.hpp>
46#include <com/sun/star/style/NumberingType.hpp>
47#include <com/sun/star/text/PlaceholderType.hpp>
48#include <com/sun/star/text/ReferenceFieldPart.hpp>
49#include <com/sun/star/text/ReferenceFieldSource.hpp>
50#include <com/sun/star/text/XTextContent.hpp>
51#include <com/sun/star/beans/XPropertySet.hpp>
52#include <com/sun/star/beans/XPropertySetInfo.hpp>
53#include <com/sun/star/lang/XMultiServiceFactory.hpp>
54#include <com/sun/star/text/XTextFieldsSupplier.hpp>
55#include <com/sun/star/text/XDependentTextField.hpp>
56#include <com/sun/star/text/FilenameDisplayFormat.hpp>
57#include <com/sun/star/text/ChapterFormat.hpp>
58#include <com/sun/star/text/TemplateDisplayFormat.hpp>
59#include <com/sun/star/beans/PropertyValue.hpp>
60#include <com/sun/star/text/BibliographyDataType.hpp>
61#include <com/sun/star/util/XUpdatable.hpp>
62#include <com/sun/star/sdb/CommandType.hpp>
63#include <com/sun/star/container/XIndexReplace.hpp>
67#include <rtl/ustring.hxx>
68#include <rtl/ustrbuf.hxx>
70#include <rtl/math.hxx>
72#include <osl/diagnose.h>
130, rTextImportHelper(rHlp)
138 const Reference<XFastAttributeList> & xAttrList)
161 Reference<XPropertySet> xPropSet;
168 Reference<XTextContent> xTextContent(xPropSet, UNO_QUERY);
175 catch (
const lang::IllegalArgumentException&)
193 Reference<XPropertySet> & xField,
194 const OUString& rServiceName)
202 Reference<XInterface> xIfc =
xFactory->createInstance(rServiceName);
205 Reference<XPropertySet> xTmp( xIfc, UNO_QUERY );
221 SvXMLImport& rImport,
466 const Reference<XPropertySet> & rPropertySet)
469 Reference<XUpdatable> xUpdate(rPropertySet, UNO_QUERY);
476 OSL_FAIL(
"Expected XUpdatable support!");
498 const Reference<XFastAttributeList> & xAttrList)
522 nSubType = UserDataPart::PHONE_PRIVATE;
531 nSubType = UserDataPart::PHONE_COMPANY;
559 sal_Int32 nAttrToken,
560 std::string_view sAttrValue)
578 const Reference<XPropertySet> & rPropSet)
591 if (
GetImport().GetTextImport()->IsOrganizerMode() ||
592 GetImport().GetTextImport()->IsStylesOnlyMode() )
610, bAuthorFullName(true)
620 const Reference<XFastAttributeList> & xAttrList)
642 const Reference<XPropertySet> & rPropSet)
655 if (
GetImport().GetTextImport()->IsOrganizerMode() ||
656 GetImport().GetTextImport()->IsStylesOnlyMode() )
686, eSelectPage(PageNumberType_CURRENT)
693 sal_Int32 nAttrToken, std::string_view sAttrValue )
702 && (PageNumberType_CURRENT != nTmp) )
710 sString = OUString::fromUtf8(sAttrValue);
719 const Reference<XPropertySet> & xPropertySet)
728 aAny <<= style::NumberingType::CHAR_SPECIAL;
744, eSelectPage(PageNumberType_CURRENT)
745, sNumberFormatOK(false)
751 sal_Int32 nAttrToken,
752 std::string_view sAttrValue )
782 const Reference<XPropertySet> & xPropertySet)
785 Reference<XPropertySetInfo> xPropertySetInfo(
786 xPropertySet->getPropertySetInfo());
793 nNumType= style::NumberingType::ARABIC;
799 nNumType = style::NumberingType::PAGE_DESCRIPTOR;
809 case PageNumberType_PREV:
812 case PageNumberType_CURRENT:
814 case PageNumberType_NEXT:
818 SAL_WARN(
"xmloff.text",
"unknown page number type");
846 sal_Int32 nAttrToken, std::string_view sAttrValue )
848 switch (nAttrToken) {
888 const Reference<XPropertySet> & xPropertySet) {
895 sal_Int32 nStart = 0;
896 sal_Int32
nLength = aContent.getLength();
897 if (aContent.startsWith(
"<"))
902 if (aContent.endsWith(
">"))
906 aAny <<= aContent.copy(nStart,
nLength);
932, bIsDefaultLanguage( true )
938 sal_Int32 nAttrToken, std::string_view sAttrValue )
978 nAdjust =
static_cast<sal_Int32
>(::rtl::math::approxFloor(fTmp * 60 * 24));
988 const Reference<XPropertySet> & rPropertySet)
991 Reference<XPropertySetInfo> xPropertySetInfo(
992 rPropertySet->getPropertySetInfo());
1010 if (
GetImport().GetTextImport()->IsOrganizerMode() ||
1011 GetImport().GetTextImport()->IsStylesOnlyMode() )
1057 sal_Int32 nAttrToken,
1058 std::string_view sAttrValue )
1102 const OUString& pServiceName,
bool bUseDisplay)
1105, m_bCommandTypeOK(false)
1107, m_bDisplayOK( false )
1108, m_bUseDisplay( bUseDisplay )
1109, m_bDatabaseOK(false)
1110, m_bDatabaseNameOK(false)
1111, m_bDatabaseURLOK(false)
1117 sal_Int32 nAttrToken, std::string_view sAttrValue )
1166 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
1172 switch (aIter.getToken())
1196 const Reference<XPropertySet> & xPropertySet)
1233 sal_Int32 nAttrToken, std::string_view sAttrValue )
1246 const OUString& pServiceName) :
1259, bConditionOK(false)
1264 sal_Int32 nAttrToken, std::string_view sAttrValue )
1269 sal_uInt16 nPrefix =
GetImport().GetNamespaceMap().GetKeyByAttrValueQName(
1270 OUString::fromUtf8(sAttrValue), &sTmp );
1289 const Reference<XPropertySet> & xPropertySet)
1313 sal_Int32 nAttrToken,
1314 std::string_view sAttrValue )
1335 const Reference<XPropertySet> & xPropertySet)
1349 sPropertyNumberingType(
1360 sal_Int32 nAttrToken,
1361 std::string_view sAttrValue )
1392 const Reference<XPropertySet> & xPropertySet)
1394 sal_Int16
nNumType = style::NumberingType::ARABIC;
1414 sal_Int32 nElementToken,
1415 bool bContent,
bool bAuthor)
1422, bHasAuthor(bAuthor)
1423, bHasContent(bContent)
1429 sal_Int32 nAttrToken,
1430 std::string_view sAttrValue )
1445 const Reference<XPropertySet> & rPropertySet)
1448 Reference<XPropertySetInfo> xPropertySetInfo(rPropertySet->getPropertySetInfo());
1460 if (
GetImport().GetTextImport()->IsOrganizerMode() ||
1461 GetImport().GetTextImport()->IsStylesOnlyMode() )
1486 sal_Int32 nElementToken)
1488 OUString pServiceName;
1490 switch(nElementToken)
1493 pServiceName =
"DocInfo.CreateAuthor";
1502 pServiceName =
"DocInfo.Description";
1505 pServiceName =
"DocInfo.EditTime";
1511 pServiceName =
"DocInfo.PrintAuthor";
1520 pServiceName =
"DocInfo.KeyWords";
1523 pServiceName =
"DocInfo.Subject";
1526 pServiceName =
"DocInfo.Revision";
1529 pServiceName =
"DocInfo.ChangeAuthor";
1538 pServiceName =
"DocInfo.Title";
1545 return pServiceName;
1561 const Reference<XPropertySet> & rPropertySet)
1570 if (
GetImport().GetTextImport()->IsOrganizerMode() ||
1571 GetImport().GetTextImport()->IsStylesOnlyMode() )
1598 , bHasDateTime(false)
1599 , bIsDefaultLanguage(true)
1626 OSL_FAIL(
"XMLDateTimeDocInfoImportContext needs date/time doc. fields");
1633 sal_Int32 nAttrToken,
1634 std::string_view sAttrValue )
1660 const Reference<XPropertySet> & xPropertySet)
1674 if( xPropertySet->getPropertySetInfo()->
1691 sal_Int32 nElement) :
1698 , bIsDefaultLanguage( true )
1704 sal_Int32 nAttrToken,
1705 std::string_view sAttrValue )
1725 aName = OUString::fromUtf8(sAttrValue);
1739 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
1741 if ( !
aName.isEmpty() )
1745 Reference<XPropertySetInfo> xPropertySetInfo(
1746 xPropertySet->getPropertySetInfo());
1777 sal_Int32 nAttrToken,
1778 std::string_view sAttrValue )
1783 sal_uInt16 nPrefix =
GetImport().GetNamespaceMap().GetKeyByAttrValueQName(
1784 OUString::fromUtf8(sAttrValue), &sTmp );
1806 const Reference<XPropertySet> & xPropertySet)
1824 bConditionOK(false),
1827 bCurrentValue(false)
1832 sal_Int32 nAttrToken,
1833 std::string_view sAttrValue )
1840 sal_uInt16 nPrefix =
GetImport().GetNamespaceMap().
1841 GetKeyByAttrValueQName(OUString::fromUtf8(sAttrValue), &sTmp);
1876 const Reference<XPropertySet> & xPropertySet)
1895 bConditionOK(false),
1902 sal_Int32 nAttrToken,
1903 std::string_view sAttrValue )
1910 sal_uInt16 nPrefix =
GetImport().GetNamespaceMap().
1911 GetKeyByAttrValueQName(OUString::fromUtf8(sAttrValue), &sTmp);
1923 sString = OUString::fromUtf8(sAttrValue);
1943 const Reference<XPropertySet> & xPropertySet)
1956 {
XML_PATH, FilenameDisplayFormat::PATH },
1957 {
XML_NAME, FilenameDisplayFormat::NAME },
1959 {
XML_FULL, FilenameDisplayFormat::FULL },
1968 sPropertyCurrentPresentation(
1970 nFormat(FilenameDisplayFormat::
FULL),
1977 sal_Int32 nAttrToken,
1978 std::string_view sAttrValue )
2009 const Reference<XPropertySet> & xPropertySet)
2012 Reference<XPropertySetInfo> xPropertySetInfo(
2013 xPropertySet->getPropertySetInfo());
2037 {
XML_FULL, TemplateDisplayFormat::FULL },
2038 {
XML_PATH, TemplateDisplayFormat::PATH },
2039 {
XML_NAME, TemplateDisplayFormat::NAME },
2041 {
XML_AREA, TemplateDisplayFormat::AREA },
2042 {
XML_TITLE, TemplateDisplayFormat::TITLE },
2051 nFormat(TemplateDisplayFormat::
FULL)
2057 sal_Int32 nAttrToken,
2058 std::string_view sAttrValue )
2080 const Reference<XPropertySet> & xPropertySet)
2105 nFormat(ChapterFormat::NAME_NUMBER),
2112 sal_Int32 nAttrToken,
2113 std::string_view sAttrValue )
2123 nFormat =
static_cast<sal_Int16
>(nTmp);
2131 nTmp, sAttrValue, 1,
2132 GetImport().GetTextImport()->GetChapterNumbering()->getCount()
2149 const Reference<XPropertySet> & xPropertySet)
2161 sal_Int32 nElement) :
2163 sPropertyNumberingType(
2165 bNumberFormatOK(false)
2171 sal_Int32 nAttrToken,
2172 std::string_view sAttrValue )
2189 const Reference<XPropertySet> & xPropertySet)
2194 if (!xPropertySet->getPropertySetInfo()->
2201 nNumType= style::NumberingType::ARABIC;
2207 nNumType = style::NumberingType::PAGE_DESCRIPTOR;
2214 OUString pServiceName;
2219 pServiceName =
"WordCount";
2222 pServiceName =
"ParagraphCount";
2225 pServiceName =
"TableCount";
2228 pServiceName =
"CharacterCount";
2231 pServiceName =
"GraphicObjectCount";
2234 pServiceName =
"EmbeddedObjectCount";
2237 pServiceName =
"PageCount";
2244 return pServiceName;
2254 bNumberFormatOK(false)
2260 sal_Int32 nAttrToken,
2261 std::string_view sAttrValue )
2278 const Reference<XPropertySet> & xPropertySet)
2283 nNumType= style::NumberingType::ARABIC;
2289 nNumType = style::NumberingType::PAGE_DESCRIPTOR;
2310 sal_Int32 nAttrToken,
2311 std::string_view sAttrValue )
2329 nAdjust =
static_cast<sal_Int16
>(nTmp);
2340 const Reference<XPropertySet> & xPropertySet)
2342 xPropertySet->setPropertyValue(
"On",
Any(
bActive));
2353 bDescriptionOK(false)
2359 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
2374 sal_Int32 nAttrToken,
2375 std::string_view sAttrValue )
2384 sMacro = OUString::fromUtf8(sAttrValue);
2393 const Reference<XPropertySet> & xPropertySet)
2397 xPropertySet->setPropertyValue(
sAPI_hint, aAny);
2403 OUString sLibraryName;
2404 OUString sScriptURL;
2410 Sequence<PropertyValue> aValues;
2413 for(
const auto& rValue : std::as_const(aValues) )
2415 if ( rValue.Name ==
"ScriptType" )
2419 else if ( rValue.Name ==
"Library" )
2421 rValue.Value >>= sLibraryName;
2423 else if ( rValue.Name ==
"MacroName" )
2427 if ( rValue.Name ==
"Script" )
2429 rValue.Value >>= sScriptURL;
2439 for( sal_Int32
i = 0; (
i < 3) && (
nPos > 0);
i++ )
2442 while ( (pBuf[
nPos] !=
'.') && (
nPos > 0) )
2455 xPropertySet->setPropertyValue(
"ScriptURL",
Any(sScriptURL));
2456 xPropertySet->setPropertyValue(
"MacroName",
Any(
sMacroName));
2457 xPropertySet->setPropertyValue(
"MacroLibrary",
Any(sLibraryName));
2470,
nType(ReferenceFieldPart::PAGE_DESC)
2478 {
XML_PAGE, ReferenceFieldPart::PAGE},
2480 {
XML_TEXT, ReferenceFieldPart::TEXT },
2483 {
XML_CAPTION, ReferenceFieldPart::ONLY_CAPTION },
2484 {
XML_VALUE, ReferenceFieldPart::ONLY_SEQUENCE_NUMBER },
2494 const Reference<XFastAttributeList> & xAttrList)
2500 nSource = ReferenceFieldSource::REFERENCE_MARK;
2503 nSource = ReferenceFieldSource::BOOKMARK;
2506 nSource = ReferenceFieldSource::FOOTNOTE;
2509 nSource = ReferenceFieldSource::SEQUENCE_FIELD;
2522 sal_Int32 nAttrToken,
2523 std::string_view sAttrValue )
2529 nSource = ReferenceFieldSource::ENDNOTE;
2532 sName = OUString::fromUtf8(sAttrValue);
2546 ( (
nType == ReferenceFieldPart::CATEGORY_AND_NUMBER) ||
2547 (
nType == ReferenceFieldPart::ONLY_CAPTION) ||
2548 (
nType == ReferenceFieldPart::ONLY_SEQUENCE_NUMBER) ) )
2550 nType = ReferenceFieldPart::PAGE_DESC;
2557 sLanguage = OUString::fromUtf8(sAttrValue);
2568 const Reference<XPropertySet> & xPropertySet)
2570 xPropertySet->setPropertyValue(
"ReferenceFieldPart",
Any(
nType));
2572 xPropertySet->setPropertyValue(
"ReferenceFieldSource",
Any(
nSource));
2574 xPropertySet->setPropertyValue(
"ReferenceFieldLanguage",
Any(
sLanguage));
2579 xPropertySet->setPropertyValue(
"SourceName",
Any(
sName));
2604 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
2626 const Reference<XFastAttributeList> & xAttrList)
2629 OUString sCommandApplication;
2630 OUString sCommandTopic;
2631 OUString sCommandItem;
2633 bool bUpdate =
false;
2634 bool bNameOK =
false;
2635 bool bCommandApplicationOK =
false;
2636 bool bCommandTopicOK =
false;
2637 bool bCommandItemOK =
false;
2642 switch (aIter.getToken())
2645 sName = aIter.toString();
2649 sCommandApplication = aIter.toString();
2650 bCommandApplicationOK =
true;
2653 sCommandTopic = aIter.toString();
2654 bCommandTopicOK =
true;
2657 sCommandItem = aIter.toString();
2658 bCommandItemOK =
true;
2675 if (!(bNameOK && bCommandApplicationOK && bCommandTopicOK && bCommandItemOK))
2692 Reference<XInterface> xIfc =
2696 Reference<XPropertySet> xPropSet( xIfc, UNO_QUERY );
2697 if (xPropSet.is() &&
2698 xPropSet->getPropertySetInfo()->hasPropertyByName(
2703 xPropSet->setPropertyValue(
"DDECommandType",
Any(sCommandApplication));
2705 xPropSet->setPropertyValue(
"DDECommandFile",
Any(sCommandTopic));
2707 xPropSet->setPropertyValue(
"DDECommandElement",
2710 xPropSet->setPropertyValue(
"IsAutomaticUpdate",
2738 sal_Int32 nAttrToken,
2739 std::string_view sAttrValue )
2743 sName = OUString::fromUtf8(sAttrValue);
2759 Reference<XTextFieldsSupplier> xTextFieldsSupp(
GetImport().GetModel(),
2761 Reference<container::XNameAccess> xFieldMasterNameAccess =
2762 xTextFieldsSupp->getTextFieldMasters();
2764 if (!xFieldMasterNameAccess->hasByName(sMasterName))
2767 Reference<XPropertySet> xMaster;
2768 Any aAny = xFieldMasterNameAccess->getByName(sMasterName);
2773 Reference<XPropertySet> xField;
2778 Reference<XDependentTextField> xDepTextField(xField,UNO_QUERY);
2779 xDepTextField->attachTextFieldMaster(xMaster);
2782 Reference<XTextContent> xTextContent(xField, UNO_QUERY);
2783 if (xTextContent.is())
2796 const Reference<XPropertySet> &)
2806 SvXMLImport& rImport,
2814 sal_Int32 nAttrToken,
2815 std::string_view sAttrValue)
2822 const Reference<XPropertySet> &)
2830 SvXMLImport& rImport,
2839 std::string_view sAttrValue )
2846 const css::uno::Reference<css::beans::XPropertySet> &)
2855 SvXMLImport& rImport,
2863 sal_Int32 nAttrToken,
2864 std::string_view sAttrValue )
2869 sURL =
GetImport().GetAbsoluteReference( OUString::fromUtf8(sAttrValue) );
2873 sFrame = OUString::fromUtf8(sAttrValue);
2884 const Reference<XPropertySet> & xPropertySet)
2890 xPropertySet->setPropertyValue(
"TargetFrame",
Any(
sFrame));
2893 xPropertySet->setPropertyValue(
"Representation",
Any(
GetContent()));
2898 SvXMLImport& rImport,
2909 {
XML_BOOK, BibliographyDataType::BOOK },
2917 {
XML_EMAIL, BibliographyDataType::EMAIL },
2918 {
XML_INBOOK, BibliographyDataType::INBOOK },
2922 {
XML_MANUAL, BibliographyDataType::MANUAL },
2924 {
XML_MISC, BibliographyDataType::MISC },
2929 {
XML_WWW, BibliographyDataType::WWW },
2939 const Reference<XFastAttributeList> & xAttrList)
2948 PropertyValue aValue;
2949 aValue.Name = OUString::createFromAscii(
2960 nTmp, aIter.toView(),
2963 aAny <<= static_cast<sal_Int16>(nTmp);
2964 aValue.Value = aAny;
2971 OUString aStringValue = aIter.toString();
2974 aStringValue =
GetImport().GetAbsoluteReference(aStringValue);
2976 aAny <<= aStringValue;
2977 aValue.Value = aAny;
2991 assert(
false &&
"This should not have happened.");
2996 const Reference<XPropertySet> & xPropertySet)
3000 Sequence<PropertyValue> aValueSequence(
nCount);
3001 auto aValueSequenceRange = asNonConstRange(aValueSequence);
3008 xPropertySet->setPropertyValue(
"Fields",
Any(aValueSequence));
3014 const char*
pName =
nullptr;
3019 pName =
"Identifier";
3024 pName =
"BibiliographicType";
3036 pName =
"Booktitle";
3048 pName =
"Howpublished";
3051 pName =
"Institution";
3066 pName =
"Organizations";
3072 pName =
"Publisher";
3084 pName =
"Report_Type";
3117 pName =
"TargetType";
3120 pName =
"TargetURL";
3123 assert(
false &&
"Unknown bibliography info data");
3133 SvXMLImport& rImport,
3135 sal_Int32 nElement) :
3144 GetImport().GetTextImport()->PushListContext();
3148 sal_Int32 nAttrToken,
3149 std::string_view sAttrValue )
3152 aName = OUString::fromUtf8(sAttrValue);
3154 aResolved = OUString::fromUtf8(sAttrValue);
3161 const uno::Reference< xml::sax::XFastAttributeList>& xAttrList )
3179 Any aAny =
mxField->getPropertyValue(
"TextRange" );
3180 Reference< XText > xText;
3188 mxCursor = xText->createTextCursor();
3194 return xTxtImport->CreateTextChildContext(
GetImport(), nElement, xAttrList );
3217 GetImport().GetTextImport()->ResetCursor();
3224 GetImport().GetTextImport()->PopListContext();
3231 uno::Reference< text::XTextContent > xPrevField;
3233 Reference<XTextFieldsSupplier> xTextFieldsSupplier(
GetImport().GetModel(), UNO_QUERY);
3234 uno::Reference<container::XEnumerationAccess> xFieldsAccess(xTextFieldsSupplier->getTextFields());
3235 uno::Reference<container::XEnumeration> xFields(xFieldsAccess->createEnumeration());
3236 while (xFields->hasMoreElements())
3238 uno::Reference<beans::XPropertySet> xCurrField(xFields->nextElement(), uno::UNO_QUERY);
3239 uno::Reference<beans::XPropertySetInfo>
const xInfo(
3240 xCurrField->getPropertySetInfo());
3241 if (xInfo->hasPropertyByName(
sAPI_name))
3243 OUString aFieldName;
3244 xCurrField->getPropertyValue(
sAPI_name) >>= aFieldName;
3245 if (aFieldName ==
aName)
3247 xPrevField.set( xCurrField, uno::UNO_QUERY );
3253 if ( xPrevField.is() )
3258 uno::Reference<text::XTextCursor> xCursor =
3262 xCursor->gotoRange(xPrevField->getAnchor(),
true);
3264 catch (
const uno::RuntimeException&)
3270 "XMLAnnotationImportContext::endFastElement: gotoRange() failed: ");
3273 xText->insertTextContent(xCursor, xPrevField, !xCursor->isCollapsed());
3284 Reference < XTextContent > xTextContent(
mxField, UNO_QUERY );
3291 catch (
const lang::IllegalArgumentException&)
3303 const Reference<XPropertySet> & xPropertySet )
3311 xPropertySet->setPropertyValue(
"Initials",
Any(sInitials));
3316 xPropertySet->setPropertyValue(
"Resolved",
Any(bTmp));
3318 util::DateTime aDateTime;
3341 if (!
aName.isEmpty())
3350 SvXMLImport& rImport,
3358 sal_Int32 nAttrToken,
3359 std::string_view sAttrValue )
3383 const Reference<XPropertySet> & xPropertySet)
3393 xPropertySet->setPropertyValue(
"URLContent",
Any(
bContentOK));
3403 SvXMLImport& rImport,
3411 sal_Int32 nAttrToken,
3412 std::string_view sAttrValue )
3436 const Reference<XPropertySet> & xPropertySet)
3438 xPropertySet->setPropertyValue(
"Kind",
Any(
mnKind));
3446 SvXMLImport& rImport,
3458 const Reference<XFastAttributeList>& xAttrList,
3462 bool bValid =
false;
3465 switch (aIter.getToken())
3469 rLabel = aIter.toString();
3488 sal_Int32 nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
3493 bool bIsSelected =
false;
3505 sal_Int32 nAttrToken,
3506 std::string_view sAttrValue )
3510 sName = OUString::fromUtf8(sAttrValue);
3515 sHelp = OUString::fromUtf8(sAttrValue);
3520 sHint = OUString::fromUtf8(sAttrValue);
3528 const Reference<XPropertySet>& xPropertySet)
3532 Sequence<OUString> aSequence(
nLength );
3533 OUString* pSequence = aSequence.getArray();
3539 xPropertySet->setPropertyValue(
"Items",
Any(aSequence) );
3543 xPropertySet->setPropertyValue(
"SelectedItem",
Any(pSequence[
nSelected]) );
3549 xPropertySet->setPropertyValue(
"Name",
Any(
sName) );
3554 xPropertySet->setPropertyValue(
"Help",
Any(
sHelp) );
3559 xPropertySet->setPropertyValue(
"Tooltip",
Any(
sHint) );
3567 SvXMLImport& rImport,
3589 SvXMLImport& rImport,
3612 SvXMLImport& rImport,
3622 std::string_view sAttrValue )
3629 const css::uno::Reference<
3630 css::beans::XPropertySet> &)
constexpr OUStringLiteral sServiceName
This class deliberately does not support XWeak, to improve performance when loading large documents.
SvXMLImport & GetImport()
SvXMLImportContext(SvXMLImport &rImport)
A contexts constructor does anything that is required if an element starts.
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...
Import an annotation field (<text:annotation>)
OUStringBuffer aInitialsBuffer
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attributes
OUStringBuffer aTextBuffer
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
set properties
XMLAnnotationImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElement)
css::uno::Reference< css::text::XTextCursor > mxCursor
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
create XTextField and insert into document; calls PrepareTextField
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
css::uno::Reference< css::text::XTextCursor > mxOldCursor
OUStringBuffer aAuthorBuffer
css::uno::Reference< css::beans::XPropertySet > mxField
OUStringBuffer aDateBuffer
inherit sender field because of fixed attribute in ProcessAttributes
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Text import helper.
const OUString sPropertyFixed
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
XMLAuthorFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
const OUString sPropertyContent
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
import bibliography info fields (<text:bibliography-mark>)
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
empty method; all attributes are handled in StartElement
static const char * MapBibliographyFieldName(sal_Int32 nElement)
::std::vector< css::beans::PropertyValue > aValues
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
process attributes (fill aValues)
XMLBibliographyFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
convert aValues into sequence and set property
import chapter fields (<text:chapter>)
XMLChapterImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
import conditional text fields (<text:conditional-text>)
XMLConditionalTextImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
const OUString sPropertyCondition
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
const OUString sPropertyCurrentPresentation
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
import count fields (<text:[XXX]-count>)
const OUString sPropertyNumberingType
static OUString MapTokenToServiceName(sal_Int32 nElement)
XMLCountFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElement)
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
import database display fields (<text:database-display>)
superclass for database fields: handle database and table names
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
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
XMLDatabaseFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, const OUString &pServiceName, bool bUseDisplay)
protected constructor: only for subclasses
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
import database name fields (<text:database-name>)
XMLDatabaseNameImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
import database next fields (<text:database-next>)
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
XMLDatabaseNextImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, const OUString &pServiceName)
const OUString sPropertyCondition
import database display number fields (<text:database-row-number>)
XMLDatabaseNumberImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
const OUString sPropertyNumberingType
const OUString sPropertySetNumber
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
import database select fields (<text:database-select>)
const OUString sPropertySetNumber
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
XMLDatabaseSelectImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
import date fields (<text:date>); inherit from TimeField to reuse implementation
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
Text import helper.
XMLDateFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
import docinfo fields with date or time attributes and numberformats
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
XMLDateTimeDocInfoImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElement)
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
const OUString sPropertyIsDate
const OUString sPropertyIsFixedLanguage
const OUString sPropertyNumberFormat
import footer fields (<draw:date-and-time>)
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
Text import helper.
XMLDateTimeFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
import footer fields (<draw:date-and-time>)
import dde field declaration (<text:dde-connection-decl>)
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
XMLDdeFieldDeclImportContext(SvXMLImport &rImport)
XMLDdeFieldDeclsImportContext(SvXMLImport &rImport)
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
import dde fields (<text:dde-connection>)
XMLDdeFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
create textfield, attach master, and insert into document
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
empty method
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
OUString sPropertyContent
dropdown field (filter legacy)
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
std::vector< OUString > aLabels
XMLDropDownFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
Import <script:events> element.
void GetEventSequence(const OUString &rName, css::uno::Sequence< css::beans::PropertyValue > &rSequence)
if the import operates in delayed mode, you can use this method to obtain the value sequence for a sp...
import expression fields (<text:expression>)
import file name fields (<text:file-name>)
const OUString sPropertyFileFormat
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
const OUString sPropertyCurrentPresentation
const OUString sPropertyFixed
XMLFileNameImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
import hidden paragraph fields (<text:hidden-paragraph>)
XMLHiddenParagraphImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
const OUString sPropertyIsHidden
const OUString sPropertyCondition
import conditional text fields (<text:hidden-text>)
XMLHiddenTextImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
const OUString sPropertyCondition
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
const OUString sPropertyIsHidden
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
const OUString sPropertyContent
import macro fields (<text:execute-macro>)
XMLMacroFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
rtl::Reference< XMLEventsImportContext > xEventContext
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
for <office:events> children
import measure fields (<text:measure>)
XMLMeasureFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
import page continuation fields (<text:page-continuation-string>)
const OUString sPropertyNumberingType
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
Text import helper.
XMLPageContinuationImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
continuation string encountered?
css::text::PageNumberType eSelectPage
continuation string
const OUString sPropertySubType
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
bool sStringOK
previous, current
import page|slide name fields (<text:page-name>)
XMLPageNameFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
import page|slide name fields (<text:page-name>)
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
Text import helper.
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
import page number fields (<text:page-number>)
const OUString sPropertyOffset
const OUString sPropertyNumberingType
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
Text import helper.
XMLPageNumberImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
css::text::PageNumberType eSelectPage
const OUString sPropertySubType
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
bool sNumberFormatOK
previous, current
import page variable fields (<text:get-page-variable>)
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
XMLPageVarGetFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
import page variable fields (<text:get-page-variable>)
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
XMLPageVarSetFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
sal_Int16 nPlaceholderType
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
Text import helper.
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
const OUString sPropertyHint
XMLPlaceholderFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
import reference fields (<text:reference-get>)
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
XMLReferenceFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nToken)
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
start element
import revision field (<text:editing-cycles>)
XMLRevisionDocInfoImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElement)
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Import a script field (<text:script>)
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
set properties
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attributes
XMLScriptImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
const OUString sPropertyFixed
API subtype for ExtUser field.
const OUString sPropertyContent
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Text import helper.
XMLSenderFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
sequence fields (<text:sequence>)
import sheet name fields (Calc) dde fields (<text:sheet-name>)
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
no attributes -> empty method
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
no attributes -> empty method
XMLSheetNameImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
import docinfo fields with only fixed attribute
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
XMLSimpleDocInfoImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElementToken, bool bContent, bool bAuthor)
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
const OUString sPropertyCurrentPresentation
static OUString MapTokenToServiceName(sal_Int32 nElementToken)
const OUString sPropertyContent
const OUString sPropertyAuthor
const OUString sPropertyFixed
Import all text into a string buffer.
import table formula fields (deprecated; for Writer 2.0 compatibility)
import document template name fields (<text:template-name>)
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
const OUString sPropertyFileFormat
XMLTemplateNameImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
abstract class for text field import
void SetServiceName(const OUString &sStr)
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
parses attributes and calls ProcessAttribute
virtual void SAL_CALL characters(const OUString &sContent) override
name of SO API service
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
create XTextField and insert into document; calls PrepareTextField
XMLTextFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, OUString aService)
whether this field is valid ?
OUString sContent
collect character data
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet)=0
prepare XTextField for insertion into document
XMLTextImportHelper & GetImportHelper()
get helper
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue)=0
process attribute values
OUString sServicePrefix
the import helper
XMLTextImportHelper & rTextImportHelper
service name for text field
OUStringBuffer sContentBuffer
static XMLTextFieldImportContext * CreateTextFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElement)
create the appropriate field context from (for use in paragraph import)
const OUString & GetServiceName() const
OUString const & GetContent()
bool CreateField(css::uno::Reference< css::beans::XPropertySet > &xField, const OUString &sServiceName)
create field from ServiceName
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 pro...
void InsertTextContent(css::uno::Reference< css::text::XTextContent > const &xContent)
css::uno::Reference< css::text::XText > & GetText()
void ProcessFootnoteReference(const OUString &sXMLId, const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
set the proper footnote reference ID, or put into backpatch list if ID is unknown
sal_Int32 GetDataStyleKey(const OUString &sStyleName, bool *pIsSystemLanguage=nullptr)
return key appropriate for use with NumberFormat property return -1 if style is not found (may return...
void ProcessSequenceReference(const OUString &sXMLId, const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
set sequence ID or insert into backpatch list
void InsertString(const OUString &rChars)
const OUString sPropertyDateTime
const OUString sPropertyFixed
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
css::util::DateTime aDateTimeValue
const OUString sPropertyNumberFormat
const OUString sPropertyIsFixedLanguage
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
Text import helper.
const OUString sPropertyIsDate
XMLTimeFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
const OUString sPropertyDateTimeValue
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
no attributes -> empty method
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
no attributes -> empty method
XMLUrlFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
import user docinfo field (<text:user-defined>)
XMLUserDocInfoImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElement)
const OUString sPropertyIsFixedLanguage
const OUString sPropertyNumberFormat
const OUString sPropertyName
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
user fields (<text:user-field-get>)
user input fields (<text:user-field-input>)
import variable get fields (<text:variable-get>)
variable input fields (<text:variable-input>)
import variable set fields (<text:variable-set>)
static bool parseTimeOrDateTime(css::util::DateTime &rDateTime, std::u16string_view rString)
static void convertDuration(OUStringBuffer &rBuffer, const double fTime)
static bool parseDateTime(css::util::DateTime &rDateTime, std::u16string_view rString)
static bool convertNumber(sal_Int32 &rValue, std::u16string_view aString, sal_Int32 nMin=SAL_MIN_INT32, sal_Int32 nMax=SAL_MAX_INT32)
static bool convertBool(bool &rBool, std::u16string_view rString)
#define DBG_ASSERT(sCon, aError)
#define TOOLS_WARN_EXCEPTION(area, stream)
Reference< XSingleServiceFactory > xFactory
#define SAL_WARN(area, stream)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
Handling of tokens in XML:
@ XML_SENDER_PHONE_PRIVATE
@ XML_STRING_VALUE_IF_TRUE
@ XML_DDE_CONNECTION_DECL
@ XML_DATABASE_ROW_SELECT
@ XML_DATABASE_ROW_NUMBER
@ XML_PLAIN_NUMBER_AND_NAME
@ XML_CONNECTION_RESOURCE
@ XML_PAGE_CONTINUATION_STRING
@ XML_NUMBER_ALL_SUPERIOR
@ XML_BIBILIOGRAPHIC_TYPE
@ XML_SENDER_STATE_OR_PROVINCE
@ XML_STRING_VALUE_IF_FALSE
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
compare eToken to the string
const OUString & GetXMLToken(enum XMLTokenEnum eToken)
return the OUString representation for eToken
constexpr OUStringLiteral gsPropertyPlaceholderType(u"PlaceHolderType")
SvXMLEnumMapEntry< sal_uInt16 > const aBibliographyDataTypeMap[]
constexpr OUStringLiteral sAPI_docinfo_change_date_time
constexpr OUStringLiteral gsPropertyDataBaseURL(u"DataBaseURL")
constexpr OUStringLiteral gsPropertyLevel(u"Level")
constexpr char16_t sAPI_fieldmaster_prefix[]
constexpr OUStringLiteral sAPI_condition
constexpr OUStringLiteral gsPropertyTableName(u"DataTableName")
constexpr OUStringLiteral sAPI_true
constexpr OUStringLiteral sAPI_docinfo_custom
constexpr OUStringLiteral sAPI_date_time
constexpr OUStringLiteral sAPI_page_number
constexpr OUStringLiteral gsPropertyAdjust(u"Adjust")
constexpr OUStringLiteral sAPI_offset
constexpr OUStringLiteral sAPI_current_presentation
constexpr OUStringLiteral gsPropertyDataBaseName(u"DataBaseName")
constexpr OUStringLiteral sPropertyRevision(u"Revision")
constexpr OUStringLiteral gsPropertyIsVisible(u"IsVisible")
constexpr OUStringLiteral sAPI_sub_type
SvXMLEnumMapEntry< sal_uInt16 > const lcl_aReferenceTypeTokenMap[]
constexpr OUStringLiteral sAPI_name
constexpr OUStringLiteral gsPropertyIsConditionTrue(u"IsConditionTrue")
constexpr OUStringLiteral sAPI_author
constexpr OUStringLiteral sAPI_docinfo_create_date_time
constexpr OUStringLiteral gsPropertyPlaceholder(u"PlaceHolder")
constexpr OUStringLiteral sAPI_file_format
constexpr OUStringLiteral sAPI_set_number
const SvXMLEnumMapEntry< sal_uInt16 > aFilenameDisplayMap[]
SvXMLEnumMapEntry< PageNumberType > const lcl_aSelectPageAttrMap[]
constexpr OUStringLiteral sAPI_url
constexpr OUStringLiteral gsPropertyDataCommandType(u"DataCommandType")
static bool lcl_ProcessLabel(const Reference< XFastAttributeList > &xAttrList, OUString &rLabel, bool &rIsSelected)
constexpr OUStringLiteral sAPI_number_format
constexpr OUStringLiteral sAPI_dde
constexpr OUStringLiteral sAPI_hint
constexpr OUStringLiteral sAPI_numbering_type
const SvXMLEnumMapEntry< sal_uInt16 > aChapterDisplayMap[]
constexpr OUStringLiteral gsPropertyUserText(u"UserText")
constexpr OUStringLiteral gsPropertyFalseContent(u"FalseContent")
constexpr OUStringLiteral sAPI_date_time_value
constexpr OUStringLiteral sAPI_is_date
constexpr OUStringLiteral gsPropertyChapterFormat(u"ChapterFormat")
const SvXMLEnumMapEntry< sal_uInt16 > aTemplateDisplayMap[]
constexpr OUStringLiteral gsPropertyFieldSubType(u"UserDataType")
constexpr OUStringLiteral gsPropertyTrueContent(u"TrueContent")
constexpr OUStringLiteral sAPI_is_fixed
constexpr OUStringLiteral sAPI_presentation_prefix
constexpr OUStringLiteral sAPI_docinfo_print_date_time
constexpr OUStringLiteral sAPI_textfield_prefix
constexpr OUStringLiteral sAPI_is_fixed_language
constexpr OUStringLiteral sAPI_is_hidden
constexpr OUStringLiteral sAPI_content
constexpr OUStringLiteral gsPropertyAuthorFullName(u"FullName")
constexpr OUStringLiteral sMacroName
#define XMLOFF_WARN_UNKNOWN_ELEMENT(area, token)
#define XMLOFF_WARN_UNKNOWN_ATTR(area, token, value)
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)
constexpr bool IsTokenInNamespace(sal_Int32 nToken, sal_uInt16 nNamespacePrefix)
constexpr sal_Int32 TOKEN_MASK
constexpr sal_uInt16 XML_NAMESPACE_TEXT
constexpr sal_uInt16 XML_NAMESPACE_OOOW
constexpr sal_uInt16 XML_NAMESPACE_LO_EXT