LibreOffice Module sw (master) 1
|
#include <fmtfld.hxx>
Public Member Functions | |
SwFormatField (const SwField &rField) | |
Single argument constructors shall be explicit. More... | |
SwFormatField (const SwFormatField &rAttr) | |
virtual | ~SwFormatField () override |
virtual bool | operator== (const SfxPoolItem &) const override |
"Pure virtual methods" of SfxPoolItem. More... | |
virtual SwFormatField * | Clone (SfxItemPool *pPool=nullptr) const override |
virtual bool | GetInfo (SfxPoolItem &rInfo) const override |
void | InvalidateField () |
const SwField * | GetField () const |
SwField * | GetField () |
void | SetField (std::unique_ptr< SwField > pField) |
Sets current field. More... | |
const SwTextField * | GetTextField () const |
SwTextField * | GetTextField () |
void | SetTextField (SwTextField &rTextField) |
void | ClearTextField () |
void | RegisterToFieldType (SwFieldType &) |
bool | IsFieldInDoc () const |
bool | IsProtect () const |
SAL_DLLPRIVATE unotools::WeakReference< SwXTextField > const & | GetXTextField () const |
SAL_DLLPRIVATE void | SetXTextField (rtl::Reference< SwXTextField > const &xTextField) |
void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
void | ForceUpdateTextNode () |
void | UpdateTextNode (const SfxHint &rHint) |
void | UpdateDocPos (const SwTwips nDocPos) |
Public Member Functions inherited from SfxPoolItem | |
void | AddRef (sal_uInt32 n=1) const |
virtual | ~SfxPoolItem () |
void | SetWhich (sal_uInt16 nId) |
sal_uInt16 | Which () const |
T & | StaticWhichCast (TypedWhichId< T > nId) |
const T & | StaticWhichCast (TypedWhichId< T > nId) const |
T * | DynamicWhichCast (TypedWhichId< T > nId) |
const T * | DynamicWhichCast (TypedWhichId< T > nId) const |
virtual bool | operator== (const SfxPoolItem &) const=0 |
bool | operator!= (const SfxPoolItem &rItem) const |
virtual bool | operator< (const SfxPoolItem &) const |
virtual bool | IsSortable () const |
virtual bool | HasLookup () const |
virtual lookup_iterator | Lookup (lookup_iterator, lookup_iterator end) const |
virtual bool | GetPresentation (SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const |
virtual void | ScaleMetrics (tools::Long lMult, tools::Long lDiv) |
virtual bool | HasMetrics () const |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) |
virtual SfxPoolItem * | Clone (SfxItemPool *pPool=nullptr) const=0 |
std::unique_ptr< SfxPoolItem > | CloneSetWhich (sal_uInt16 nNewWhich) const |
std::unique_ptr< T > | CloneSetWhich (TypedWhichId< T > nId) const |
sal_uInt32 | GetRefCount () const |
SfxItemKind | GetKind () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
virtual boost::property_tree::ptree | dumpAsJSON () const |
virtual bool | IsVoidItem () const |
Public Member Functions inherited from SfxBroadcaster | |
SfxBroadcaster () | |
SfxBroadcaster (const SfxBroadcaster &rBC) | |
virtual | ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE |
void | Broadcast (const SfxHint &rHint) |
bool | HasListeners () const |
size_t | GetListenerCount () const |
void | ForAllListeners (std::function< bool(SfxListener *)> f) const |
Private Member Functions | |
SwFormatField (sal_uInt16 nWhich) | |
virtual void | SwClientNotify (const SwModify &rModify, const SfxHint &rHint) override |
Private Attributes | |
unotools::WeakReference< SwXTextField > | m_wXTextField |
std::unique_ptr< SwField > | mpField |
SwTextField * | mpTextField |
Friends | |
void | InitCore () |
Additional Inherited Members | |
Public Types inherited from SfxPoolItem | |
typedef std::vector< SfxPoolItem * >::const_iterator | lookup_iterator |
Protected Member Functions inherited from SfxPoolItem | |
SfxPoolItem (sal_uInt16 nWhich=0) | |
SfxPoolItem (const SfxPoolItem &rCopy) | |
Protected Member Functions inherited from SfxBroadcaster | |
void | Forward (SfxBroadcaster &rBC, const SfxHint &rHint) |
Definition at line 99 of file fmtfld.hxx.
|
private |
Definition at line 48 of file atrfld.cxx.
Referenced by Clone().
|
explicit |
Single argument constructors shall be explicit.
Definition at line 55 of file atrfld.cxx.
References SwSetExpField::GetInputFlag(), SwField::GetTyp(), SwSetExpFieldType::GetType(), nsSwGetSetExpType::GSE_STRING, Input, mpField, Postit, RES_TXTATR_ANNOTATION(), RES_TXTATR_INPUTFIELD(), SetExp, SwSetExpField::SetFormatField(), and SfxPoolItem::SetWhich().
SwFormatField::SwFormatField | ( | const SwFormatField & | rAttr | ) |
Definition at line 93 of file atrfld.cxx.
References SwSetExpField::GetInputFlag(), SwField::GetTyp(), SwSetExpFieldType::GetType(), nsSwGetSetExpType::GSE_STRING, Input, mpField, Postit, RES_TXTATR_ANNOTATION(), RES_TXTATR_INPUTFIELD(), SetExp, SwSetExpField::SetFormatField(), SwInputField::SetFormatField(), and SfxPoolItem::SetWhich().
|
overridevirtual |
Definition at line 131 of file atrfld.cxx.
References SfxBroadcaster::Broadcast(), Database, Dde, mpField, REMOVED, SetExp, User, and SwFieldType::Which().
void SwFormatField::ClearTextField | ( | ) |
Definition at line 195 of file atrfld.cxx.
References mpTextField.
Referenced by SwTextField::~SwTextField().
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 211 of file atrfld.cxx.
References SwFormatField().
Referenced by SwWW8FltRefStack::RefToVar().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 474 of file atrfld.cxx.
References SfxPoolItem::dumpAsXml(), mpField, and mpTextField.
Referenced by SwTextAttr::dumpAsXml().
void SwFormatField::ForceUpdateTextNode | ( | ) |
Definition at line 369 of file atrfld.cxx.
References SwTextField::ExpandTextField(), GetField(), SwTextAttr::GetFormatField(), SwTextField::GetTextNode(), IsFieldInDoc(), mpField, mpTextField, and SwTextNode::TriggerNodeUpdate().
Referenced by sw::DocumentFieldsManager::UpdateExpFieldsImpl(), sw::DocumentFieldsManager::UpdateField(), and UpdateTextNode().
|
inline |
Definition at line 135 of file fmtfld.hxx.
|
inline |
Definition at line 131 of file fmtfld.hxx.
Referenced by SwXTextField::attach(), SwTaggedPDFHelper::BeginInlineStructureElements(), SwpHints::CalcFlags(), SwpHints::CalcHiddenParaField(), SwDoc::ChangeDBFields(), SwRefPageGetField::ChangeExpansion(), SwNodes::ChgNode(), SwDoc::ConvertFieldsToText(), SwTextField::CopyTextField(), sw::annotation::SwAnnotationWin::CountFollowing(), SwpHints::DeleteAtPos(), SwWrtShell::DelRight(), SwTextNode::DestroyAttr(), SwUndoFieldFromDoc::DoImpl(), SwTOXAuthority::equivalent(), SwTextField::ExpandTextField(), sw::DocumentFieldsManager::FieldsToExpand(), SwTOXAuthority::FillText(), ForceUpdateTextNode(), AttributeOutputBase::GenerateBookmarksForSequenceField(), SwDoc::GetAllUsedDB(), SwTextAnnotationField::GetAnnotationMark(), SwDocUpdateField::GetBodyNode(), SwCursorShell::GetContentAtPos(), SwInputFieldList::GetField(), SwCursorShell::GetFieldAtCursor(), sw::DocumentFieldsManager::GetFieldAtPos(), SwTextInputField::GetFieldContent(), SwXTextField::Impl::GetFieldType(), SwAccessibleParagraph::GetFieldTypeNameAtIndex(), SwTOXAuthority::GetLevel(), SwTextNode::GetMinMaxSize(), SwPageFrame::GetModelPositionForViewPoint(), sw::annotation::SwAnnotationWin::GetParaId(), SwCursorShell::GetPostItFieldAtCursor(), sw::DocumentFieldsManager::GetRecordsPerDocument(), SwTextFrame::GetScalingOfSelectedText(), SwAuthorityFieldType::GetSequencePos(), SwTOXAuthority::GetText(), SwTableBox::GetValue(), SwPaM::HasReadonlySel(), SwHandleAnchorNodeChg::ImplDestroy(), sw::mark::AnnotationMark::InitDoc(), SwDocUpdateField::InsDelFieldInFieldLst(), SwHTMLParser::InsertComment(), SwTextNode::InsertHint(), SwWW8FltRefStack::IsFootnoteEdnBkmField(), SwTextFrame::IsHiddenNow(), sw::annotation::SwAnnotationWin::IsResolved(), SwTableBox::IsValidNumTextNd(), lcl_CopyHint(), lcl_ExportHints(), lcl_GetText(), lcl_IsNoEndTextAttrAtPos(), lcl_MakeFieldLst(), lcl_SelectByContentTypeAndAddress(), SwDocUpdateField::MakeFieldList_(), MakeTextAttr(), SwEditWin::MouseButtonDown(), SwTextFormatter::NewFieldPortion(), SwPostItMgr::Notify(), OutHTML_SwFormatField(), OutHTML_SwTextNode(), SwFEShell::RequestObjectResize(), SwFltControlStack::SetAttrInDoc(), SwWW8FltRefStack::SetAttrInDoc(), sw::annotation::SwAnnotationWin::SetPostItText(), sw::annotation::SwAnnotationWin::SetResolved(), SwTOXAuthority::sort_lt(), SwClientNotify(), AttributeOutputBase::TextField(), SwXTextField::TransmuteLeadToInputField(), SwpHints::TryInsertHint(), SwUndoFieldFromDoc::UndoImpl(), sw::DocumentFieldsManager::UpdateExpFieldsImpl(), sw::DocumentFieldsManager::UpdateField(), SwRefPageGetFieldType::UpdateField(), SwTextInputField::UpdateFieldContent(), SwEditShell::UpdateOneField(), and SwEditWin::UpdatePointer().
|
overridevirtual |
Definition at line 452 of file atrfld.cxx.
References SwNode::GetNodes(), SwTextField::GetpTextNode(), mpTextField, RES_AUTOFMT_DOCNODE(), and SfxPoolItem::Which().
|
inline |
Definition at line 153 of file fmtfld.hxx.
|
inline |
Definition at line 149 of file fmtfld.hxx.
Referenced by SwInputField::applyFieldContent(), sw::annotation::SwAnnotationWin::CalcParent(), SwDoc::ChangeDBFields(), SwTextField::CopyTextField(), sw::annotation::SwAnnotationWin::CountFollowing(), SwContentTree::EditEntry(), SwDoc::GetAllUsedDB(), SwAnnotationItem::GetAnchorPosition(), SwTableField::GetNodeOfFormula(), SwGetExpField::GetReferenceTextPos(), SwCursorShell::GotoFormatField(), sw::annotation::SwAnnotationWin::InitAnswer(), sw::sidebarwindows::SwFrameSidebarWinContainer::insert(), SwViewShell::IsAnyFieldInDoc(), SwDocUpdateField::MakeFieldList_(), OutHTML_SwFormatField(), sw::annotation::SwAnnotationWin::SetPosAndSize(), SwClientNotify(), SwTOXAuthority::SwTOXAuthority(), AttributeOutputBase::TextField(), SwXTextField::TransmuteLeadToInputField(), sw::annotation::SwAnnotationWin::UpdateData(), SwAnnotationItem::UseElement(), and SwTextField::~SwTextField().
|
inline |
Definition at line 164 of file fmtfld.hxx.
Referenced by SwXTextField::CreateXTextField(), and SwXTextField::TransmuteLeadToInputField().
void SwFormatField::InvalidateField | ( | ) |
Definition at line 216 of file atrfld.cxx.
References RES_REMOVE_UNO_OBJECT().
bool SwFormatField::IsFieldInDoc | ( | ) | const |
Definition at line 461 of file atrfld.cxx.
References SwTextField::IsFieldInDoc(), and mpTextField.
Referenced by SwNodes::ChgNode(), ForceUpdateTextNode(), SwPostItMgr::Notify(), SwClientNotify(), UpdateDocPos(), UpdateTextNode(), and SwAnnotationItem::UseElement().
bool SwFormatField::IsProtect | ( | ) | const |
Definition at line 467 of file atrfld.cxx.
References SwTextField::GetpTextNode(), SwNode::IsProtect(), and mpTextField.
Referenced by SwTextFieldContent::IsProtect(), SwPostItContent::IsProtect(), and sw::annotation::SwAnnotationWin::IsReadOnlyOrProtected().
|
overridevirtual |
"Pure virtual methods" of SfxPoolItem.
Implements SfxPoolItem.
Definition at line 200 of file atrfld.cxx.
References mpField.
void SwFormatField::RegisterToFieldType | ( | SwFieldType & | rType | ) |
Definition at line 170 of file atrfld.cxx.
Referenced by SwDoc::ChangeDBFields(), and SwpHints::TryInsertHint().
void SwFormatField::SetField | ( | std::unique_ptr< SwField > | pField | ) |
Sets current field.
pField | new field |
Definition at line 175 of file atrfld.cxx.
References SfxBroadcaster::Broadcast(), CHANGED, Input, mpField, and SetExp.
Referenced by sw::DocumentFieldsManager::UpdateField().
void SwFormatField::SetTextField | ( | SwTextField & | rTextField | ) |
Definition at line 190 of file atrfld.cxx.
References mpTextField.
Referenced by SwTextField::SwTextField().
void SwFormatField::SetXTextField | ( | rtl::Reference< SwXTextField > const & | xTextField | ) |
Definition at line 798 of file atrfld.cxx.
References m_wXTextField.
|
overrideprivatevirtual |
Definition at line 222 of file atrfld.cxx.
References SwPosition::Assign(), SwPaM::DeleteMark(), IDocumentContentOperations::DeleteRange(), fnMoveForward, SwPaM::GetDoc(), GetField(), SfxHint::GetId(), SwDoc::getIDocumentContentOperations(), SwNode::GetNodes(), SwPaM::GetPoint(), SwTextField::GetpTextNode(), SwTextAttr::GetStart(), SwField::GetSubType(), GetTextField(), SwTextField::GetTextNode(), IDocumentContentOperations::InsertString(), SwDoc::IsClipBoard(), SwNodes::IsDocNodes(), sw::IsFieldDeletedInModel(), IsFieldInDoc(), sw::HasHiddenInformationNotesHint::m_rbHasHiddenInformationNotes, sw::FindFormatForFieldHint::m_rpFormat, sw::CollectPostItsHint::m_rvFormatFields, sw::GatherNodeIndexHint::m_rvNodeIndex, SwPaM::Move(), mpField, mpTextField, SwPaM::SetMark(), SwClient::SwClientNotify(), UpdateDocPos(), and UpdateTextNode().
void SwFormatField::UpdateDocPos | ( | const SwTwips | nDocPos | ) |
Definition at line 389 of file atrfld.cxx.
References SwTextAttr::GetStart(), SwTextField::GetTextNode(), IsFieldInDoc(), mpTextField, and SwTextNode::UpdateDocPos().
Referenced by SwClientNotify().
void SwFormatField::UpdateTextNode | ( | const SfxHint & | rHint | ) |
Definition at line 397 of file atrfld.cxx.
References SwTextField::ExpandTextField(), ForceUpdateTextNode(), SfxHint::GetId(), SwTextField::GetTextNode(), IsFieldInDoc(), sw::LegacyModifyHint::m_pOld, m_wXTextField, mpField, mpTextField, RES_ATTRSET_CHG(), RES_FMT_CHG(), RES_HIDDENPARA_PRINT(), RES_OBJECTDYING(), RES_REMOVE_UNO_OBJECT(), and SwTextNode::TriggerNodeUpdate().
Referenced by SwClientNotify().
|
private |
Definition at line 107 of file fmtfld.hxx.
Referenced by SetXTextField(), and UpdateTextNode().
|
private |
Definition at line 109 of file fmtfld.hxx.
Referenced by dumpAsXml(), ForceUpdateTextNode(), operator==(), SetField(), SwClientNotify(), SwFormatField(), UpdateTextNode(), and ~SwFormatField().
|
private |
Definition at line 110 of file fmtfld.hxx.
Referenced by ClearTextField(), dumpAsXml(), ForceUpdateTextNode(), GetInfo(), IsFieldInDoc(), IsProtect(), SetTextField(), SwClientNotify(), UpdateDocPos(), and UpdateTextNode().