LibreOffice Module sw (master)  1
Classes | Macros | Functions | Variables
unofield.cxx File Reference
#include <sal/config.h>
#include <algorithm>
#include <memory>
#include <unofield.hxx>
#include <unofieldcoll.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 <hints.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/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 <osl/mutex.hxx>
#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
 

Macros

#define COM_TEXT_FLDMASTER_CC   "com.sun.star.text.fieldmaster."
 

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 (const OUString &rPropertyName)
 
static sal_uInt16 GetFieldTypeMId (const OUString &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

const sal_uInt16 aDocInfoSubTypeFromService []
 
const ServiceIdResId aServiceToRes []
 

Macro Definition Documentation

#define COM_TEXT_FLDMASTER_CC   "com.sun.star.text.fieldmaster."

Definition at line 93 of file unofield.cxx.

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

Function Documentation

static sal_uInt16 GetFieldTypeMId ( const OUString &  rProperty,
const SwFieldType rTyp 
)
static
static SwFieldIds lcl_GetIdByName ( OUString &  rName,
OUString &  rTypeName 
)
static
static sal_uInt16 lcl_GetPropertyMapOfService ( SwServiceType  nServiceId)
static

Definition at line 323 of file unofield.cxx.

References assert(), 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, PROPERTY_MAP_FLDTYP_USER_EXT, and USHRT_MAX.

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

static sal_uInt16 lcl_GetPropMapIdForFieldType ( SwFieldIds  nWhich)
static
static SwServiceType lcl_GetServiceForField ( const SwField rField)
static
static sal_Int32 lcl_PropName2TokenPos ( const OUString &  rPropertyName)
static
static SwFieldIds lcl_ServiceIdToResId ( SwServiceType  nServiceId)
static

Definition at line 183 of file unofield.cxx.

References i, SAL_N_ELEMENTS, and Unknown.

Referenced by SwXTextField::attachTextFieldMaster().

static OUString OldNameToNewName_Impl ( const OUString &  rOld)
static

Definition at line 2585 of file unofield.cxx.

Referenced by SwXTextField::getSupportedServiceNames().

Variable Documentation

const sal_uInt16 aDocInfoSubTypeFromService[]
Initial value:
=
{
0,
0,
0,
0,
}
const SwDocInfoSubType DI_SUB_TIME
Definition: docufld.hxx:79
const SwDocInfoSubType DI_COMMENT
Definition: docufld.hxx:69
const SwDocInfoSubType DI_EDIT
Definition: docufld.hxx:74
const SwDocInfoSubType DI_SUBJECT
Definition: docufld.hxx:67
const SwDocInfoSubType DI_CUSTOM
Definition: docufld.hxx:75
const SwDocInfoSubType DI_PRINT
Definition: docufld.hxx:72
const SwDocInfoSubType DI_KEYS
Definition: docufld.hxx:68
const SwDocInfoSubType DI_CREATE
Definition: docufld.hxx:70
const SwDocInfoSubType DI_SUB_DATE
Definition: docufld.hxx:80
const SwDocInfoSubType DI_SUB_AUTHOR
Definition: docufld.hxx:78
const SwDocInfoSubType DI_DOCNO
Definition: docufld.hxx:73
const SwDocInfoSubType DI_CHANGE
Definition: docufld.hxx:71
const SwDocInfoSubType DI_TITLE
Definition: docufld.hxx:66

Definition at line 96 of file unofield.cxx.

Referenced by SwXTextField::attach().

const ServiceIdResId aServiceToRes[]

Definition at line 127 of file unofield.cxx.