28#include <com/sun/star/uno/Reference.h>
29#include <com/sun/star/beans/PropertyValue.hpp>
30#include <com/sun/star/text/PageNumberType.hpp>
31#include <com/sun/star/util/DateTime.hpp>
35#include <rtl/ustrbuf.hxx>
39 namespace xml::sax {
class XAttributeList; }
40 namespace text {
class XTextField; }
41 namespace beans {
class XPropertySet;
struct PropertyValue; }
76 const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList)
override;
99 std::string_view sAttrValue ) = 0;
103 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) = 0;
106 bool CreateField(css::uno::Reference< css::beans::XPropertySet> & xField,
112 const css::uno::Reference< css::beans::XPropertySet> & rPropertySet);
137 const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList)
override;
141 std::string_view sAttrValue )
override;
145 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet)
override;
165 const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList)
override;
169 std::string_view sAttrValue )
override;
173 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet)
override;
193 std::string_view sAttrValue )
override;
197 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet)
override;
228 std::string_view sAttrValue )
override;
232 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet)
override;
247 std::string_view sAttrValue )
override;
269 std::string_view sAttrValue )
override;
273 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet)
override;
299 std::string_view sAttrValue )
override;
303 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet)
override;
329 const OUString& pServiceName,
336 std::string_view sAttrValue )
override;
340 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet)
override;
345 const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList )
override;
358 std::string_view sAttrValue )
override;
373 const OUString& pServiceName);
382 std::string_view sAttrValue )
override;
386 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet)
override;
403 std::string_view sAttrValue )
override;
407 const css::uno::Reference<
408 css::beans::XPropertySet> & xPropertySet)
override;
428 std::string_view sAttrValue )
override;
432 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet)
override;
452 sal_Int32 nElementToken,
459 std::string_view sAttrValue )
override;
463 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet)
override;
490 std::string_view sAttrValue )
override;
494 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet)
override;
509 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
532 std::string_view sAttrValue )
override;
534 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
554 std::string_view sAttrValue )
override;
558 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
584 std::string_view sAttrValue )
override;
588 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
613 std::string_view sAttrValue )
override;
617 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
638 std::string_view sAttrValue )
override;
642 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
660 std::string_view sAttrValue )
override;
664 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
681 std::string_view sAttrValue )
override;
685 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
707 std::string_view sAttrValue )
override;
711 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
732 std::string_view sAttrValue )
override;
736 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
753 std::string_view sAttrValue )
override;
757 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
779 const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList )
override;
783 std::string_view sAttrValue )
override;
787 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
812 const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList)
override;
816 std::string_view sAttrValue )
override;
820 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
832 const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList )
override;
845 const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList)
override;
862 std::string_view sAttrValue )
override;
865 virtual void SAL_CALL
endFastElement(sal_Int32 nElement)
override;
869 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
884 std::string_view sAttrValue )
override;
888 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
902 std::string_view sAttrValue )
override;
906 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
924 std::string_view sAttrValue )
override;
928 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
934 ::std::vector< css::beans::PropertyValue>
aValues;
945 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList)
override;
949 std::string_view sAttrValue )
override;
953 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
968 css::uno::Reference < css::beans::XPropertySet >
mxField;
969 css::uno::Reference < css::text::XTextCursor >
mxCursor;
983 std::string_view sAttrValue )
override;
987 const css::uno::Reference< css::beans::XPropertySet > & xPropertySet)
override;
991 const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList )
override;
992 virtual void SAL_CALL
endFastElement(sal_Int32 nElement)
override;
1011 std::string_view sAttrValue )
override;
1015 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
1031 std::string_view sAttrValue )
override;
1035 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
1056 sal_Int32 nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList )
override;
1061 std::string_view sAttrValue )
override;
1065 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
1079 std::string_view sAttrValue )
override;
1083 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
1097 std::string_view sAttrValue )
override;
1101 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
1115 std::string_view sAttrValue )
override;
1119 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet)
override;
This class deliberately does not support XWeak, to improve performance when loading large documents.
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
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)
import dde field declaration container (<text:dde-connection-decls>)
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 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)
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 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
OUString sServiceName
character data after collection
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...
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
import hyperlinks as URL fields (Calc, Impress, Draw) (<office:a>)
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
class SAL_NO_VTABLE XPropertySet