LibreOffice Module sw (master) 1
Classes | Functions | Variables
unofield.cxx File Reference
#include <sal/config.h>
#include <algorithm>
#include <memory>
#include <unofield.hxx>
#include <unofieldcoll.hxx>
#include <unobookmark.hxx>
#include <swtypes.hxx>
#include <cmdid.h>
#include <doc.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <IDocumentStatistics.hxx>
#include <IDocumentStylePoolAccess.hxx>
#include <IDocumentLayoutAccess.hxx>
#include <IDocumentState.hxx>
#include <fmtfld.hxx>
#include <txtfld.hxx>
#include <ndtxt.hxx>
#include <unomap.hxx>
#include <unoprnms.hxx>
#include <unotextrange.hxx>
#include <unotextcursor.hxx>
#include <unocoll.hxx>
#include <sfx2/linkmgr.hxx>
#include <editsh.hxx>
#include <viewsh.hxx>
#include <comphelper/interfacecontainer4.hxx>
#include <comphelper/servicehelper.hxx>
#include <comphelper/string.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/util/DateTime.hpp>
#include <com/sun/star/util/Date.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/text/SetVariableType.hpp>
#include <com/sun/star/text/WrapTextMode.hpp>
#include <com/sun/star/text/TextContentAnchorType.hpp>
#include <authfld.hxx>
#include <flddat.hxx>
#include <dbfld.hxx>
#include <usrfld.hxx>
#include <docufld.hxx>
#include <expfld.hxx>
#include <chpfld.hxx>
#include <flddropdown.hxx>
#include <poolfmt.hxx>
#include <strings.hrc>
#include <pagedesc.hxx>
#include <docary.hxx>
#include <reffld.hxx>
#include <ddefld.hxx>
#include <SwStyleNameMapper.hxx>
#include <swunohelper.hxx>
#include <unofldmid.h>
#include <scriptinfo.hxx>
#include <tools/datetime.hxx>
#include <tools/urlobj.hxx>
#include <svl/itemprop.hxx>
#include <svl/listener.hxx>
#include <svx/dataaccessdescriptor.hxx>
#include <o3tl/any.hxx>
#include <o3tl/safeint.hxx>
#include <mutex>
#include <vcl/svapp.hxx>
#include <textapi.hxx>
#include <fmtmeta.hxx>
#include <vector>
Include dependency graph for unofield.cxx:

Go to the source code of this file.

Classes

class  SwXFieldMaster::Impl
 
class  SwXTextField::Impl
 
class  SwXTextFieldTypes::Impl
 
class  SwXFieldEnumeration::Impl
 

Functions

static SwFieldIds lcl_ServiceIdToResId (SwServiceType nServiceId)
 
static SwServiceType lcl_GetServiceForField (const SwField &rField)
 
static sal_uInt16 lcl_GetPropMapIdForFieldType (SwFieldIds nWhich)
 
static sal_Int32 lcl_PropName2TokenPos (std::u16string_view rPropertyName)
 
static sal_uInt16 GetFieldTypeMId (std::u16string_view rProperty, const SwFieldType &rTyp)
 
static sal_uInt16 lcl_GetPropertyMapOfService (SwServiceType nServiceId)
 
static OUString OldNameToNewName_Impl (const OUString &rOld)
 
static SwFieldIds lcl_GetIdByName (OUString &rName, OUString &rTypeName)
 

Variables

constexpr OUStringLiteral COM_TEXT_FLDMASTER_CC = u"com.sun.star.text.fieldmaster."
 
const sal_uInt16 aDocInfoSubTypeFromService []
 
const ServiceIdResId aServiceToRes []
 

Function Documentation

◆ GetFieldTypeMId()

static sal_uInt16 GetFieldTypeMId ( std::u16string_view  rProperty,
const SwFieldType rTyp 
)
static

◆ lcl_GetIdByName()

static SwFieldIds lcl_GetIdByName ( OUString &  rName,
OUString &  rTypeName 
)
static

◆ lcl_GetPropertyMapOfService()

static sal_uInt16 lcl_GetPropertyMapOfService ( SwServiceType  nServiceId)
static

Definition at line 324 of file unofield.cxx.

