LibreOffice Module sw (master) 1
|
#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>
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 [] |
|
static |
Definition at line 310 of file unofield.cxx.
References aSwMapProvider, SfxItemPropertyMap::getByName(), SfxItemPropertySet::getPropertyMap(), SwUnoPropertyMapProvider::GetPropertySet(), lcl_GetPropMapIdForFieldType(), nId, SfxItemPropertyMapEntry::nWID, and SwFieldType::Which().
Referenced by SwXFieldMaster::getPropertyValue(), and SwXFieldMaster::setPropertyValue().
|
static |
Definition at line 2670 of file unofield.cxx.
References COM_TEXT_FLDMASTER_CC, Database, Dde, SwStyleNameMapper::GetSpecialExtraUIName(), SetExp, comphelper::string::setToken(), TableOfAuthorities, Unknown, and User.
Referenced by SwXTextFieldMasters::getByName(), and SwXTextFieldMasters::hasByName().
|
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().
|
static |
Definition at line 277 of file unofield.cxx.
References Database, Dde, nId, 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, SetExp, TableOfAuthorities, and User.
Referenced by GetFieldTypeMId(), and SwXFieldMaster::getPropertySetInfo().
|
static |
Definition at line 195 of file unofield.cxx.
References aServiceToRes, ConditionalText, nsSwDocInfoSubType::DI_CHANGE, nsSwDocInfoSubType::DI_COMMENT, nsSwDocInfoSubType::DI_CREATE, nsSwDocInfoSubType::DI_CUSTOM, nsSwDocInfoSubType::DI_DOCNO, nsSwDocInfoSubType::DI_EDIT, nsSwDocInfoSubType::DI_KEYS, nsSwDocInfoSubType::DI_PRINT, nsSwDocInfoSubType::DI_SUB_AUTHOR, nsSwDocInfoSubType::DI_SUBJECT, nsSwDocInfoSubType::DI_TITLE, DocInfo, DocStat, DS_CHAR, DS_GRF, DS_OLE, DS_PAGE, DS_PARA, DS_TBL, DS_WORD, FieldTypeCharacterCount, FieldTypeConditionedText, FieldTypeDocInfoChangeAuthor, FieldTypeDocInfoChangeDateTime, FieldTypeDocInfoCreateAuthor, FieldTypeDocInfoCreateDateTime, FieldTypeDocInfoCustom, FieldTypeDocInfoDescription, FieldTypeDocInfoEditTime, FieldTypeDocInfoKeywords, FieldTypeDocInfoPrintAuthor, FieldTypeDocInfoPrintDateTime, FieldTypeDocInfoRevision, FieldTypeDocInfoSubject, FieldTypeDocInfoTitle, FieldTypeEmbeddedObjectCount, FieldTypeGraphicObjectCount, FieldTypeHiddenText, FieldTypeInputUser, FieldTypePageCount, FieldTypeParagraphCount, FieldTypeTableCount, FieldTypeWordCount, SwField::GetSubType(), HiddenText, INP_USR, Input, Invalid, Unknown, and SwField::Which().
|
static |
Definition at line 293 of file unofield.cxx.
References SAL_MAX_INT32, UNO_NAME_DDE_COMMAND_ELEMENT, UNO_NAME_DDE_COMMAND_FILE, UNO_NAME_DDE_COMMAND_TYPE, and UNO_NAME_IS_AUTOMATIC_UPDATE.
Referenced by SwXFieldMaster::getPropertyValue(), and SwXFieldMaster::setPropertyValue().
|
static |
Definition at line 184 of file unofield.cxx.
References aServiceToRes, and Unknown.
Referenced by SwXTextField::attachTextFieldMaster().
|
static |
Definition at line 2557 of file unofield.cxx.
References u.
Referenced by SwXTextField::getSupportedServiceNames().
const sal_uInt16 aDocInfoSubTypeFromService[] |
Definition at line 97 of file unofield.cxx.
Referenced by SwXTextField::attach().
const ServiceIdResId aServiceToRes[] |
Definition at line 128 of file unofield.cxx.
Referenced by lcl_GetServiceForField(), and lcl_ServiceIdToResId().
|
constexpr |
Definition at line 94 of file unofield.cxx.
Referenced by SwXTextFieldMasters::getInstanceName(), and lcl_GetIdByName().