LibreOffice Module xmloff (master)  1
Functions | Variables
txtfldi.cxx File Reference
#include <sal/config.h>
#include <cassert>
#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.

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 Reference< XFastAttributeList > &xAttrList, OUString &rLabel, bool &rIsSelected)
 

Variables

constexpr OUStringLiteral 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."
 
constexpr OUStringLiteral sAPI_date_time = u"DateTime"
 
constexpr OUStringLiteral sAPI_page_number = u"PageNumber"
 
constexpr OUStringLiteral sAPI_docinfo_change_date_time = u"DocInfo.ChangeDateTime"
 
constexpr OUStringLiteral sAPI_docinfo_create_date_time = u"DocInfo.CreateDateTime"
 
constexpr OUStringLiteral sAPI_docinfo_custom = u"DocInfo.Custom"
 
constexpr OUStringLiteral sAPI_docinfo_print_date_time = u"DocInfo.PrintDateTime"
 
constexpr OUStringLiteral sAPI_dde = u"DDE"
 
constexpr OUStringLiteral sAPI_url = u"URL"
 
constexpr OUStringLiteral sAPI_is_fixed = u"IsFixed"
 
constexpr OUStringLiteral sAPI_content = u"Content"
 
constexpr OUStringLiteral sAPI_author = u"Author"
 
constexpr OUStringLiteral sAPI_hint = u"Hint"
 
constexpr OUStringLiteral sAPI_name = u"Name"
 
constexpr OUStringLiteral sAPI_sub_type = u"SubType"
 
constexpr OUStringLiteral sAPI_date_time_value = u"DateTimeValue"
 
constexpr OUStringLiteral sAPI_number_format = u"NumberFormat"
 
constexpr OUStringLiteral sAPI_numbering_type = u"NumberingType"
 
constexpr OUStringLiteral sAPI_offset = u"Offset"
 
constexpr OUStringLiteral sAPI_condition = u"Condition"
 
constexpr OUStringLiteral sAPI_set_number = u"SetNumber"
 
constexpr OUStringLiteral sAPI_file_format = u"FileFormat"
 
constexpr OUStringLiteral sAPI_is_date = u"IsDate"
 
constexpr OUStringLiteral sAPI_current_presentation = u"CurrentPresentation"
 
constexpr OUStringLiteral sAPI_is_hidden = u"IsHidden"
 
constexpr OUStringLiteral sAPI_is_fixed_language = u"IsFixedLanguage"
 
constexpr OUStringLiteral sAPI_true = u"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 []
 
SvXMLEnumMapEntry< sal_uInt16 > const aBibliographyDataTypeMap []
 

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 Reference< XFastAttributeList > &  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 2913 of file txtfldi.cxx.

Referenced by XMLBibliographyFieldImportContext::startFastElement().

const SvXMLEnumMapEntry<sal_uInt16> aChapterDisplayMap[]
Initial value:

Definition at line 2090 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 1955 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 2036 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 2481 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 670 of file txtfldi.cxx.

constexpr OUStringLiteral sAPI_author = u"Author"
constexpr OUStringLiteral sAPI_condition = u"Condition"

Definition at line 113 of file txtfldi.cxx.

constexpr OUStringLiteral sAPI_content = u"Content"
constexpr OUStringLiteral sAPI_current_presentation = u"CurrentPresentation"
constexpr OUStringLiteral sAPI_date_time = u"DateTime"

Definition at line 93 of file txtfldi.cxx.

constexpr OUStringLiteral sAPI_date_time_value = u"DateTimeValue"

Definition at line 109 of file txtfldi.cxx.

Referenced by XMLAnnotationImportContext::PrepareField().

constexpr OUStringLiteral sAPI_dde = u"DDE"
constexpr OUStringLiteral sAPI_docinfo_change_date_time = u"DocInfo.ChangeDateTime"

Definition at line 95 of file txtfldi.cxx.

Referenced by XMLSimpleDocInfoImportContext::MapTokenToServiceName().

constexpr OUStringLiteral sAPI_docinfo_create_date_time = u"DocInfo.CreateDateTime"

Definition at line 96 of file txtfldi.cxx.

Referenced by XMLSimpleDocInfoImportContext::MapTokenToServiceName().

constexpr OUStringLiteral sAPI_docinfo_custom = u"DocInfo.Custom"
constexpr OUStringLiteral sAPI_docinfo_print_date_time = u"DocInfo.PrintDateTime"

Definition at line 98 of file txtfldi.cxx.

Referenced by XMLSimpleDocInfoImportContext::MapTokenToServiceName().

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

Definition at line 115 of file txtfldi.cxx.

constexpr OUStringLiteral sAPI_hint = u"Hint"

Definition at line 106 of file txtfldi.cxx.

Referenced by XMLMacroFieldImportContext::PrepareField().

constexpr OUStringLiteral sAPI_is_date = u"IsDate"

Definition at line 116 of file txtfldi.cxx.

constexpr OUStringLiteral sAPI_is_fixed = u"IsFixed"

Definition at line 103 of file txtfldi.cxx.

constexpr OUStringLiteral sAPI_is_fixed_language = u"IsFixedLanguage"

Definition at line 119 of file txtfldi.cxx.

constexpr OUStringLiteral sAPI_is_hidden = u"IsHidden"

Definition at line 118 of file txtfldi.cxx.

constexpr OUStringLiteral sAPI_name = u"Name"
constexpr OUStringLiteral sAPI_number_format = u"NumberFormat"

Definition at line 110 of file txtfldi.cxx.

constexpr OUStringLiteral sAPI_numbering_type = u"NumberingType"

Definition at line 111 of file txtfldi.cxx.

Referenced by XMLPageVarGetFieldImportContext::PrepareField().

constexpr OUStringLiteral sAPI_offset = u"Offset"

Definition at line 112 of file txtfldi.cxx.

Referenced by XMLPageVarSetFieldImportContext::PrepareField().

constexpr OUStringLiteral sAPI_page_number = u"PageNumber"

Definition at line 94 of file txtfldi.cxx.

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

Definition at line 114 of file txtfldi.cxx.

constexpr OUStringLiteral sAPI_sub_type = u"SubType"

Definition at line 108 of file txtfldi.cxx.

constexpr OUStringLiteral sAPI_textfield_prefix = u"com.sun.star.text.TextField."

Definition at line 89 of file txtfldi.cxx.

Referenced by XMLDdeFieldImportContext::endFastElement().

constexpr OUStringLiteral sAPI_true = u"TRUE"

Definition at line 121 of file txtfldi.cxx.

constexpr OUStringLiteral sAPI_url = u"URL"

Definition at line 100 of file txtfldi.cxx.

Referenced by XMLUrlFieldImportContext::PrepareField().