References FieldMasterBibliography, FieldMasterDatabase, FieldMasterDDE, FieldMasterDummy2, FieldMasterDummy3, FieldMasterDummy4, FieldMasterDummy5, FieldMasterSetExp, FieldMasterUser, FieldTypeAnnotation, FieldTypeAuthor, FieldTypeBibliography, FieldTypeChapter, FieldTypeCharacterCount, FieldTypeCombinedCharacters, FieldTypeConditionedText, FieldTypeDatabase, FieldTypeDatabaseName, FieldTypeDatabaseNextSet, FieldTypeDatabaseNumSet, FieldTypeDatabaseSetNum, FieldTypeDateTime, FieldTypeDDE, FieldTypeDocInfo, FieldTypeDocInfoChangeAuthor, FieldTypeDocInfoChangeDateTime, FieldTypeDocInfoCreateAuthor, FieldTypeDocInfoCreateDateTime, FieldTypeDocInfoCustom, FieldTypeDocInfoDescription, FieldTypeDocInfoEditTime, FieldTypeDocInfoKeywords, FieldTypeDocInfoPrintAuthor, FieldTypeDocInfoPrintDateTime, FieldTypeDocInfoRevision, FieldTypeDocInfoSubject, FieldTypeDocInfoTitle, FieldTypeDropdown, FieldTypeDummy0, FieldTypeDummy4, FieldTypeDummy5, FieldTypeDummy6, FieldTypeDummy7, FieldTypeEmbeddedObjectCount, FieldTypeFileName, FieldTypeGetExp, FieldTypeGetReference, FieldTypeGraphicObjectCount, FieldTypeHiddenPara, FieldTypeHiddenText, FieldTypeInput, FieldTypeInputUser, FieldTypeJumpEdit, FieldTypeMacro, FieldTypePageCount, FieldTypePageNum, FieldTypeParagraphCount, FieldTypeRefPageGet, FieldTypeRefPageSet, FieldTypeScript, FieldTypeSetExp, FieldTypeTableCount, FieldTypeTableFormula, FieldTypeTemplateName, FieldTypeUser, FieldTypeUserExt, FieldTypeWordCount, PROPERTY_MAP_FLDMSTR_BIBLIOGRAPHY, PROPERTY_MAP_FLDMSTR_DATABASE, PROPERTY_MAP_FLDMSTR_DDE, PROPERTY_MAP_FLDMSTR_DUMMY0, PROPERTY_MAP_FLDMSTR_SET_EXP, PROPERTY_MAP_FLDMSTR_USER, PROPERTY_MAP_FLDTYP_ANNOTATION, PROPERTY_MAP_FLDTYP_AUTHOR, PROPERTY_MAP_FLDTYP_BIBLIOGRAPHY, PROPERTY_MAP_FLDTYP_CHAPTER, PROPERTY_MAP_FLDTYP_COMBINED_CHARACTERS, PROPERTY_MAP_FLDTYP_CONDITIONED_TEXT, PROPERTY_MAP_FLDTYP_DATABASE, PROPERTY_MAP_FLDTYP_DATABASE_NAME, PROPERTY_MAP_FLDTYP_DATABASE_NEXT_SET, PROPERTY_MAP_FLDTYP_DATABASE_NUM_SET, PROPERTY_MAP_FLDTYP_DATABASE_SET_NUM, PROPERTY_MAP_FLDTYP_DATETIME, PROPERTY_MAP_FLDTYP_DDE, PROPERTY_MAP_FLDTYP_DOC_INFO, PROPERTY_MAP_FLDTYP_DOCINFO_AUTHOR, PROPERTY_MAP_FLDTYP_DOCINFO_CUSTOM, PROPERTY_MAP_FLDTYP_DOCINFO_DATE_TIME, PROPERTY_MAP_FLDTYP_DOCINFO_EDIT_TIME, PROPERTY_MAP_FLDTYP_DOCINFO_MISC, PROPERTY_MAP_FLDTYP_DOCINFO_REVISION, PROPERTY_MAP_FLDTYP_DOCSTAT, PROPERTY_MAP_FLDTYP_DROPDOWN, PROPERTY_MAP_FLDTYP_DUMMY_0, PROPERTY_MAP_FLDTYP_FILE_NAME, PROPERTY_MAP_FLDTYP_GET_EXP, PROPERTY_MAP_FLDTYP_GET_REFERENCE, PROPERTY_MAP_FLDTYP_HIDDEN_PARA, PROPERTY_MAP_FLDTYP_HIDDEN_TEXT, PROPERTY_MAP_FLDTYP_INPUT, PROPERTY_MAP_FLDTYP_JUMP_EDIT, PROPERTY_MAP_FLDTYP_MACRO, PROPERTY_MAP_FLDTYP_PAGE_NUM, PROPERTY_MAP_FLDTYP_REF_PAGE_GET, PROPERTY_MAP_FLDTYP_REF_PAGE_SET, PROPERTY_MAP_FLDTYP_SCRIPT, PROPERTY_MAP_FLDTYP_SET_EXP, PROPERTY_MAP_FLDTYP_TABLE_FORMULA, PROPERTY_MAP_FLDTYP_TEMPLATE_NAME, PROPERTY_MAP_FLDTYP_USER, and PROPERTY_MAP_FLDTYP_USER_EXT.

