LibreOffice Module sw (master)
1
|
#include <unofield.hxx>
Classes | |
class | Impl |
Public Member Functions | |
SwServiceType | GetServiceId () const |
virtual sal_Int64 SAL_CALL | getSomething (const css::uno::Sequence< sal_Int8 > &rIdentifier) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &rServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | setPropertyValue (const OUString &rPropertyName, const css::uno::Any &rValue) override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &rPropertyName) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override |
virtual void SAL_CALL | update () override |
virtual void SAL_CALL | attach (const css::uno::Reference< css::text::XTextRange > &xTextRange) override |
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL | getAnchor () override |
virtual OUString SAL_CALL | getPresentation (sal_Bool bShowCommand) override |
virtual void SAL_CALL | attachTextFieldMaster (const css::uno::Reference< css::beans::XPropertySet > &xFieldMaster) override |
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL | getTextFieldMaster () override |
Static Public Member Functions | |
static void | TransmuteLeadToInputField (SwSetExpField &rField) |
Convert between SwSetExpField with InputFlag false and InputFlag true. More... | |
static css::uno::Reference< css::text::XTextField > | CreateXTextField (SwDoc *pDoc, SwFormatField const *pFormat, SwServiceType nServiceId=SwServiceType::Invalid) |
static const css::uno::Sequence< sal_Int8 > & | getUnoTunnelId () |
Private Member Functions | |
virtual | ~SwXTextField () override |
SwXTextField (SwFormatField &rFormat, SwDoc &rDoc) | |
SwXTextField (SwServiceType nServiceId, SwDoc *pDoc) | |
descriptor More... | |
Private Attributes | |
::sw::UnoImplPtr< Impl > | m_pImpl |
Definition at line 123 of file unofield.hxx.
|
overrideprivatevirtual |
Definition at line 1214 of file unofield.cxx.
|
private |
Definition at line 1209 of file unofield.cxx.
References Invalid, and m_pImpl.
Referenced by CreateXTextField().
|
private |
descriptor
Definition at line 1186 of file unofield.cxx.
References FieldTypeDatabase, FieldTypeDatabaseName, FieldTypeDatabaseSetNum, FieldTypeSetExp, FieldTypeTableFormula, m_pImpl, and USHRT_MAX.
|
overridevirtual |
Definition at line 2124 of file unofield.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 2497 of file unofield.cxx.
|
overridevirtual |
Definition at line 2507 of file unofield.cxx.
|
overridevirtual |
Definition at line 1352 of file unofield.cxx.
References SL::aData, aDocInfoSubTypeFromService, AF_FIXED, AF_NAME, AF_SHORTCUT, aName, assert(), Author, Chapter, SwGetExpField::ChgExpStr(), SwSetExpField::ChgExpStr(), CombinedChars, ConditionalText, SwMacroField::CreateMacroString(), Database, DatabaseName, DATEFLD, DateTime, DbNextSet, DbNumSet, DbSetNumber, Dde, DEFAULT, IDocumentContentOperations::DeleteAndJoin(), nsSwDocInfoSubType::DI_SUB_DATE, nsSwDocInfoSubType::DI_SUB_FIXED, nsSwDocInfoSubType::DI_SUB_TIME, DocInfo, DocStat, Dropdown, DS_CHAR, DS_GRF, DS_OLE, DS_PAGE, DS_PARA, DS_TBL, DS_WORD, DateTime::EMPTY, SwPaM::End(), ExtUser, FF_FIXED, FIELD_PROP_DATE_TIME, FIELD_PROP_FORMAT, FIELD_PROP_PAR4, FIELD_PROP_PROP_SEQ, FIELD_PROP_SHORT1, FIELD_PROP_SUBTYPE, FIELD_PROP_USHORT1, FIELD_PROP_USHORT2, 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, FieldTypeEmbeddedObjectCount, FieldTypeFileName, FieldTypeGetExp, FieldTypeGetReference, FieldTypeGraphicObjectCount, FieldTypeHiddenPara, FieldTypeHiddenText, FieldTypeInput, FieldTypeInputUser, FieldTypeJumpEdit, FieldTypeMacro, FieldTypePageCount, FieldTypePageNum, FieldTypeParagraphCount, FieldTypeRefPageGet, FieldTypeRefPageSet, FieldTypeScript, FieldTypeSetExp, FieldTypeTableCount, FieldTypeTableFormula, FieldTypeTemplateName, FieldTypeUser, FieldTypeUserExt, FieldTypeWordCount, Filename, FIXEDFLD, FORCEHINTEXPAND, OTextCursorHelper::GetDoc(), SwXTextRange::GetDoc(), SwPaM::GetDoc(), GetExp, SwFormatField::GetField(), SwTextNode::GetFieldTextAttrAt(), IDocumentFieldsAccess::GetFieldType(), SwTextAttr::GetFormatField(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentFieldsAccess(), SwDoc::getIDocumentMarkAccess(), SwIndex::GetIndex(), SwPaM::GetMark(), SwPostItField::GetName(), SwPaM::GetNode(), SwPaM::GetPoint(), SwTextField::GetpTextNode(), GetRef, SwTextAttr::GetStart(), SwDBField::GetSubType(), IDocumentFieldsAccess::GetSysFieldType(), SwTextField::GetTextNode(), SwNode::GetTextNode(), OTextCursorHelper::getUnoTunnelId(), SwXTextRange::getUnoTunnelId(), nsSwGetSetExpType::GSE_EXPR, nsSwGetSetExpType::GSE_FORMULA, nsSwGetSetExpType::GSE_STRING, SwPaM::HasMark(), HiddenPara, HiddenText, INP_TXT, INP_USR, Input, IDocumentFieldsAccess::InsertFieldType(), IDocumentContentOperations::InsertPoolItem(), SwXTextCursor::IsAtEndOfMeta(), JumpEdit, m_pImpl, Macro, IDocumentMarkAccess::makeAnnotationMark(), SwDBData::nCommandType, SwPosition::nContent, nType, PageNumber, PG_RANDOM, Postit, RefPageGet, RefPageSet, RES_TXTATR_ANNOTATION(), SwDBData::sCommand, Script, SwDBData::sDataSource, SetExp, SwAuthorField::SetExpansion(), SwFileNameField::SetExpansion(), SwExtUserField::SetExpansion(), SwDropDownField::SetHelp(), SwHiddenParaField::SetHidden(), SwSetExpField::SetInputFlag(), SwDropDownField::SetItems(), SwGetExpField::SetLateInitialization(), SwChapterField::SetLevel(), SwPaM::SetMark(), SwDropDownField::SetName(), SwDateTimeField::SetOffset(), SwPostItField::SetPar2(), SwSetExpField::SetPromptText(), SwDropDownField::SetSelectedItem(), SwSetExpField::SetSeqNumber(), SwDBSetNumberField::SetSetNumber(), SwRefPageGetField::SetText(), SwPostItField::SetTextObject(), SwDropDownField::SetToolTip(), SwPageNumberField::SetUserString(), SwHiddenTextField::SetValue(), SwValueField::SetValue(), SwPaM::Start(), nsSwExtendedSubType::SUB_CMD, nsSwExtendedSubType::SUB_INVISIBLE, Table, TemplateName, TIMEFLD, type, update(), User, USHRT_MAX, SwTextAttr::Which(), and sw::XTextRangeToSwPaM().
|
overridevirtual |
Definition at line 1306 of file unofield.cxx.
References SwXFieldMaster::GetFieldType(), SwFieldType::GetName(), SwXFieldMaster::getUnoTunnelId(), lcl_ServiceIdToResId(), m_pImpl, and SwFieldType::Which().
|
static |
Definition at line 1219 of file unofield.cxx.
References assert(), SwFormatField::GetXTextField(), Invalid, m_pImpl, and SwXTextField().
Referenced by SwUnoCursorHelper::getCursorPropertyValue(), SwXFieldMaster::getPropertyValue(), lcl_ExportHints(), SwXServiceProvider::MakeInstance(), and SwXFieldEnumeration::SwXFieldEnumeration().
Definition at line 2105 of file unofield.cxx.
References assert(), SwTextField::DeleteTextField(), and m_pImpl.
|
overridevirtual |
Definition at line 2068 of file unofield.cxx.
References SwXTextRange::CreateXTextRange(), IDocumentMarkAccess::getAnnotationMarksBegin(), IDocumentMarkAccess::getAnnotationMarksEnd(), SwPostItField::GetName(), SwTextField::GetPamForTextField(), m_pImpl, Postit, and SwField::Which().
|
overridevirtual |
Definition at line 2572 of file unofield.cxx.
|
overridevirtual |
Definition at line 1340 of file unofield.cxx.
References SwField::ExpandField(), SwField::GetFieldName(), and m_pImpl.
|
overridevirtual |
Definition at line 2139 of file unofield.cxx.
References aSwMapProvider, SwUnoPropertyMapProvider::GetPropertyMapEntries(), SwUnoPropertyMapProvider::GetPropertySet(), SfxItemPropertySet::getPropertySetInfo(), Invalid, lcl_GetPropertyMapOfService(), m_pImpl, and PROPERTY_MAP_PARAGRAPH_EXTENSIONS.
|
overridevirtual |
Definition at line 2313 of file unofield.cxx.
References aSwMapProvider, aTypes, SwViewShell::CalcLayout(), SwEditShell::CalcLayout(), FIELD_PROP_BOOL1, FIELD_PROP_BOOL2, FIELD_PROP_BOOL3, FIELD_PROP_BOOL4, FIELD_PROP_BYTE1, FIELD_PROP_DATE, FIELD_PROP_DATE_TIME, FIELD_PROP_DOUBLE, FIELD_PROP_FORMAT, FIELD_PROP_IS_FIELD_DISPLAYED, FIELD_PROP_IS_FIELD_USED, FIELD_PROP_PAR1, FIELD_PROP_PAR2, FIELD_PROP_PAR3, FIELD_PROP_PAR4, FIELD_PROP_PROP_SEQ, FIELD_PROP_SHORT1, FIELD_PROP_STRINGS, FIELD_PROP_SUBTYPE, FIELD_PROP_TEXT, FIELD_PROP_USHORT1, FIELD_PROP_USHORT2, SwContentNode::FindLayoutRect(), FN_UNO_ANCHOR_TYPE, FN_UNO_ANCHOR_TYPES, FN_UNO_TEXT_WRAP, SwScriptInfo::GetBoundsOfHiddenRange(), SfxItemPropertyMap::getByName(), IDocumentLayoutAccess::GetCurrentViewShell(), SwDoc::GetEditShell(), SwDoc::getIDocumentLayoutAccess(), SwNode::GetNodes(), SfxItemPropertySet::getPropertyMap(), SwUnoPropertyMapProvider::GetPropertySet(), SwTextAttr::GetStart(), SwTextField::GetTextNode(), SwNodes::IsDocNodes(), SwTextNode::IsHidden(), lcl_GetPropertyMapOfService(), m_pImpl, SfxItemPropertyMapEntry::nWID, PROPERTY_MAP_PARAGRAPH_EXTENSIONS, SwField::QueryValue(), and SwRect::Width().
SwServiceType SwXTextField::GetServiceId | ( | ) | const |
Definition at line 1246 of file unofield.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 1181 of file unofield.cxx.
Referenced by TransmuteLeadToInputField().
|
overridevirtual |
Definition at line 2596 of file unofield.cxx.
References SwXServiceProvider::GetProviderName(), m_pImpl, OldNameToNewName_Impl(), and sServiceName.
|
overridevirtual |
Definition at line 1330 of file unofield.cxx.
References SwXFieldMaster::CreateXFieldMaster(), and m_pImpl.
|
static |
Definition at line 1174 of file unofield.cxx.
References UnoTunnelIdInit::getSeq().
Referenced by TransmuteLeadToInputField().
|
overridevirtual |
Definition at line 2131 of file unofield.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 2502 of file unofield.cxx.
|
overridevirtual |
Definition at line 2512 of file unofield.cxx.
|
overridevirtual |
Definition at line 2160 of file unofield.cxx.
References assert(), aSwMapProvider, CHANGED, Database, FIELD_PROP_BOOL1, FIELD_PROP_BOOL2, FIELD_PROP_BOOL3, FIELD_PROP_BOOL4, FIELD_PROP_BYTE1, FIELD_PROP_DATE, FIELD_PROP_DATE_TIME, FIELD_PROP_DOUBLE, FIELD_PROP_FORMAT, FIELD_PROP_PAR1, FIELD_PROP_PAR2, FIELD_PROP_PAR3, FIELD_PROP_PAR4, FIELD_PROP_PROP_SEQ, FIELD_PROP_SHORT1, FIELD_PROP_STRINGS, FIELD_PROP_SUBTYPE, FIELD_PROP_USHORT1, FIELD_PROP_USHORT2, cppu::UnoType< class >::get(), SfxItemPropertyMap::getByName(), SWUnoHelper::GetEnumAsInt32(), SwDoc::getIDocumentFieldsAccess(), SwDoc::getIDocumentState(), SfxItemPropertySet::getPropertyMap(), SwUnoPropertyMapProvider::GetPropertySet(), SwTextAttr::GetStart(), SwTextField::GetTextNode(), lcl_GetPropertyMapOfService(), m_pImpl, SwPosition::nContent, SfxItemPropertyMapEntry::nFlags, SfxItemPropertyMapEntry::nWID, Postit, IDocumentFieldsAccess::PutValueToField(), IDocumentState::SetModified(), o3tl::tryAccess< bool >(), UNO_NAME_DATA_BASE_NAME, UNO_NAME_DATA_BASE_URL, UNO_NAME_DATA_COLUMN_NAME, UNO_NAME_DATA_TABLE_NAME, and SwField::Which().
|
overridevirtual |
Definition at line 2591 of file unofield.cxx.
References cppu::supportsService().
|
static |
Convert between SwSetExpField with InputFlag false and InputFlag true.
Unfortunately the InputFlag is exposed in the API as "Input" property and is mutable; in the UI and in ODF these are 2 different types of fields, so the API design is very questionable. In order to keep the mutable property, the whole thing has to be reconstructed from scratch, to replace the SwTextField hint with SwTextInputField or vice versa. The SwFormatField will be replaced - it must be, because the Which changes - but the SwXTextField must not be disposed in the operation, it has to be disconnected first and at the end connected to the new instance!
Definition at line 1263 of file unofield.cxx.
References assert(), SwFormatField::GetField(), SwSetExpField::GetFormatField(), SwSetExpField::GetInputFlag(), SwTextField::GetPamForTextField(), getSomething(), SwFormatField::GetTextField(), getUnoTunnelId(), SwFormatField::GetXTextField(), m_pImpl, RES_TXTATR_FIELD(), RES_TXTATR_INPUTFIELD(), void(), and SfxPoolItem::Which().
Referenced by SwSetExpField::PutValue().
|
overridevirtual |
Definition at line 2517 of file unofield.cxx.
References Author, DateTime, DocInfo, Expand, SwAuthorFieldType::Expand(), SwExtUserFieldType::Expand(), ExtUser, Filename, SwField::GetFormat(), SwField::GetLanguage(), SwDocInfoField::GetName(), SwDocInfoField::GetSubType(), SwExtUserField::GetSubType(), SwField::GetTyp(), m_pImpl, SwAuthorField::SetExpansion(), SwFileNameField::SetExpansion(), SwDocInfoField::SetExpansion(), SwExtUserField::SetExpansion(), DateTime::SYSTEM, and SwField::Which().
Referenced by attach().
|
private |
Definition at line 128 of file unofield.hxx.
Referenced by addEventListener(), attach(), attachTextFieldMaster(), CreateXTextField(), dispose(), getAnchor(), getPresentation(), getPropertySetInfo(), getPropertyValue(), GetServiceId(), getSupportedServiceNames(), getTextFieldMaster(), removeEventListener(), setPropertyValue(), SwXTextField(), TransmuteLeadToInputField(), and update().