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 (const OUString &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, const OUString &sDefault)
 attribute value More...
 
void ProcessString (enum::xmloff::token::XMLTokenEnum eXmlName, sal_uInt16 nValuePrefix, const OUString &sValue, const OUString &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 (const OUString &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, const OUString &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 (const OUString &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 (const OUString &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, const OUString &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 150 of file txtflde.hxx.

Constructor & Destructor Documentation

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

Definition at line 371 of file txtflde.cxx.

References SetExportOnlyUsedFieldDeclarations().

XMLTextFieldExport::~XMLTextFieldExport ( )

Definition at line 379 of file txtflde.cxx.

Member Function Documentation

void XMLTextFieldExport::ExplodeFieldMasterName ( const OUString &  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 2837 of file txtflde.cxx.

References gsFieldMasterPrefix(), and SAL_WARN.

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
void XMLTextFieldExport::ExportElement ( enum::xmloff::token::XMLTokenEnum  eElement,
bool  bAddSpace = false 
)
private

export an empty element

Parameters
bAddSpaceelement token

Referenced by ExportFieldHelper().

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
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 971 of file txtflde.cxx.

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

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 748 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.

void XMLTextFieldExport::ExportFieldDeclarations ( )

export field declarations.

export field declarations / field masters

to be called once at beginning of document body.

Definition at line 1915 of file txtflde.cxx.

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() )

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 1056 of file txtflde.cxx.

References aBuffer, SvXMLExport::AddAttribute(), aName, SvXMLExport::Characters(), sax::Converter::convertBool(), sax::Converter::convertDateTime(), DBG_ASSERT, ExportDataBaseElement(), ExportElement(), ExportMacro(), ExportMetaField(), f, 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(), 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(), IsStringField(), MakeFootnoteRefName(), MakeSequenceRefName(), MapAuthorFieldName(), MapChapterDisplayFormat(), MapCountFieldName(), MapDocInfoFieldName(), MapFilenameDisplayFormat(), MapMeasureKind(), MapPageNumberName(), MapPlaceholderType(), MapReferenceSource(), MapReferenceType(), MapSenderFieldName(), MapTemplateDisplayFormat(), SvtSaveOptions::ODFSVER_012, SvtSaveOptions::ODFSVER_013, SvtSaveOptions::ODFSVER_EXTENDED, ProcessBibliographyData(), ProcessBoolean(), ProcessCommandType(), ProcessDateTime(), ProcessDisplay(), ProcessInteger(), ProcessIntegerDef(), ProcessNumberingType(), ProcessParagraphSequence(), ProcessString(), ProcessStringSequence(), ProcessTimeOrDateTime(), ProcessValueAndType(), rExport, sName, 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().

void XMLTextFieldExport::ExportMacro ( const css::uno::Reference< css::beans::XPropertySet > &  rPropSet,
const OUString &  rContent 
)
private
void XMLTextFieldExport::ExportMetaField ( const css::uno::Reference< css::beans::XPropertySet > &  i_xMeta,
bool  i_bAutoStyles,
bool  i_bProgress,
bool &  rPrevCharIsSpace 
)
private
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 2865 of file txtflde.cxx.

References Any, DBG_ASSERT, and gsPropertyDependentTextFields().

SvXMLExport& XMLTextFieldExport::GetExport ( )
inlineprivate
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 384 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().

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

for XDependentTextFields, get PropertySet of FieldMaster

Definition at line 2856 of file txtflde.cxx.

Referenced by ExportFieldHelper(), and 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 631 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().

OUString XMLTextFieldExport::MakeFootnoteRefName ( sal_Int16  nSeqNo)
staticprivate

out: variable name

make reference name for a foot- or endnote

Definition at line 3451 of file txtflde.cxx.

Referenced by ExportFieldHelper().

OUString XMLTextFieldExport::MakeSequenceRefName ( sal_Int16  nSeqNo,
const OUString &  rSeqName 
)
staticprivate

make reference name for a sequence field

Definition at line 3458 of file txtflde.cxx.

Referenced by ExportFieldHelper().

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 2928 of file txtflde.cxx.

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

Referenced by ExportFieldHelper().

enum XMLTokenEnum XMLTextFieldExport::MapBibliographyFieldName ( const OUString &  sName)
static
enum XMLTokenEnum XMLTextFieldExport::MapChapterDisplayFormat ( sal_Int16  nType)
static
enum XMLTokenEnum XMLTextFieldExport::MapCountFieldName ( FieldIdEnum  nToken)
static
enum XMLTokenEnum XMLTextFieldExport::MapDocInfoFieldName ( enum FieldIdEnum  nToken)
static
enum FieldIdEnum XMLTextFieldExport::MapFieldName ( const OUString &  sFieldName,
const css::uno::Reference< css::beans::XPropertySet > &  xPropSet 
)
staticprivate

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

Definition at line 437 of file txtflde.cxx.

References 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().

enum XMLTokenEnum XMLTextFieldExport::MapFilenameDisplayFormat ( sal_Int16  nType)
static

map FilenameDisplayFormat to XML attribute names

Definition at line 3071 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().

enum XMLTokenEnum XMLTextFieldExport::MapMeasureKind ( sal_Int16  nKind)
static
enum XMLTokenEnum XMLTextFieldExport::MapPageNumberName ( const css::uno::Reference< css::beans::XPropertySet > &  xPropSet,
sal_Int32 &  nOffset 
)
static
enum XMLTokenEnum XMLTextFieldExport::MapPlaceholderType ( sal_uInt16  nType)
static
enum XMLTokenEnum XMLTextFieldExport::MapReferenceSource ( sal_Int16  nType)
static
enum XMLTokenEnum XMLTextFieldExport::MapReferenceType ( sal_Int16  nType)
static
enum XMLTokenEnum XMLTextFieldExport::MapSenderFieldName ( const css::uno::Reference< css::beans::XPropertySet > &  xPropSet)
static
enum XMLTokenEnum XMLTextFieldExport::MapTemplateDisplayFormat ( sal_Int16  nType)
static
void XMLTextFieldExport::ProcessBibliographyData ( const css::uno::Reference< css::beans::XPropertySet > &  rPropertySet)
private

date/time value

export all attributes for bibliography data fields

Definition at line 2702 of file txtflde.cxx.

References SvXMLExport::AddAttribute(), Any, SvXMLUnitConverter::convertEnum(), gsPropertyFields(), MapBibliographyFieldName(), rExport, xmloff::token::XML_BIBLIOGRAPHY_TYPE, and XML_NAMESPACE_TEXT.

Referenced by ExportFieldHelper().

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 2444 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().

void XMLTextFieldExport::ProcessCommandType ( sal_Int32  nCommandType)
private
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().

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?
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
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 2421 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().

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 2553 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().

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 2565 of file txtflde.cxx.

References ProcessInteger().

Referenced by ExportFieldHelper().

void XMLTextFieldExport::ProcessNumberingType ( sal_Int16  nNumberingType)
private
void XMLTextFieldExport::ProcessParagraphSequence ( const OUString &  sParagraphSequence)
private

default value token

export a string as a sequence of paragraphs

Parameters
sParagraphSequencestring containing the paragraphs

Definition at line 2537 of file txtflde.cxx.

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

Referenced by ExportFieldHelper().

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().

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)
void XMLTextFieldExport::ProcessString ( enum::xmloff::token::XMLTokenEnum  eXmlName,
const OUString &  sValue,
const OUString &  sDefault 
)
private

attribute value

export a string attribute, omit if default

Parameters
sValueattribute token (namespace text)
sDefaultattribute value
void XMLTextFieldExport::ProcessString ( enum::xmloff::token::XMLTokenEnum  eXmlName,
sal_uInt16  nValuePrefix,
const OUString &  sValue,
const OUString &  sDefault 
)
private

default value; omit if equal

export a string attribute, omit if default

Parameters
nValuePrefixattribute token (namespace text)
sDefaultattribute value
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
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
void XMLTextFieldExport::ProcessStringSequence ( const css::uno::Sequence< OUString > &  rSequence,
const OUString &  sSelected 
)
private

css::sdb::CommandType

Referenced by ExportFieldHelper().

void XMLTextFieldExport::ProcessStringSequence ( const css::uno::Sequence< OUString > &  rSequence,
sal_Int32  nSelected 
)
private
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 2661 of file txtflde.cxx.

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

Referenced by ExportFieldHelper().

void XMLTextFieldExport::ProcessValueAndType ( bool  bIsString,
sal_Int32  nFormatKey,
const OUString &  sContent,
const OUString &  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 2356 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().

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 2215 of file txtflde.cxx.

References map, and pUsedMasters.

Referenced by XMLTextFieldExport().

Member Data Documentation

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

Definition at line 410 of file txtflde.hxx.

Referenced by ExportField(), and ExportFieldAutoStyle().

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 158 of file txtflde.hxx.

Referenced by ExportFieldAutoStyle(), and SetExportOnlyUsedFieldDeclarations().

SvXMLExport& XMLTextFieldExport::rExport
private

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