Referenced by SwXTextField::getPropertySetInfo(), SwXTextField::getPropertyValue(), and SwXTextField::setPropertyValue().

◆ lcl_GetPropMapIdForFieldType()

static sal_uInt16 lcl_GetPropMapIdForFieldType ( SwFieldIds  nWhich)
static

◆ lcl_GetServiceForField()

static SwServiceType lcl_GetServiceForField ( const SwField rField)
static

◆ lcl_PropName2TokenPos()

static sal_Int32 lcl_PropName2TokenPos ( std::u16string_view  rPropertyName)
static

◆ lcl_ServiceIdToResId()

static SwFieldIds lcl_ServiceIdToResId ( SwServiceType  nServiceId)
static

Definition at line 184 of file unofield.cxx.

References aServiceToRes, and Unknown.

Referenced by SwXTextField::attachTextFieldMaster().

◆ OldNameToNewName_Impl()

static OUString OldNameToNewName_Impl ( const OUString &  rOld)
static

Definition at line 2557 of file unofield.cxx.

References u.

Referenced by SwXTextField::getSupportedServiceNames().

Variable Documentation

◆ aDocInfoSubTypeFromService

const sal_uInt16 aDocInfoSubTypeFromService[]
Initial value:
=
{
0,
0,
0,
0,
}
const SwDocInfoSubType DI_DOCNO
Definition: docufld.hxx:78
const SwDocInfoSubType DI_SUB_AUTHOR
Definition: docufld.hxx:83
const SwDocInfoSubType DI_CUSTOM
Definition: docufld.hxx:80
const SwDocInfoSubType DI_CHANGE
Definition: docufld.hxx:76
const SwDocInfoSubType DI_COMMENT
Definition: docufld.hxx:74
const SwDocInfoSubType DI_PRINT
Definition: docufld.hxx:77
const SwDocInfoSubType DI_SUB_DATE
Definition: docufld.hxx:85
const SwDocInfoSubType DI_KEYS
Definition: docufld.hxx:73
const SwDocInfoSubType DI_EDIT
Definition: docufld.hxx:79
const SwDocInfoSubType DI_SUBJECT
Definition: docufld.hxx:72
const SwDocInfoSubType DI_TITLE
Definition: docufld.hxx:71
const SwDocInfoSubType DI_SUB_TIME
Definition: docufld.hxx:84
const SwDocInfoSubType DI_CREATE
Definition: docufld.hxx:75

Definition at line 97 of file unofield.cxx.

Referenced by SwXTextField::attach().

◆ aServiceToRes

const ServiceIdResId aServiceToRes[]

Definition at line 128 of file unofield.cxx.

Referenced by lcl_GetServiceForField(), and lcl_ServiceIdToResId().

◆ COM_TEXT_FLDMASTER_CC

constexpr OUStringLiteral COM_TEXT_FLDMASTER_CC = u"com.sun.star.text.fieldmaster."
constexpr

Definition at line 94 of file unofield.cxx.

Referenced by SwXTextFieldMasters::getInstanceName(), and lcl_GetIdByName().