LibreOffice Module xmloff (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
XMLTextFieldExport Class Referencefinal

#include <txtflde.hxx>

Collaboration diagram for XMLTextFieldExport:
[legend]

Public Member Functions

 XMLTextFieldExport (SvXMLExport &rExp, std::unique_ptr< XMLPropertyState > pCombinedCharState)
 
 ~XMLTextFieldExport ()
 
void ExportField (const css::uno::Reference< css::text::XTextField > &rTextField, bool bProgress, bool &rPrevCharIsSpace)
 Export this field and the surrounding span element with the formatting. More...
 
void ExportFieldAutoStyle (const css::uno::Reference< css::text::XTextField > &rTextField, const bool bProgress, const bool bRecursive)
 collect styles (character styles, data styles, ...) for this field (if appropriate). More...
 
void ExportFieldDeclarations ()
 export field declarations. More...
 
void ExportFieldDeclarations (const css::uno::Reference< css::text::XText > &rText)
 export field declarations for fields used in the particular XText. More...
 
void SetExportOnlyUsedFieldDeclarations (bool bExportOnlyUsed=true)
 export all field declarations, or only those that have been used? Calling this method will reset the list of used field declarations. More...
 

Static Public Member Functions

static enum::xmloff::token::XMLTokenEnum MapPlaceholderType (sal_uInt16 nType)
 map placeholder type More...
 
static enum::xmloff::token::XMLTokenEnum MapTemplateDisplayFormat (sal_Int16 nType)
 map TemplateDisplayFormat to XML More...
 
static enum::xmloff::token::XMLTokenEnum MapChapterDisplayFormat (sal_Int16 nType)
 map ChapterDisplayFormat to XML string More...
 
static enum::xmloff::token::XMLTokenEnum MapFilenameDisplayFormat (sal_Int16 nType)
 map FilenameDisplayFormat to XML attribute names More...
 
static enum::xmloff::token::XMLTokenEnum MapDocInfoFieldName (enum FieldIdEnum nToken)
 
static enum::xmloff::token::XMLTokenEnum MapReferenceSource (sal_Int16 nType)
 map ReferenceFieldPart to XML string More...
 
static enum::xmloff::token::XMLTokenEnum MapReferenceType (sal_Int16 nType)
 map ReferenceFieldPart to XML string More...
 
static enum::xmloff::token::XMLTokenEnum MapCountFieldName (FieldIdEnum nToken)
 map count/statistics field token to XML name More...
 
static enum::xmloff::token::XMLTokenEnum MapBibliographyFieldName (std::u16string_view sName)
 
static enum::xmloff::token::XMLTokenEnum MapMeasureKind (sal_Int16 nKind)
 
static enum::xmloff::token::XMLTokenEnum MapPageNumberName (const css::uno::Reference< css::beans::XPropertySet > &xPropSet, sal_Int32 &nOffset)
 
static enum::xmloff::token::XMLTokenEnum MapAuthorFieldName (const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
 also adjust page offset More...
 
static enum::xmloff::token::XMLTokenEnum MapSenderFieldName (const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
 element name for sender fields More...
 

Private Member Functions

SvXMLExportGetExport ()
 
void ExportFieldHelper (const css::uno::Reference< css::text::XTextField > &rTextField, const css::uno::Reference< css::beans::XPropertySet > &rPropSet, const css::uno::Reference< css::beans::XPropertySet > &rRangePropSet, enum FieldIdEnum nToken, bool bProgress, bool &rPrevCharIsSpace)
 export a field after <text:span> is already written More...
 
void ExportElement (enum ::xmloff::token::XMLTokenEnum eElement, bool bAddSpace=false)
 export an empty element More...
 
void ExportElement (enum ::xmloff::token::XMLTokenEnum eElement, const OUString &sContent)
 add blanks around More...
 
void ExportMacro (const css::uno::Reference< css::beans::XPropertySet > &rPropSet, const OUString &rContent)
 element content More...
 
void ExportMetaField (const css::uno::Reference< css::beans::XPropertySet > &i_xMeta, bool i_bAutoStyles, bool i_bProgress, bool &rPrevCharIsSpace)
 export text:meta-field (RDF metadata) More...
 
void ProcessBoolean (enum ::xmloff::token::XMLTokenEnum eXmlName, bool bBool, bool bDefault)
 export a boolean attribute More...
 
void ProcessInteger (enum ::xmloff::token::XMLTokenEnum eXmlName, sal_Int32 nNum)
 attribute default; omit, if attribute differs More...
 
void ProcessIntegerDef (enum ::xmloff::token::XMLTokenEnum eXmlName, sal_Int32 nNum, sal_Int32 nDefault)
 attribute value More...
 
void ProcessString (enum ::xmloff::token::XMLTokenEnum eXmlName, const OUString &sValue, bool bOmitEmpty=false, sal_uInt16 nPrefix=XML_NAMESPACE_TEXT)
 default value More...
 
void ProcessString (enum ::xmloff::token::XMLTokenEnum eXmlName, sal_uInt16 nValuePrefix, const OUString &sValue)
 attribute name prefix More...
 
void ProcessString (enum ::xmloff::token::XMLTokenEnum eXmlName, const OUString &sValue, std::u16string_view sDefault)
 attribute value More...
 
void ProcessString (enum ::xmloff::token::XMLTokenEnum eXmlName, sal_uInt16 nValuePrefix, const OUString &sValue, std::u16string_view sDefault)
 default value; omit if equal More...
 
void ProcessString (enum ::xmloff::token::XMLTokenEnum eXmlName, enum ::xmloff::token::XMLTokenEnum eValue, sal_uInt16 nPrefix=XML_NAMESPACE_TEXT)
 default value; omit if equal More...
 
void ProcessString (enum ::xmloff::token::XMLTokenEnum eXmlName, enum ::xmloff::token::XMLTokenEnum eValue, enum ::xmloff::token::XMLTokenEnum eDefault)
 attribute name prefix More...
 
void ProcessParagraphSequence (std::u16string_view sParagraphSequence)
 default value token More...
 
void ProcessNumberingType (sal_Int16 nNumberingType)
 export a numbering format (numeric, roman, alphabetic, etc.) More...
 
void ProcessDisplay (bool bIsVisible, bool bIsCommand)
 numbering type key More...
 
void ProcessValueAndType (bool bIsString, sal_Int32 nFormatKey, const OUString &sContent, std::u16string_view sDefault, double fValue, bool bExportValue, bool bExportValueType, bool bExportStyle, bool bForceSystemLanguage, bool bTimeStyle=false)
 is show command/show name? More...
 
void ProcessDateTime (enum ::xmloff::token::XMLTokenEnum eXMLName, double dValue, bool bIsDate, bool bIsDuration, bool bOmitDurationIfZero=true, sal_uInt16 nPrefix=XML_NAMESPACE_TEXT)
 exporting a time style? More...
 
void ProcessDateTime (enum ::xmloff::token::XMLTokenEnum eXMLName, sal_Int32 nMinutes, bool bIsDate, bool bIsDuration)
 attribute name prefix More...
 
void ProcessDateTime (enum ::xmloff::token::XMLTokenEnum eXMLName, const css::util::DateTime &rTime)
 export as duration? More...
 
void ProcessTimeOrDateTime (enum ::xmloff::token::XMLTokenEnum eXMLName, const css::util::DateTime &rTime)
 date/time value More...
 
void ProcessBibliographyData (const css::uno::Reference< css::beans::XPropertySet > &rPropertySet)
 date/time value More...
 
void ProcessCommandType (sal_Int32 nCommandType)
 export CommandTypeAttribute More...
 
void ProcessStringSequence (const css::uno::Sequence< OUString > &rSequence, const OUString &sSelected)
 css::sdb::CommandType More...
 
void ProcessStringSequence (const css::uno::Sequence< OUString > &rSequence, sal_Int32 nSelected)
 
void ExportDataBaseElement (enum ::xmloff::token::XMLTokenEnum eElement, const OUString &sContent, const css::uno::Reference< css::beans::XPropertySet > &rPropertySet, const css::uno::Reference< css::beans::XPropertySetInfo > &rPropertySetInfo)
 export attributes that describe a data source More...
 

Static Private Member Functions

static css::uno::Reference< css::beans::XPropertySetGetMasterPropertySet (const css::uno::Reference< css::text::XTextField > &rTextField)
 for XDependentTextFields, get PropertySet of FieldMaster More...
 
static bool GetDependentFieldPropertySet (const css::uno::Reference< css::beans::XPropertySet > &xmaster, css::uno::Reference< css::beans::XPropertySet > &xField)
 get PropertySet of (any) DependentTextField for this FieldMaster More...
 
static enum FieldIdEnum GetFieldID (const css::uno::Reference< css::text::XTextField > &rTextField, const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
 get field ID from XTextField (and it's Property-Set) More...
 
static enum FieldIdEnum MapFieldName (std::u16string_view sFieldName, const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
 get field ID from XTextField service name (and it's PropertySet) More...
 
static bool IsStringField (FieldIdEnum nFieldType, const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
 determine, whether field has string or numeric content More...
 
static void ExplodeFieldMasterName (std::u16string_view sMasterName, OUString &sFieldType, OUString &sVarName)
 explode a field master name into field type and field name More...
 
static OUString MakeFootnoteRefName (sal_Int16 nSeqNo)
 out: variable name More...
 
static OUString MakeSequenceRefName (sal_Int16 nSeqNo, std::u16string_view rSeqName)
 make reference name for a sequence field More...
 

Private Attributes

SvXMLExportrExport
 
std::unique_ptr< ::std::map< css::uno::Reference< css::text::XText >, ::std::set< OUString > > > pUsedMasters
 store used text field master names (NULL means: don't collect) More...
 
std::unique_ptr< XMLPropertyStatepCombinedCharactersPropertyState
 

Detailed Description

Definition at line 149 of file txtflde.hxx.

Constructor & Destructor Documentation

◆ XMLTextFieldExport()

XMLTextFieldExport::XMLTextFieldExport ( SvXMLExport rExp,
std::unique_ptr< XMLPropertyState pCombinedCharState 
)
Parameters
pCombinedCharStateXMLPropertyState for the combined characters field

Definition at line 372 of file txtflde.cxx.

References SetExportOnlyUsedFieldDeclarations().

◆ ~XMLTextFieldExport()

XMLTextFieldExport::~XMLTextFieldExport ( )

Definition at line 380 of file txtflde.cxx.

Member Function Documentation

◆ ExplodeFieldMasterName()

void XMLTextFieldExport::ExplodeFieldMasterName ( std::u16string_view  sMasterName,
OUString &  sFieldType,
OUString &  sVarName 
)
staticprivate

explode a field master name into field type and field name

Parameters
sFieldTypename as returned by SO API
sVarNameout: field type

Definition at line 2821 of file txtflde.cxx.

References gsFieldMasterPrefix(), o3tl::make_unsigned(), nLength, and SAL_WARN.

◆ ExportDataBaseElement()

void XMLTextFieldExport::ExportDataBaseElement ( enum ::xmloff::token::XMLTokenEnum  eElement,
const OUString &  sContent,
const css::uno::Reference< css::beans::XPropertySet > &  rPropertySet,
const css::uno::Reference< css::beans::XPropertySetInfo > &  rPropertySetInfo 
)
private

◆ ExportElement() [1/2]

void XMLTextFieldExport::ExportElement ( enum ::xmloff::token::XMLTokenEnum  eElement,
bool  bAddSpace = false 
)
private

export an empty element

Parameters
bAddSpaceelement token

Referenced by ExportFieldHelper().

◆ ExportElement() [2/2]

void XMLTextFieldExport::ExportElement ( enum ::xmloff::token::XMLTokenEnum  eElement,
const OUString &  sContent 
)
private

add blanks around

element? export an element with string content

Parameters
sContentelement token

◆ ExportField()

void XMLTextFieldExport::ExportField ( const css::uno::Reference< css::text::XTextField > &  rTextField,
bool  bProgress,
bool &  rPrevCharIsSpace 
)

Export this field and the surrounding span element with the formatting.

export the given field to XML. Called on second pass through document

To be called for every field in the document body.

Definition at line 972 of file txtflde.cxx.

References SvXMLExport::AddAttribute(), ExportFieldHelper(), FIELD_ID_COMBINED_CHARACTERS, GetExport(), GetFieldID(), SvXMLExport::GetTextParagraphExport(), gsPropertyCharStyleNames(), hasProperty(), nToken, pCombinedCharactersPropertyState, XML_NAMESPACE_TEXT, xmloff::token::XML_SPAN, and xmloff::token::XML_STYLE_NAME.

◆ ExportFieldAutoStyle()

void XMLTextFieldExport::ExportFieldAutoStyle ( const css::uno::Reference< css::text::XTextField > &  rTextField,
const bool  bProgress,
const bool  bRecursive 
)

collect styles (character styles, data styles, ...) for this field (if appropriate).

export the styles needed by the given field.

Also collect used field masters (if pUsedMasters is set) to be called for every field during style export.

Called on first pass through document

Definition at line 749 of file txtflde.cxx.

References SvXMLExport::addDataStyle(), SvXMLExport::dataStyleForceSystemLanguage(), DBG_ASSERT, ExportMetaField(), FIELD_ID_ANNOTATION, FIELD_ID_AUTHOR, FIELD_ID_BIBLIOGRAPHY, FIELD_ID_CHAPTER, FIELD_ID_COMBINED_CHARACTERS, FIELD_ID_CONDITIONAL_TEXT, FIELD_ID_COUNT_CHARACTERS, FIELD_ID_COUNT_GRAPHICS, FIELD_ID_COUNT_OBJECTS, FIELD_ID_COUNT_PAGES, FIELD_ID_COUNT_PARAGRAPHS, FIELD_ID_COUNT_TABLES, FIELD_ID_COUNT_WORDS, FIELD_ID_DATABASE_DISPLAY, FIELD_ID_DATABASE_NAME, FIELD_ID_DATABASE_NEXT, FIELD_ID_DATABASE_NUMBER, FIELD_ID_DATABASE_SELECT, FIELD_ID_DATE, FIELD_ID_DDE, FIELD_ID_DOCINFO_CREATION_AUTHOR, FIELD_ID_DOCINFO_CREATION_DATE, FIELD_ID_DOCINFO_CREATION_TIME, FIELD_ID_DOCINFO_CUSTOM, FIELD_ID_DOCINFO_DESCRIPTION, FIELD_ID_DOCINFO_EDIT_DURATION, FIELD_ID_DOCINFO_KEYWORDS, FIELD_ID_DOCINFO_PRINT_AUTHOR, FIELD_ID_DOCINFO_PRINT_DATE, FIELD_ID_DOCINFO_PRINT_TIME, FIELD_ID_DOCINFO_REVISION, FIELD_ID_DOCINFO_SAVE_AUTHOR, FIELD_ID_DOCINFO_SAVE_DATE, FIELD_ID_DOCINFO_SAVE_TIME, FIELD_ID_DOCINFO_SUBJECT, FIELD_ID_DOCINFO_TITLE, FIELD_ID_DRAW_DATE_TIME, FIELD_ID_DRAW_FOOTER, FIELD_ID_DRAW_HEADER, FIELD_ID_DROP_DOWN, FIELD_ID_EXPRESSION, FIELD_ID_FILE_NAME, FIELD_ID_HIDDEN_PARAGRAPH, FIELD_ID_HIDDEN_TEXT, FIELD_ID_MACRO, FIELD_ID_MEASURE, FIELD_ID_META, FIELD_ID_PAGENAME, FIELD_ID_PAGENUMBER, FIELD_ID_PAGESTRING, FIELD_ID_PLACEHOLDER, FIELD_ID_REF_BOOKMARK, FIELD_ID_REF_ENDNOTE, FIELD_ID_REF_FOOTNOTE, FIELD_ID_REF_REFERENCE, FIELD_ID_REF_SEQUENCE, FIELD_ID_REFPAGE_GET, FIELD_ID_REFPAGE_SET, FIELD_ID_SCRIPT, FIELD_ID_SENDER, FIELD_ID_SEQUENCE, FIELD_ID_SHEET_NAME, FIELD_ID_TABLE_FORMULA, FIELD_ID_TEMPLATE_NAME, FIELD_ID_TEXT_INPUT, FIELD_ID_TIME, FIELD_ID_UNKNOWN, FIELD_ID_URL, FIELD_ID_USER_GET, FIELD_ID_USER_INPUT, FIELD_ID_VARIABLE_GET, FIELD_ID_VARIABLE_INPUT, FIELD_ID_VARIABLE_SET, GetBoolProperty(), GetExport(), GetFieldID(), GetIntProperty(), GetOptionalBoolProperty(), GetStringProperty(), SvXMLExport::GetTextParagraphExport(), gsPropertyInstanceName(), gsPropertyIsDataBaseFormat(), gsPropertyIsFixedLanguage(), gsPropertyNumberFormat(), IsStringField(), nToken, pCombinedCharactersPropertyState, pUsedMasters, and TEXT_TEXT.

◆ ExportFieldDeclarations() [1/2]

void XMLTextFieldExport::ExportFieldDeclarations ( )

export field declarations.

export field declarations / field masters

to be called once at beginning of document body.

Definition at line 1894 of file txtflde.cxx.

References ExportFieldDeclarations().

Referenced by ExportFieldDeclarations().

◆ ExportFieldDeclarations() [2/2]

void XMLTextFieldExport::ExportFieldDeclarations ( const css::uno::Reference< css::text::XText > &  rText)

export field declarations for fields used in the particular XText.

(Requires that a list of used field declarations has previously been built-up in ExportFieldAutoStyle() )

◆ ExportFieldHelper()

void XMLTextFieldExport::ExportFieldHelper ( const css::uno::Reference< css::text::XTextField > &  rTextField,
const css::uno::Reference< css::beans::XPropertySet > &  rPropSet,
const css::uno::Reference< css::beans::XPropertySet > &  rRangePropSet,
enum FieldIdEnum  nToken,
bool  bProgress,
bool &  rPrevCharIsSpace 
)
private

export a field after <text:span> is already written

export the given field to XML. Called on second pass through document

Definition at line 1028 of file txtflde.cxx.

References aBuffer, SvXMLExport::AddAttribute(), aName, SvXMLExport::Characters(), sax::Converter::convertBool(), sax::Converter::convertDateTime(), DBG_ASSERT, SvtSecurityOptions::DocWarnRemovePersonalInfo, ExportDataBaseElement(), ExportElement(), ExportMacro(), ExportMetaField(), FIELD_ID_ANNOTATION, FIELD_ID_AUTHOR, FIELD_ID_BIBLIOGRAPHY, FIELD_ID_CHAPTER, FIELD_ID_COMBINED_CHARACTERS, FIELD_ID_CONDITIONAL_TEXT, FIELD_ID_COUNT_CHARACTERS, FIELD_ID_COUNT_GRAPHICS, FIELD_ID_COUNT_OBJECTS, FIELD_ID_COUNT_PAGES, FIELD_ID_COUNT_PARAGRAPHS, FIELD_ID_COUNT_TABLES, FIELD_ID_COUNT_WORDS, FIELD_ID_DATABASE_DISPLAY, FIELD_ID_DATABASE_NAME, FIELD_ID_DATABASE_NEXT, FIELD_ID_DATABASE_NUMBER, FIELD_ID_DATABASE_SELECT, FIELD_ID_DATE, FIELD_ID_DDE, FIELD_ID_DOCINFO_CREATION_AUTHOR, FIELD_ID_DOCINFO_CREATION_DATE, FIELD_ID_DOCINFO_CREATION_TIME, FIELD_ID_DOCINFO_CUSTOM, FIELD_ID_DOCINFO_DESCRIPTION, FIELD_ID_DOCINFO_EDIT_DURATION, FIELD_ID_DOCINFO_KEYWORDS, FIELD_ID_DOCINFO_PRINT_AUTHOR, FIELD_ID_DOCINFO_PRINT_DATE, FIELD_ID_DOCINFO_PRINT_TIME, FIELD_ID_DOCINFO_REVISION, FIELD_ID_DOCINFO_SAVE_AUTHOR, FIELD_ID_DOCINFO_SAVE_DATE, FIELD_ID_DOCINFO_SAVE_TIME, FIELD_ID_DOCINFO_SUBJECT, FIELD_ID_DOCINFO_TITLE, FIELD_ID_DRAW_DATE_TIME, FIELD_ID_DRAW_FOOTER, FIELD_ID_DRAW_HEADER, FIELD_ID_DROP_DOWN, FIELD_ID_EXPRESSION, FIELD_ID_FILE_NAME, FIELD_ID_HIDDEN_PARAGRAPH, FIELD_ID_HIDDEN_TEXT, FIELD_ID_MACRO, FIELD_ID_MEASURE, FIELD_ID_META, FIELD_ID_PAGENAME, FIELD_ID_PAGENUMBER, FIELD_ID_PAGESTRING, FIELD_ID_PLACEHOLDER, FIELD_ID_REF_BOOKMARK, FIELD_ID_REF_ENDNOTE, FIELD_ID_REF_FOOTNOTE, FIELD_ID_REF_REFERENCE, FIELD_ID_REF_SEQUENCE, FIELD_ID_REFPAGE_GET, FIELD_ID_REFPAGE_SET, FIELD_ID_SCRIPT, FIELD_ID_SENDER, FIELD_ID_SEQUENCE, FIELD_ID_SHEET_NAME, FIELD_ID_TABLE_FORMULA, FIELD_ID_TEMPLATE_NAME, FIELD_ID_TEXT_INPUT, FIELD_ID_TIME, FIELD_ID_UNKNOWN, FIELD_ID_URL, FIELD_ID_USER_GET, FIELD_ID_USER_INPUT, FIELD_ID_VARIABLE_GET, FIELD_ID_VARIABLE_INPUT, FIELD_ID_VARIABLE_SET, GetBoolProperty(), GetDateTimeProperty(), GetDoubleProperty(), GetExport(), SvXMLExport::GetInfoID(), GetInt16Property(), GetInt8Property(), GetIntProperty(), GetMasterPropertySet(), GetOptionalBoolProperty(), SvXMLExport::getSaneDefaultVersion(), GetStringProperty(), GetStringSequenceProperty(), SvXMLExport::GetTextParagraphExport(), gsPropertyAdjust(), gsPropertyAuthor(), gsPropertyChapterFormat(), gsPropertyCondition(), gsPropertyContent(), gsPropertyDataColumnName(), gsPropertyDataCommandType(), gsPropertyDataTableName(), gsPropertyDateTime(), gsPropertyDateTimeValue(), gsPropertyFalseContent(), gsPropertyFileFormat(), gsPropertyHelp(), gsPropertyHint(), gsPropertyInitials(), gsPropertyIsConditionTrue(), gsPropertyIsDataBaseFormat(), gsPropertyIsFixed(), gsPropertyIsFixedLanguage(), gsPropertyIsHidden(), gsPropertyIsShowFormula(), gsPropertyIsVisible(), gsPropertyItems(), gsPropertyLevel(), gsPropertyMeasureKind(), gsPropertyName(), gsPropertyNumberFormat(), gsPropertyNumberingType(), gsPropertyOffset(), gsPropertyOn(), gsPropertyPlaceholderType(), gsPropertyReferenceFieldLanguage(), gsPropertyReferenceFieldPart(), gsPropertyReferenceFieldSource(), gsPropertyScriptType(), gsPropertySelectedItem(), gsPropertySequenceNumber(), gsPropertySequenceValue(), gsPropertySetNumber(), gsPropertySourceName(), gsPropertySubType(), gsPropertyTargetFrame(), gsPropertyTextRange(), gsPropertyTooltip(), gsPropertyTrueContent(), gsPropertyURL(), gsPropertyURLContent(), gsPropertyUserText(), gsPropertyValue(), gsPropertyVariableName(), SvtSecurityOptions::IsOptionSet(), IsStringField(), MakeFootnoteRefName(), MakeSequenceRefName(), MapAuthorFieldName(), MapChapterDisplayFormat(), MapCountFieldName(), MapDocInfoFieldName(), MapFilenameDisplayFormat(), MapMeasureKind(), MapPageNumberName(), MapPlaceholderType(), MapReferenceSource(), MapReferenceType(), MapSenderFieldName(), MapTemplateDisplayFormat(), nAdjust, nToken, SvtSaveOptions::ODFSVER_012, SvtSaveOptions::ODFSVER_013, SvtSaveOptions::ODFSVER_EXTENDED, ProcessBibliographyData(), ProcessBoolean(), ProcessCommandType(), ProcessDateTime(), ProcessDisplay(), ProcessInteger(), ProcessIntegerDef(), ProcessNumberingType(), ProcessParagraphSequence(), ProcessString(), ProcessStringSequence(), ProcessTimeOrDateTime(), ProcessValueAndType(), rExport, sName, u, xmloff::token::XML_A, xmloff::token::XML_ACTIVE, xmloff::token::XML_ANNOTATION, xmloff::token::XML_BIBLIOGRAPHY_MARK, xmloff::token::XML_CHAPTER, xmloff::token::XML_COLUMN_NAME, xmloff::token::XML_CONDITION, xmloff::token::XML_CONDITIONAL_TEXT, xmloff::token::XML_CONNECTION_NAME, xmloff::token::XML_CREATOR, xmloff::token::XML_CREATOR_INITIALS, xmloff::token::XML_CURRENT_VALUE, xmloff::token::XML_DATABASE_DISPLAY, xmloff::token::XML_DATABASE_NAME, xmloff::token::XML_DATABASE_NEXT, xmloff::token::XML_DATABASE_ROW_NUMBER, xmloff::token::XML_DATABASE_ROW_SELECT, xmloff::token::XML_DATE, xmloff::token::XML_DATE_ADJUST, xmloff::token::XML_DATE_TIME, xmloff::token::XML_DATE_VALUE, xmloff::token::XML_DDE_CONNECTION, xmloff::token::XML_DESCRIPTION, xmloff::token::XML_DISPLAY, xmloff::token::XML_DROP_DOWN, xmloff::token::XML_ENDNOTE, xmloff::token::XML_EXPRESSION, xmloff::token::XML_FALSE, xmloff::token::XML_FILE_NAME, xmloff::token::XML_FIXED, xmloff::token::XML_FOOTER, xmloff::token::XML_FOOTNOTE, xmloff::token::XML_FORMULA, xmloff::token::XML_HEADER, xmloff::token::XML_HELP, xmloff::token::XML_HIDDEN_PARAGRAPH, xmloff::token::XML_HIDDEN_TEXT, xmloff::token::XML_HINT, xmloff::token::XML_HREF, xmloff::token::XML_IS_HIDDEN, xmloff::token::XML_KIND, xmloff::token::XML_LANGUAGE, xmloff::token::XML_MEASURE, xmloff::token::XML_NAME, XML_NAMESPACE_DC, XML_NAMESPACE_LO_EXT, XML_NAMESPACE_META, XML_NAMESPACE_OFFICE, XML_NAMESPACE_OOOW, XML_NAMESPACE_PRESENTATION, XML_NAMESPACE_SCRIPT, XML_NAMESPACE_TEXT, XML_NAMESPACE_XLINK, xmloff::token::XML_NOTE_CLASS, xmloff::token::XML_OUTLINE_LEVEL, xmloff::token::XML_PAGE_ADJUST, xmloff::token::XML_PAGE_CONTINUATION, xmloff::token::XML_PAGE_NAME, xmloff::token::XML_PAGE_NUMBER, xmloff::token::XML_PAGE_VARIABLE_GET, xmloff::token::XML_PAGE_VARIABLE_SET, xmloff::token::XML_PLACEHOLDER, xmloff::token::XML_PLACEHOLDER_TYPE, xmloff::token::XML_REF_NAME, xmloff::token::XML_REFERENCE_FORMAT, xmloff::token::XML_REFERENCE_LANGUAGE, xmloff::token::XML_RESOLVED, xmloff::token::XML_ROW_NUMBER, xmloff::token::XML_SCRIPT, xmloff::token::XML_SELECT_PAGE, xmloff::token::XML_SENDER_INITIALS, xmloff::token::XML_SEQUENCE, xmloff::token::XML_SHEET_NAME, xmloff::token::XML_SIMPLE, xmloff::token::XML_STRING_VALUE, xmloff::token::XML_STRING_VALUE_IF_FALSE, xmloff::token::XML_STRING_VALUE_IF_TRUE, xmloff::token::XML_TABLE_FORMULA, xmloff::token::XML_TABLE_NAME, xmloff::token::XML_TARGET_FRAME_NAME, xmloff::token::XML_TEMPLATE, xmloff::token::XML_TEMPLATE_NAME, xmloff::token::XML_TEXT_INPUT, xmloff::token::XML_TIME, xmloff::token::XML_TIME_ADJUST, xmloff::token::XML_TIME_VALUE, xmloff::token::XML_TRUE, xmloff::token::XML_TYPE, xmloff::token::XML_USER_DEFINED, xmloff::token::XML_USER_FIELD_GET, xmloff::token::XML_USER_FIELD_INPUT, xmloff::token::XML_VALUE, xmloff::token::XML_VARIABLE_GET, xmloff::token::XML_VARIABLE_INPUT, and xmloff::token::XML_VARIABLE_SET.

Referenced by ExportField().

◆ ExportMacro()

void XMLTextFieldExport::ExportMacro ( const css::uno::Reference< css::beans::XPropertySet > &  rPropSet,
const OUString &  rContent 
)
private

◆ ExportMetaField()

void XMLTextFieldExport::ExportMetaField ( const css::uno::Reference< css::beans::XPropertySet > &  i_xMeta,
bool  i_bAutoStyles,
bool  i_bProgress,
bool &  rPrevCharIsSpace 
)
private

◆ GetDependentFieldPropertySet()

bool XMLTextFieldExport::GetDependentFieldPropertySet ( const css::uno::Reference< css::beans::XPropertySet > &  xmaster,
css::uno::Reference< css::beans::XPropertySet > &  xField 
)
staticprivate

get PropertySet of (any) DependentTextField for this FieldMaster

Definition at line 2849 of file txtflde.cxx.

References Any, DBG_ASSERT, and gsPropertyDependentTextFields().

◆ GetExport()

SvXMLExport & XMLTextFieldExport::GetExport ( )
inlineprivate

◆ GetFieldID()

enum FieldIdEnum XMLTextFieldExport::GetFieldID ( const css::uno::Reference< css::text::XTextField > &  rTextField,
const css::uno::Reference< css::beans::XPropertySet > &  xPropSet 
)
staticprivate

get field ID from XTextField (and it's Property-Set)

get the field ID (as in FieldIDEnum) from XTextField

Definition at line 385 of file txtflde.cxx.

References DBG_ASSERT, FIELD_ID_DRAW_DATE_TIME, FIELD_ID_DRAW_FOOTER, FIELD_ID_DRAW_HEADER, gsPresentationServicePrefix(), gsServicePrefix(), and MapFieldName().

Referenced by ExportField(), and ExportFieldAutoStyle().

◆ GetMasterPropertySet()

Reference< XPropertySet > XMLTextFieldExport::GetMasterPropertySet ( const css::uno::Reference< css::text::XTextField > &  rTextField)
staticprivate

for XDependentTextFields, get PropertySet of FieldMaster

Definition at line 2840 of file txtflde.cxx.

Referenced by ExportFieldHelper(), and IsStringField().

◆ IsStringField()

bool XMLTextFieldExport::IsStringField ( FieldIdEnum  nFieldType,
const css::uno::Reference< css::beans::XPropertySet > &  xPropSet 
)
staticprivate

determine, whether field has string or numeric content

Parameters
xPropSetfield ID

Definition at line 632 of file txtflde.cxx.

References DBG_ASSERT, FIELD_ID_ANNOTATION, FIELD_ID_AUTHOR, FIELD_ID_BIBLIOGRAPHY, FIELD_ID_CHAPTER, FIELD_ID_COMBINED_CHARACTERS, FIELD_ID_CONDITIONAL_TEXT, FIELD_ID_COUNT_CHARACTERS, FIELD_ID_COUNT_GRAPHICS, FIELD_ID_COUNT_OBJECTS, FIELD_ID_COUNT_PAGES, FIELD_ID_COUNT_PARAGRAPHS, FIELD_ID_COUNT_TABLES, FIELD_ID_COUNT_WORDS, FIELD_ID_DATABASE_DISPLAY, FIELD_ID_DATABASE_NAME, FIELD_ID_DATABASE_NEXT, FIELD_ID_DATABASE_NUMBER, FIELD_ID_DATABASE_SELECT, FIELD_ID_DATE, FIELD_ID_DDE, FIELD_ID_DOCINFO_CREATION_AUTHOR, FIELD_ID_DOCINFO_CREATION_DATE, FIELD_ID_DOCINFO_CREATION_TIME, FIELD_ID_DOCINFO_CUSTOM, FIELD_ID_DOCINFO_DESCRIPTION, FIELD_ID_DOCINFO_EDIT_DURATION, FIELD_ID_DOCINFO_KEYWORDS, FIELD_ID_DOCINFO_PRINT_AUTHOR, FIELD_ID_DOCINFO_PRINT_DATE, FIELD_ID_DOCINFO_PRINT_TIME, FIELD_ID_DOCINFO_REVISION, FIELD_ID_DOCINFO_SAVE_AUTHOR, FIELD_ID_DOCINFO_SAVE_DATE, FIELD_ID_DOCINFO_SAVE_TIME, FIELD_ID_DOCINFO_SUBJECT, FIELD_ID_DOCINFO_TITLE, FIELD_ID_DRAW_DATE_TIME, FIELD_ID_DRAW_FOOTER, FIELD_ID_DRAW_HEADER, FIELD_ID_DROP_DOWN, FIELD_ID_EXPRESSION, FIELD_ID_FILE_NAME, FIELD_ID_HIDDEN_PARAGRAPH, FIELD_ID_HIDDEN_TEXT, FIELD_ID_MACRO, FIELD_ID_MEASURE, FIELD_ID_META, FIELD_ID_PAGENAME, FIELD_ID_PAGENUMBER, FIELD_ID_PAGESTRING, FIELD_ID_PLACEHOLDER, FIELD_ID_REF_BOOKMARK, FIELD_ID_REF_ENDNOTE, FIELD_ID_REF_FOOTNOTE, FIELD_ID_REF_REFERENCE, FIELD_ID_REF_SEQUENCE, FIELD_ID_REFPAGE_GET, FIELD_ID_REFPAGE_SET, FIELD_ID_SCRIPT, FIELD_ID_SENDER, FIELD_ID_SEQUENCE, FIELD_ID_SHEET_NAME, FIELD_ID_TABLE_FORMULA, FIELD_ID_TEMPLATE_NAME, FIELD_ID_TEXT_INPUT, FIELD_ID_TIME, FIELD_ID_UNKNOWN, FIELD_ID_URL, FIELD_ID_USER_GET, FIELD_ID_USER_INPUT, FIELD_ID_VARIABLE_GET, FIELD_ID_VARIABLE_INPUT, FIELD_ID_VARIABLE_SET, GetBoolProperty(), GetIntProperty(), GetMasterPropertySet(), gsPropertyIsExpression(), gsPropertyNumberFormat(), and gsPropertySubType().

Referenced by ExportFieldAutoStyle(), and ExportFieldHelper().

◆ MakeFootnoteRefName()

OUString XMLTextFieldExport::MakeFootnoteRefName ( sal_Int16  nSeqNo)
staticprivate

out: variable name

make reference name for a foot- or endnote

Definition at line 3447 of file txtflde.cxx.

Referenced by ExportFieldHelper().

◆ MakeSequenceRefName()

OUString XMLTextFieldExport::MakeSequenceRefName ( sal_Int16  nSeqNo,
std::u16string_view  rSeqName 
)
staticprivate

make reference name for a sequence field

Definition at line 3454 of file txtflde.cxx.

Referenced by ExportFieldHelper().

◆ MapAuthorFieldName()

enum XMLTokenEnum XMLTextFieldExport::MapAuthorFieldName ( const css::uno::Reference< css::beans::XPropertySet > &  xPropSet)
static

also adjust page offset

element name for author fields

Definition at line 2912 of file txtflde.cxx.

References GetBoolProperty(), gsPropertyFullName(), xmloff::token::XML_AUTHOR_INITIALS, and xmloff::token::XML_AUTHOR_NAME.

Referenced by ExportFieldHelper().

◆ MapBibliographyFieldName()

enum XMLTokenEnum XMLTextFieldExport::MapBibliographyFieldName ( std::u16string_view  sName)
static

◆ MapChapterDisplayFormat()

enum XMLTokenEnum XMLTextFieldExport::MapChapterDisplayFormat ( sal_Int16  nType)
static

◆ MapCountFieldName()

enum XMLTokenEnum XMLTextFieldExport::MapCountFieldName ( FieldIdEnum  nToken)
static

◆ MapDocInfoFieldName()

enum XMLTokenEnum XMLTextFieldExport::MapDocInfoFieldName ( enum FieldIdEnum  nToken)
static

◆ MapFieldName()

enum FieldIdEnum XMLTextFieldExport::MapFieldName ( std::u16string_view  sFieldName,
const css::uno::Reference< css::beans::XPropertySet > &  xPropSet 
)
staticprivate

get field ID from XTextField service name (and it's PropertySet)

Definition at line 438 of file txtflde.cxx.

References aFieldServiceNameMapping, SvXMLUnitConverter::convertEnum(), DBG_ASSERT, FIELD_ID_ANNOTATION, FIELD_ID_AUTHOR, FIELD_ID_BIBLIOGRAPHY, FIELD_ID_CHAPTER, FIELD_ID_COMBINED_CHARACTERS, FIELD_ID_CONDITIONAL_TEXT, FIELD_ID_COUNT_CHARACTERS, FIELD_ID_COUNT_GRAPHICS, FIELD_ID_COUNT_OBJECTS, FIELD_ID_COUNT_PAGES, FIELD_ID_COUNT_PARAGRAPHS, FIELD_ID_COUNT_TABLES, FIELD_ID_COUNT_WORDS, FIELD_ID_DATABASE_DISPLAY, FIELD_ID_DATABASE_NAME, FIELD_ID_DATABASE_NEXT, FIELD_ID_DATABASE_NUMBER, FIELD_ID_DATABASE_SELECT, FIELD_ID_DATE, FIELD_ID_DDE, FIELD_ID_DOCINFO_CREATION_AUTHOR, FIELD_ID_DOCINFO_CREATION_DATE, FIELD_ID_DOCINFO_CREATION_TIME, FIELD_ID_DOCINFO_CUSTOM, FIELD_ID_DOCINFO_DESCRIPTION, FIELD_ID_DOCINFO_EDIT_DURATION, FIELD_ID_DOCINFO_KEYWORDS, FIELD_ID_DOCINFO_PRINT_AUTHOR, FIELD_ID_DOCINFO_PRINT_DATE, FIELD_ID_DOCINFO_PRINT_TIME, FIELD_ID_DOCINFO_REVISION, FIELD_ID_DOCINFO_SAVE_AUTHOR, FIELD_ID_DOCINFO_SAVE_DATE, FIELD_ID_DOCINFO_SAVE_TIME, FIELD_ID_DOCINFO_SUBJECT, FIELD_ID_DOCINFO_TITLE, FIELD_ID_DROP_DOWN, FIELD_ID_EXPRESSION, FIELD_ID_FILE_NAME, FIELD_ID_HIDDEN_PARAGRAPH, FIELD_ID_HIDDEN_TEXT, FIELD_ID_MACRO, FIELD_ID_MEASURE, FIELD_ID_META, FIELD_ID_PAGENAME, FIELD_ID_PAGENUMBER, FIELD_ID_PAGESTRING, FIELD_ID_PLACEHOLDER, FIELD_ID_REF_BOOKMARK, FIELD_ID_REF_ENDNOTE, FIELD_ID_REF_FOOTNOTE, FIELD_ID_REF_REFERENCE, FIELD_ID_REF_SEQUENCE, FIELD_ID_REFPAGE_GET, FIELD_ID_REFPAGE_SET, FIELD_ID_SCRIPT, FIELD_ID_SENDER, FIELD_ID_SEQUENCE, FIELD_ID_SHEET_NAME, FIELD_ID_TABLE_FORMULA, FIELD_ID_TEMPLATE_NAME, FIELD_ID_TEXT_INPUT, FIELD_ID_TIME, FIELD_ID_UNKNOWN, FIELD_ID_URL, FIELD_ID_USER_GET, FIELD_ID_USER_INPUT, FIELD_ID_VARIABLE_GET, FIELD_ID_VARIABLE_INPUT, FIELD_ID_VARIABLE_SET, GetBoolProperty(), GetInt16Property(), GetIntProperty(), gsPropertyIsDate(), gsPropertyIsInput(), gsPropertyNumberingType(), gsPropertyReferenceFieldSource(), gsPropertySubType(), and nToken.

Referenced by GetFieldID().

◆ MapFilenameDisplayFormat()

enum XMLTokenEnum XMLTextFieldExport::MapFilenameDisplayFormat ( sal_Int16  nType)
static

map FilenameDisplayFormat to XML attribute names

Definition at line 3055 of file txtflde.cxx.

References xmloff::token::XML_FULL, xmloff::token::XML_NAME, xmloff::token::XML_NAME_AND_EXTENSION, xmloff::token::XML_PATH, and xmloff::token::XML_TOKEN_INVALID.

Referenced by ExportFieldHelper().

◆ MapMeasureKind()

enum XMLTokenEnum XMLTextFieldExport::MapMeasureKind ( sal_Int16  nKind)
static

◆ MapPageNumberName()

enum XMLTokenEnum XMLTextFieldExport::MapPageNumberName ( const css::uno::Reference< css::beans::XPropertySet > &  xPropSet,
sal_Int32 &  nOffset 
)
static

◆ MapPlaceholderType()

enum XMLTokenEnum XMLTextFieldExport::MapPlaceholderType ( sal_uInt16  nType)
static

◆ MapReferenceSource()

enum XMLTokenEnum XMLTextFieldExport::MapReferenceSource ( sal_Int16  nType)
static

◆ MapReferenceType()

enum XMLTokenEnum XMLTextFieldExport::MapReferenceType ( sal_Int16  nType)
static

◆ MapSenderFieldName()

enum XMLTokenEnum XMLTextFieldExport::MapSenderFieldName ( const css::uno::Reference< css::beans::XPropertySet > &  xPropSet)
static

◆ MapTemplateDisplayFormat()

enum XMLTokenEnum XMLTextFieldExport::MapTemplateDisplayFormat ( sal_Int16  nType)
static

◆ ProcessBibliographyData()

void XMLTextFieldExport::ProcessBibliographyData ( const css::uno::Reference< css::beans::XPropertySet > &  rPropertySet)
private

◆ ProcessBoolean()

void XMLTextFieldExport::ProcessBoolean ( enum ::xmloff::token::XMLTokenEnum  eXmlName,
bool  bBool,
bool  bDefault 
)
private

export a boolean attribute

export boolean property

Parameters
bBoolattribute token (namespace text)
bDefaultattribute value

Definition at line 2419 of file txtflde.cxx.

References SvXMLExport::AddAttribute(), GetExport(), SAL_WARN_IF, xmloff::token::XML_FALSE, XML_NAMESPACE_TEXT, xmloff::token::XML_TOKEN_INVALID, and xmloff::token::XML_TRUE.

Referenced by ExportFieldHelper().

◆ ProcessCommandType()

void XMLTextFieldExport::ProcessCommandType ( sal_Int32  nCommandType)
private

◆ ProcessDateTime() [1/3]

void XMLTextFieldExport::ProcessDateTime ( enum ::xmloff::token::XMLTokenEnum  eXMLName,
const css::util::DateTime &  rTime 
)
private

export as duration?

export times, dates and durations according to ISO 8601

Parameters
rTimeattribute token

◆ ProcessDateTime() [2/3]

void XMLTextFieldExport::ProcessDateTime ( enum ::xmloff::token::XMLTokenEnum  eXMLName,
double  dValue,
bool  bIsDate,
bool  bIsDuration,
bool  bOmitDurationIfZero = true,
sal_uInt16  nPrefix = XML_NAMESPACE_TEXT 
)
private

exporting a time style?

export times, dates and durations according to ISO 8601

Parameters
dValueattribute token
bIsDatedate/time value
bIsDurationexport as date (rather than date/time)?
bOmitDurationIfZeroexport as duration
nPrefixomit zero-length durat.

Referenced by ExportFieldHelper().

◆ ProcessDateTime() [3/3]

void XMLTextFieldExport::ProcessDateTime ( enum ::xmloff::token::XMLTokenEnum  eXMLName,
sal_Int32  nMinutes,
bool  bIsDate,
bool  bIsDuration 
)
private

attribute name prefix

export a date, time, or duration

Parameters
nMinutesattribute token
bIsDatedate/time value in minutes
bIsDurationexport as date?

◆ ProcessDisplay()

void XMLTextFieldExport::ProcessDisplay ( bool  bIsVisible,
bool  bIsCommand 
)
private

numbering type key

process display related properties

export display attribute (value, formula, none)

Parameters
bIsCommandis visible?

Definition at line 2396 of file txtflde.cxx.

References SvXMLExport::AddAttribute(), GetExport(), xmloff::token::XML_DISPLAY, xmloff::token::XML_FORMULA, XML_NAMESPACE_TEXT, xmloff::token::XML_NONE, and xmloff::token::XML_VALUE.

Referenced by ExportFieldHelper().

◆ ProcessInteger()

void XMLTextFieldExport::ProcessInteger ( enum ::xmloff::token::XMLTokenEnum  eXmlName,
sal_Int32  nNum 
)
private

attribute default; omit, if attribute differs

export an integer attribute

Parameters
nNumattribute token (namespace text)

Definition at line 2528 of file txtflde.cxx.

References SvXMLExport::AddAttribute(), GetExport(), SAL_WARN_IF, XML_NAMESPACE_TEXT, and xmloff::token::XML_TOKEN_INVALID.

Referenced by ExportFieldHelper(), and ProcessIntegerDef().

◆ ProcessIntegerDef()

void XMLTextFieldExport::ProcessIntegerDef ( enum ::xmloff::token::XMLTokenEnum  eXmlName,
sal_Int32  nNum,
sal_Int32  nDefault 
)
private

attribute value

export an integer attribute, omit if default

Parameters
nNumattribute token (namespace text)
nDefaultattribute value

Definition at line 2540 of file txtflde.cxx.

References ProcessInteger().

Referenced by ExportFieldHelper().

◆ ProcessNumberingType()

void XMLTextFieldExport::ProcessNumberingType ( sal_Int16  nNumberingType)
private

◆ ProcessParagraphSequence()

void XMLTextFieldExport::ProcessParagraphSequence ( std::u16string_view  sParagraphSequence)
private

default value token

export a string as a sequence of paragraphs

Parameters
sParagraphSequencestring containing the paragraphs

Definition at line 2512 of file txtflde.cxx.

References SvXMLExport::Characters(), GetExport(), SvXMLTokenEnumerator::getNextToken(), XML_NAMESPACE_TEXT, and xmloff::token::XML_P.

Referenced by ExportFieldHelper().

◆ ProcessString() [1/6]

void XMLTextFieldExport::ProcessString ( enum ::xmloff::token::XMLTokenEnum  eXmlName,
const OUString &  sValue,
bool  bOmitEmpty = false,
sal_uInt16  nPrefix = XML_NAMESPACE_TEXT 
)
private

default value

export a string attribute

Parameters
sValueattribute token (namespace text)
bOmitEmptyattribute value
nPrefixomit attribute, if value is empty

Referenced by ExportFieldHelper(), ExportMacro(), and ProcessTimeOrDateTime().

◆ ProcessString() [2/6]

void XMLTextFieldExport::ProcessString ( enum ::xmloff::token::XMLTokenEnum  eXmlName,
const OUString &  sValue,
std::u16string_view  sDefault 
)
private

attribute value

export a string attribute, omit if default

Parameters
sValueattribute token (namespace text)
sDefaultattribute value

◆ ProcessString() [3/6]

void XMLTextFieldExport::ProcessString ( enum ::xmloff::token::XMLTokenEnum  eXmlName,
enum ::xmloff::token::XMLTokenEnum  eValue,
enum ::xmloff::token::XMLTokenEnum  eDefault 
)
private

attribute name prefix

export a string attribute, omit if default

Parameters
eValueattribute token (namespace text)
eDefaultattribute value token

◆ ProcessString() [4/6]

void XMLTextFieldExport::ProcessString ( enum ::xmloff::token::XMLTokenEnum  eXmlName,
enum ::xmloff::token::XMLTokenEnum  eValue,
sal_uInt16  nPrefix = XML_NAMESPACE_TEXT 
)
private

default value; omit if equal

export a string attribute

Parameters
eValueattribute token (namespace text)
nPrefixattribute token

◆ ProcessString() [5/6]

void XMLTextFieldExport::ProcessString ( enum ::xmloff::token::XMLTokenEnum  eXmlName,
sal_uInt16  nValuePrefix,
const OUString &  sValue 
)
private

attribute name prefix

export a string attribute that gets a QName value

Parameters
nValuePrefixattribute token (namespace text)

◆ ProcessString() [6/6]

void XMLTextFieldExport::ProcessString ( enum ::xmloff::token::XMLTokenEnum  eXmlName,
sal_uInt16  nValuePrefix,
const OUString &  sValue,
std::u16string_view  sDefault 
)
private

default value; omit if equal

export a string attribute, omit if default

Parameters
nValuePrefixattribute token (namespace text)
sDefaultattribute value

◆ ProcessStringSequence() [1/2]

void XMLTextFieldExport::ProcessStringSequence ( const css::uno::Sequence< OUString > &  rSequence,
const OUString &  sSelected 
)
private

css::sdb::CommandType

Referenced by ExportFieldHelper().

◆ ProcessStringSequence() [2/2]

void XMLTextFieldExport::ProcessStringSequence ( const css::uno::Sequence< OUString > &  rSequence,
sal_Int32  nSelected 
)
private

◆ ProcessTimeOrDateTime()

void XMLTextFieldExport::ProcessTimeOrDateTime ( enum ::xmloff::token::XMLTokenEnum  eXMLName,
const css::util::DateTime &  rTime 
)
private

date/time value

export a time or dateTime

export time or dateTime

Parameters
rTimeattribute token

Definition at line 2636 of file txtflde.cxx.

References aBuffer, sax::Converter::convertTimeOrDateTime(), and ProcessString().

Referenced by ExportFieldHelper().

◆ ProcessValueAndType()

void XMLTextFieldExport::ProcessValueAndType ( bool  bIsString,
sal_Int32  nFormatKey,
const OUString &  sContent,
std::u16string_view  sDefault,
double  fValue,
bool  bExportValue,
bool  bExportValueType,
bool  bExportStyle,
bool  bForceSystemLanguage,
bool  bTimeStyle = false 
)
private

is show command/show name?

export all data-style related attributes

Parameters
nFormatKeydo we process a string or a number?
sContentformat key for NumberFormatter; possibly -1
sDefaultstring content; possibly invalid
fValuedefault string
bExportValuefloat content; possibly invalid
bExportValueTypeexport value attribute?
bExportStyleexport value-type attribute?
bForceSystemLanguageexport style-attribute?
bTimeStyleno style language export

Definition at line 2331 of file txtflde.cxx.

References SvXMLExport::AddAttribute(), SvXMLExport::dataStyleForceSystemLanguage(), DBG_ASSERT, SvXMLExport::getDataStyleName(), GetExport(), XMLNumberFormatAttributesExportHelper::SetNumberFormatAttributes(), xmloff::token::XML_DATA_STYLE_NAME, and XML_NAMESPACE_STYLE.

Referenced by ExportFieldHelper(), and ExportMetaField().

◆ SetExportOnlyUsedFieldDeclarations()

void XMLTextFieldExport::SetExportOnlyUsedFieldDeclarations ( bool  bExportOnlyUsed = true)

export all field declarations, or only those that have been used? Calling this method will reset the list of used field declarations.

Definition at line 2194 of file txtflde.cxx.

References pUsedMasters.

Referenced by XMLTextFieldExport().

Member Data Documentation

◆ pCombinedCharactersPropertyState

std::unique_ptr<XMLPropertyState> XMLTextFieldExport::pCombinedCharactersPropertyState
private

Definition at line 409 of file txtflde.hxx.

Referenced by ExportField(), and ExportFieldAutoStyle().

◆ pUsedMasters

std::unique_ptr< ::std::map< css::uno::Reference< css::text::XText >, ::std::set< OUString > > > XMLTextFieldExport::pUsedMasters
private

store used text field master names (NULL means: don't collect)

Definition at line 157 of file txtflde.hxx.

Referenced by ExportFieldAutoStyle(), and SetExportOnlyUsedFieldDeclarations().

◆ rExport

SvXMLExport& XMLTextFieldExport::rExport
private

The documentation for this class was generated from the following files: