LibreOffice Module xmloff (master)  1
Enumerations | Functions | Variables
txtfldi.cxx File Reference
#include <txtfldi.hxx>
#include <txtvfldi.hxx>
#include <xmloff/xmlimp.hxx>
#include <xmloff/txtimp.hxx>
#include <xmloff/xmlnamespace.hxx>
#include <xmloff/namespacemap.hxx>
#include <xmloff/xmltoken.hxx>
#include <xmloff/xmluconv.hxx>
#include <xmloff/xmlement.hxx>
#include <XMLStringBufferImportContext.hxx>
#include <xmloff/XMLEventsImportContext.hxx>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/xml/sax/XAttributeList.hpp>
#include <com/sun/star/text/UserDataPart.hpp>
#include <com/sun/star/style/NumberingType.hpp>
#include <com/sun/star/text/PlaceholderType.hpp>
#include <com/sun/star/text/ReferenceFieldPart.hpp>
#include <com/sun/star/text/ReferenceFieldSource.hpp>
#include <com/sun/star/text/XTextContent.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertySetInfo.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/text/XTextFieldsSupplier.hpp>
#include <com/sun/star/text/XDependentTextField.hpp>
#include <com/sun/star/text/FilenameDisplayFormat.hpp>
#include <com/sun/star/text/ChapterFormat.hpp>
#include <com/sun/star/text/TemplateDisplayFormat.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/text/BibliographyDataType.hpp>
#include <com/sun/star/util/XUpdatable.hpp>
#include <com/sun/star/sdb/CommandType.hpp>
#include <com/sun/star/container/XIndexReplace.hpp>
#include <sax/tools/converter.hxx>
#include <rtl/ustring.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <rtl/math.hxx>
#include <tools/debug.hxx>
#include <osl/diagnose.h>
Include dependency graph for txtfldi.cxx:

Go to the source code of this file.

Enumerations

enum  DdeFieldDeclAttrs
 

Functions

constexpr OUStringLiteral gsPropertyFieldSubType (u"UserDataType")
 
constexpr OUStringLiteral gsPropertyAuthorFullName (u"FullName")
 
constexpr OUStringLiteral gsPropertyUserText (u"UserText")
 
constexpr OUStringLiteral gsPropertyPlaceholderType (u"PlaceHolderType")
 
constexpr OUStringLiteral gsPropertyPlaceholder (u"PlaceHolder")
 
constexpr OUStringLiteral gsPropertyAdjust (u"Adjust")
 
constexpr OUStringLiteral gsPropertyDataBaseName (u"DataBaseName")
 
constexpr OUStringLiteral gsPropertyDataBaseURL (u"DataBaseURL")
 
constexpr OUStringLiteral gsPropertyTableName (u"DataTableName")
 
constexpr OUStringLiteral gsPropertyDataCommandType (u"DataCommandType")
 
constexpr OUStringLiteral gsPropertyIsVisible (u"IsVisible")
 
constexpr OUStringLiteral sPropertyRevision (u"Revision")
 
constexpr OUStringLiteral gsPropertyTrueContent (u"TrueContent")
 
constexpr OUStringLiteral gsPropertyFalseContent (u"FalseContent")
 
constexpr OUStringLiteral gsPropertyIsConditionTrue (u"IsConditionTrue")
 
constexpr OUStringLiteral gsPropertyChapterFormat (u"ChapterFormat")
 
constexpr OUStringLiteral gsPropertyLevel (u"Level")
 
static bool lcl_ProcessLabel (const SvXMLImport &rImport, const Reference< XAttributeList > &xAttrList, OUString &rLabel, bool &rIsSelected)
 

Variables

constexpr char16_t sAPI_textfield_prefix [] = u"com.sun.star.text.TextField."
 
constexpr char16_t sAPI_fieldmaster_prefix [] = u"com.sun.star.text.FieldMaster."
 
const char sAPI_presentation_prefix [] = "com.sun.star.presentation.TextField."
 
const char sAPI_date_time [] = "DateTime"
 
const char sAPI_page_number [] = "PageNumber"
 
const char sAPI_docinfo_change_date_time [] = "DocInfo.ChangeDateTime"
 
const char sAPI_docinfo_create_date_time [] = "DocInfo.CreateDateTime"
 
const char sAPI_docinfo_custom [] = "DocInfo.Custom"
 
const char sAPI_docinfo_print_date_time [] = "DocInfo.PrintDateTime"
 
const char sAPI_dde [] = "DDE"
 
const char sAPI_url [] = "URL"
 
const char sAPI_is_fixed [] = "IsFixed"
 
const char sAPI_content [] = "Content"
 
const char sAPI_author [] = "Author"
 
const char sAPI_hint [] = "Hint"
 
const char sAPI_name [] = "Name"
 
const char sAPI_sub_type [] = "SubType"
 
const char sAPI_date_time_value [] = "DateTimeValue"
 
const char sAPI_number_format [] = "NumberFormat"
 
const char sAPI_numbering_type [] = "NumberingType"
 
const char sAPI_offset [] = "Offset"
 
const char sAPI_condition [] = "Condition"
 
const char sAPI_set_number [] = "SetNumber"
 
const char sAPI_file_format [] = "FileFormat"
 
const char sAPI_is_date [] = "IsDate"
 
const char sAPI_current_presentation [] = "CurrentPresentation"
 
const char sAPI_is_hidden [] = "IsHidden"
 
const char sAPI_is_fixed_language [] = "IsFixedLanguage"
 
const char sAPI_true [] = "TRUE"
 
SvXMLEnumMapEntry< PageNumberType > const lcl_aSelectPageAttrMap []
 
const SvXMLEnumMapEntry< sal_uInt16 > aFilenameDisplayMap []
 
const SvXMLEnumMapEntry< sal_uInt16 > aTemplateDisplayMap []
 
const SvXMLEnumMapEntry< sal_uInt16 > aChapterDisplayMap []
 
SvXMLEnumMapEntry< sal_uInt16 > const lcl_aReferenceTypeTokenMap []
 
const SvXMLTokenMapEntry aDdeDeclAttrTokenMap []
 
SvXMLEnumMapEntry< sal_uInt16 > const aBibliographyDataTypeMap []
 

Enumeration Type Documentation

Definition at line 2668 of file txtfldi.cxx.

Function Documentation

constexpr OUStringLiteral gsPropertyAdjust ( u"Adjust"  )
constexpr OUStringLiteral gsPropertyAuthorFullName ( u"FullName"  )
constexpr OUStringLiteral gsPropertyChapterFormat ( u"ChapterFormat"  )
constexpr OUStringLiteral gsPropertyDataBaseName ( u"DataBaseName"  )
constexpr OUStringLiteral gsPropertyDataBaseURL ( u"DataBaseURL"  )
constexpr OUStringLiteral gsPropertyDataCommandType ( u"DataCommandType"  )
constexpr OUStringLiteral gsPropertyFalseContent ( u"FalseContent"  )
constexpr OUStringLiteral gsPropertyFieldSubType ( u"UserDataType"  )
constexpr OUStringLiteral gsPropertyIsConditionTrue ( u"IsConditionTrue"  )
constexpr OUStringLiteral gsPropertyIsVisible ( u"IsVisible"  )
constexpr OUStringLiteral gsPropertyLevel ( u"Level"  )
constexpr OUStringLiteral gsPropertyPlaceholder ( u"PlaceHolder"  )
constexpr OUStringLiteral gsPropertyPlaceholderType ( u"PlaceHolderType"  )
constexpr OUStringLiteral gsPropertyTableName ( u"DataTableName"  )
constexpr OUStringLiteral gsPropertyTrueContent ( u"TrueContent"  )
constexpr OUStringLiteral gsPropertyUserText ( u"UserText"  )
static bool lcl_ProcessLabel ( const SvXMLImport rImport,
const Reference< XAttributeList > &  xAttrList,
OUString &  rLabel,
bool &  rIsSelected 
)
static
constexpr OUStringLiteral sPropertyRevision ( u"Revision"  )

Variable Documentation

SvXMLEnumMapEntry<sal_uInt16> const aBibliographyDataTypeMap[]
Initial value:
=
{
{ XML_ARTICLE, BibliographyDataType::ARTICLE },
{ XML_BOOK, BibliographyDataType::BOOK },
{ XML_BOOKLET, BibliographyDataType::BOOKLET },
{ XML_CONFERENCE, BibliographyDataType::CONFERENCE },
{ XML_CUSTOM1, BibliographyDataType::CUSTOM1 },
{ XML_CUSTOM2, BibliographyDataType::CUSTOM2 },
{ XML_CUSTOM3, BibliographyDataType::CUSTOM3 },
{ XML_CUSTOM4, BibliographyDataType::CUSTOM4 },
{ XML_CUSTOM5, BibliographyDataType::CUSTOM5 },
{ XML_EMAIL, BibliographyDataType::EMAIL },
{ XML_INBOOK, BibliographyDataType::INBOOK },
{ XML_INCOLLECTION, BibliographyDataType::INCOLLECTION },
{ XML_INPROCEEDINGS, BibliographyDataType::INPROCEEDINGS },
{ XML_JOURNAL, BibliographyDataType::JOURNAL },
{ XML_MANUAL, BibliographyDataType::MANUAL },
{ XML_MASTERSTHESIS, BibliographyDataType::MASTERSTHESIS },
{ XML_MISC, BibliographyDataType::MISC },
{ XML_PHDTHESIS, BibliographyDataType::PHDTHESIS },
{ XML_PROCEEDINGS, BibliographyDataType::PROCEEDINGS },
{ XML_TECHREPORT, BibliographyDataType::TECHREPORT },
{ XML_UNPUBLISHED, BibliographyDataType::UNPUBLISHED },
{ XML_WWW, BibliographyDataType::WWW },
}

Definition at line 3020 of file txtfldi.cxx.

Referenced by XMLBibliographyFieldImportContext::StartElement().

const SvXMLEnumMapEntry<sal_uInt16> aChapterDisplayMap[]
Initial value:

Definition at line 2152 of file txtfldi.cxx.

const SvXMLTokenMapEntry aDdeDeclAttrTokenMap[]
Initial value:
=
{
{ XML_NAMESPACE_OFFICE, XML_NAME, XML_TOK_DDEFIELD_NAME },
{ XML_NAMESPACE_OFFICE, XML_DDE_APPLICATION, XML_TOK_DDEFIELD_APPLICATION },
{ XML_NAMESPACE_OFFICE, XML_DDE_TOPIC, XML_TOK_DDEFIELD_TOPIC },
{ XML_NAMESPACE_OFFICE, XML_DDE_ITEM, XML_TOK_DDEFIELD_ITEM },
{ XML_NAMESPACE_OFFICE, XML_AUTOMATIC_UPDATE, XML_TOK_DDEFIELD_UPDATE },
}
constexpr sal_uInt16 XML_NAMESPACE_OFFICE
#define XML_TOKEN_MAP_END
Definition: xmltkmap.hxx:33

Definition at line 2679 of file txtfldi.cxx.

const SvXMLEnumMapEntry<sal_uInt16> aFilenameDisplayMap[]
Initial value:
=
{
{ XML_PATH, FilenameDisplayFormat::PATH },
{ XML_NAME, FilenameDisplayFormat::NAME },
{ XML_NAME_AND_EXTENSION, FilenameDisplayFormat::NAME_AND_EXT },
{ XML_FULL, FilenameDisplayFormat::FULL },
}

Definition at line 2015 of file txtfldi.cxx.

const SvXMLEnumMapEntry<sal_uInt16> aTemplateDisplayMap[]
Initial value:
=
{
{ XML_FULL, TemplateDisplayFormat::FULL },
{ XML_PATH, TemplateDisplayFormat::PATH },
{ XML_NAME, TemplateDisplayFormat::NAME },
{ XML_NAME_AND_EXTENSION, TemplateDisplayFormat::NAME_AND_EXT },
{ XML_AREA, TemplateDisplayFormat::AREA },
{ XML_TITLE, TemplateDisplayFormat::TITLE },
}

Definition at line 2097 of file txtfldi.cxx.

SvXMLEnumMapEntry<sal_uInt16> const lcl_aReferenceTypeTokenMap[]
Initial value:
=
{
{ XML_PAGE, ReferenceFieldPart::PAGE},
{ XML_CHAPTER, ReferenceFieldPart::CHAPTER },
{ XML_TEXT, ReferenceFieldPart::TEXT },
{ XML_DIRECTION, ReferenceFieldPart::UP_DOWN },
{ XML_CATEGORY_AND_VALUE, ReferenceFieldPart::CATEGORY_AND_NUMBER },
{ XML_CAPTION, ReferenceFieldPart::ONLY_CAPTION },
{ XML_VALUE, ReferenceFieldPart::ONLY_SEQUENCE_NUMBER },
{ XML_NUMBER, ReferenceFieldPart::NUMBER },
{ XML_NUMBER_NO_SUPERIOR, ReferenceFieldPart::NUMBER_NO_CONTEXT },
{ XML_NUMBER_ALL_SUPERIOR, ReferenceFieldPart::NUMBER_FULL_CONTEXT },
}

Definition at line 2549 of file txtfldi.cxx.

SvXMLEnumMapEntry<PageNumberType> const lcl_aSelectPageAttrMap[]
Initial value:
=
{
{ XML_PREVIOUS, PageNumberType_PREV },
{ XML_CURRENT, PageNumberType_CURRENT },
{ XML_NEXT, PageNumberType_NEXT },
{ XML_TOKEN_INVALID, PageNumberType(0) },
}

Definition at line 722 of file txtfldi.cxx.

const char sAPI_author[] = "Author"
const char sAPI_condition[] = "Condition"

Definition at line 108 of file txtfldi.cxx.

const char sAPI_content[] = "Content"
const char sAPI_current_presentation[] = "CurrentPresentation"
const char sAPI_date_time[] = "DateTime"

Definition at line 88 of file txtfldi.cxx.

const char sAPI_date_time_value[] = "DateTimeValue"

Definition at line 104 of file txtfldi.cxx.

Referenced by XMLAnnotationImportContext::PrepareField().

const char sAPI_dde[] = "DDE"
const char sAPI_docinfo_change_date_time[] = "DocInfo.ChangeDateTime"

Definition at line 90 of file txtfldi.cxx.

Referenced by XMLSimpleDocInfoImportContext::MapTokenToServiceName().

const char sAPI_docinfo_create_date_time[] = "DocInfo.CreateDateTime"

Definition at line 91 of file txtfldi.cxx.

Referenced by XMLSimpleDocInfoImportContext::MapTokenToServiceName().

const char sAPI_docinfo_custom[] = "DocInfo.Custom"
const char sAPI_docinfo_print_date_time[] = "DocInfo.PrintDateTime"

Definition at line 93 of file txtfldi.cxx.

Referenced by XMLSimpleDocInfoImportContext::MapTokenToServiceName().

constexpr char16_t sAPI_fieldmaster_prefix[] = u"com.sun.star.text.FieldMaster."
const char sAPI_file_format[] = "FileFormat"

Definition at line 110 of file txtfldi.cxx.

const char sAPI_hint[] = "Hint"

Definition at line 101 of file txtfldi.cxx.

Referenced by XMLMacroFieldImportContext::PrepareField().

const char sAPI_is_date[] = "IsDate"

Definition at line 111 of file txtfldi.cxx.

const char sAPI_is_fixed[] = "IsFixed"

Definition at line 98 of file txtfldi.cxx.

const char sAPI_is_fixed_language[] = "IsFixedLanguage"

Definition at line 114 of file txtfldi.cxx.

const char sAPI_is_hidden[] = "IsHidden"

Definition at line 113 of file txtfldi.cxx.

const char sAPI_name[] = "Name"
const char sAPI_number_format[] = "NumberFormat"

Definition at line 105 of file txtfldi.cxx.

const char sAPI_numbering_type[] = "NumberingType"

Definition at line 106 of file txtfldi.cxx.

Referenced by XMLPageVarGetFieldImportContext::PrepareField().

const char sAPI_offset[] = "Offset"

Definition at line 107 of file txtfldi.cxx.

Referenced by XMLPageVarSetFieldImportContext::PrepareField().

const char sAPI_page_number[] = "PageNumber"

Definition at line 89 of file txtfldi.cxx.

const char sAPI_presentation_prefix[] = "com.sun.star.presentation.TextField."
const char sAPI_set_number[] = "SetNumber"

Definition at line 109 of file txtfldi.cxx.

const char sAPI_sub_type[] = "SubType"

Definition at line 103 of file txtfldi.cxx.

constexpr char16_t sAPI_textfield_prefix[] = u"com.sun.star.text.TextField."

Definition at line 84 of file txtfldi.cxx.

Referenced by XMLDdeFieldImportContext::EndElement().

const char sAPI_true[] = "TRUE"

Definition at line 116 of file txtfldi.cxx.

const char sAPI_url[] = "URL"

Definition at line 95 of file txtfldi.cxx.

Referenced by XMLUrlFieldImportContext::PrepareField().