LibreOffice Module sw (master) 1
|
#include <txtfld.hxx>
Public Member Functions | |
SwTextField (SwFormatField &rAttr, sal_Int32 const nStart, bool const bInClipboard) | |
virtual | ~SwTextField () override |
void | CopyTextField (SwTextField *pDest) const |
void | ExpandTextField (const bool bForceNotify=false) const |
SwTextNode * | GetpTextNode () const |
SwTextNode & | GetTextNode () const |
void | ChgTextNode (SwTextNode *pNew) |
bool | IsFieldInDoc () const |
virtual void | NotifyContentChange (SwFormatField &rFormatField) |
Public Member Functions inherited from SwTextAttr | |
void | SetStart (sal_Int32 n) |
start position More... | |
sal_Int32 | GetStart () const |
virtual const sal_Int32 * | GetEnd () const |
end position More... | |
virtual void | SetEnd (sal_Int32) |
const sal_Int32 * | End () const |
sal_Int32 | GetAnyEnd () const |
end (if available), else start More... | |
void | SetDontExpand (bool bDontExpand) |
bool | DontExpand () const |
bool | IsLockExpandFlag () const |
bool | IsDontMoveAttr () const |
bool | IsCharFormatAttr () const |
bool | IsOverlapAllowedAttr () const |
bool | IsPriorityAttr () const |
void | SetPriorityAttr (bool bFlag) |
bool | IsDontExpandStartAttr () const |
bool | IsNesting () const |
bool | HasDummyChar () const |
bool | IsFormatIgnoreStart () const |
bool | IsFormatIgnoreEnd () const |
void | SetFormatIgnoreStart (bool bFlag) |
void | SetFormatIgnoreEnd (bool bFlag) |
bool | HasContent () const |
const SfxPoolItem & | GetAttr () const |
SfxPoolItem & | GetAttr () |
sal_uInt16 | Which () const |
bool | operator== (const SwTextAttr &) const |
const SwFormatCharFormat & | GetCharFormat () const |
const SwFormatAutoFormat & | GetAutoFormat () const |
const SwFormatField & | GetFormatField () const |
const SwFormatFootnote & | GetFootnote () const |
const SwFormatLineBreak & | GetLineBreak () const |
const SwFormatContentControl & | GetContentControl () const |
const SwFormatFlyCnt & | GetFlyCnt () const |
const SwTOXMark & | GetTOXMark () const |
const SwFormatRefMark & | GetRefMark () const |
const SwFormatINetFormat & | GetINetFormat () const |
const SwFormatRuby & | GetRuby () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Static Public Member Functions | |
static void | DeleteTextField (const SwTextField &rTextField) |
static void | GetPamForTextField (const SwTextField &rTextField, std::shared_ptr< SwPaM > &rPamForTextField) |
Static Public Member Functions inherited from SwTextAttr | |
static void | Destroy (SwTextAttr *pToDestroy, SfxItemPool &rPool) |
destroy instance More... | |
Private Attributes | |
OUString | m_aExpand |
SwTextNode * | m_pTextNode |
Additional Inherited Members | |
Protected Member Functions inherited from SwTextAttr | |
SwTextAttr (SfxPoolItem &rAttr, sal_Int32 nStart) | |
virtual | ~SwTextAttr () COVERITY_NOEXCEPT_FALSE |
void | SetLockExpandFlag (bool bFlag) |
void | SetDontMoveAttr (bool bFlag) |
void | SetCharFormatAttr (bool bFlag) |
void | SetOverlapAllowedAttr (bool bFlag) |
void | SetDontExpandStartAttr (bool bFlag) |
void | SetNesting (const bool bFlag) |
void | SetHasDummyChar (const bool bFlag) |
void | SetHasContent (const bool bFlag) |
Protected Attributes inherited from SwTextAttr | |
SwpHints * | m_pHints = nullptr |
Definition at line 31 of file txtfld.hxx.
SwTextField::SwTextField | ( | SwFormatField & | rAttr, |
sal_Int32 const | nStart, | ||
bool const | bInClipboard | ||
) |
Definition at line 491 of file atrfld.cxx.
References SwTextAttr::SetHasDummyChar(), and SwFormatField::SetTextField().
|
overridevirtual |
Definition at line 505 of file atrfld.cxx.
References SwFormatField::ClearTextField(), SwTextAttr::GetAttr(), and SwFormatField::GetTextField().
|
inline |
Definition at line 58 of file txtfld.hxx.
Referenced by SwpHints::DeleteAtPos(), SwCursorShell::MoveFieldType(), and SwpHints::TryInsertHint().
void SwTextField::CopyTextField | ( | SwTextField * | pDest | ) | const |
Definition at line 563 of file atrfld.cxx.
References SwField::ChgTyp(), Database, Dde, SwNode::FindTableNode(), GetExp, SwFormatField::GetField(), SwTextAttr::GetFormatField(), SwNode::getIDocumentFieldsAccess(), IDocumentFieldsAccess::GetSysFieldType(), SwTableNode::GetTable(), SwFormatField::GetTextField(), SwField::GetTyp(), HiddenText, IDocumentFieldsAccess::InsertFieldType(), SwTableFormula::IsIntrnlName(), m_pTextNode, SetExp, Table, TableOfAuthorities, IDocumentFieldsAccess::UpdateExpFields(), User, and SwFieldType::Which().
|
static |
Definition at line 654 of file atrfld.cxx.
References IDocumentContentOperations::DeleteAndJoin(), SwNode::GetDoc(), SwDoc::getIDocumentContentOperations(), GetPamForTextField(), GetpTextNode(), and GetTextNode().
Referenced by SwXFieldMaster::dispose(), SwXTextField::dispose(), and SwContentTree::EditEntry().
void SwTextField::ExpandTextField | ( | const bool | bForceNotify = false | ) | const |
Definition at line 520 of file atrfld.cxx.
References SwTextNode::CalcHiddenParaField(), Chapter, DocStat, DS_PAGE, SwField::ExpandField(), IDocumentLayoutAccess::GetCurrentLayout(), SwNode::GetDoc(), GetExp, SwFormatField::GetField(), SwTextAttr::GetFormatField(), SwDoc::getIDocumentLayoutAccess(), SwField::GetTyp(), SwDoc::IsClipBoard(), SwGetExpField::IsInBodyText(), m_aExpand, m_pTextNode, NotifyContentChange(), PageNumber, RefPageGet, SwTextNode::TriggerNodeUpdate(), and SwFieldType::Which().
Referenced by SwDoc::ChangeDBFields(), SwFormatField::ForceUpdateTextNode(), and SwFormatField::UpdateTextNode().
|
static |
Definition at line 634 of file atrfld.cxx.
References SwTextAttr::End(), GetpTextNode(), SwTextAttr::GetStart(), GetTextNode(), and SAL_WARN.
Referenced by SwContentTree::BringTextFieldsToAttention(), DeleteTextField(), SwXTextField::getAnchor(), and SwXTextField::TransmuteLeadToInputField().
|
inline |
Definition at line 49 of file txtfld.hxx.
Referenced by SwXTextField::attach(), SwDoc::ConvertFieldsToText(), SwpHints::DeleteAtPos(), DeleteTextField(), SwTextNode::DestroyAttr(), SwGetRefFieldType::FindAnchor(), SwAnnotationItem::GetAnchorPosition(), SwFormatField::GetInfo(), GetPamForTextField(), SwAuthorityFieldType::GetSequencePos(), SwCursorShell::GotoFormatField(), SwSelPaintRects::HighlightInputField(), IsFieldInDoc(), SwFormatField::IsProtect(), sw::annotation::SwAnnotationWin::SetPosAndSize(), SwFormatField::SwClientNotify(), SwpHints::TryInsertHint(), SwGetRefField::UpdateField(), sw::DocumentFieldsManager::UpdateField(), and SwGetRefFieldType::UpdateGetReferences().
|
inline |
Definition at line 53 of file txtfld.hxx.
Referenced by SwContentTree::BringPostItFieldsToAttention(), SwContentTree::BringTextFieldsToAttention(), SwInputFieldList::BuildSortLst(), sw::annotation::SwAnnotationWin::CalcParent(), SwDoc::ChangeDBFields(), SwGetExpField::ChangeExpansion(), SwRefPageGetField::ChangeExpansion(), sw::annotation::SwAnnotationWin::CountFollowing(), DeleteTextField(), SwFormatField::ForceUpdateTextNode(), SwDoc::GetAllUsedDB(), SwDocUpdateField::GetBodyNode(), SwTableField::GetNodeOfFormula(), GetPamForTextField(), SwXTextField::getPropertyValue(), SwGetExpField::GetReferenceTextPos(), SwAuthorityFieldType::GetSequencePos(), sw::annotation::SwAnnotationWin::InitAnswer(), SwViewShell::IsAnyFieldInDoc(), sw::IsFieldDeletedInModel(), lcl_MakeFieldLst(), SwDocUpdateField::MakeFieldList_(), SwRefPageGetFieldType::MakeSetList(), OutHTML_SwFormatField(), SwXTextField::setPropertyValue(), SwFormatField::SwClientNotify(), SwHistorySetTextField::SwHistorySetTextField(), SwInputFieldList::SwInputFieldList(), SwXTextField::TransmuteLeadToInputField(), sw::annotation::SwAnnotationWin::UpdateData(), SwFormatField::UpdateDocPos(), SwGetRefField::UpdateField(), sw::DocumentFieldsManager::UpdateField(), SwRefPageGetFieldType::UpdateField(), SwTextInputField::UpdateFieldContent(), SwTOXBaseSection::UpdateSequence(), SwFormatField::UpdateTextNode(), and SwTextInputField::UpdateTextNodeContent().
bool SwTextField::IsFieldInDoc | ( | ) | const |
Definition at line 514 of file atrfld.cxx.
References SwNode::GetNodes(), GetpTextNode(), and SwNodes::IsDocNodes().
Referenced by SwFormatField::IsFieldInDoc(), SwTextInputField::UpdateFieldContent(), and SwTextInputField::UpdateTextNodeContent().
|
virtual |
Reimplemented in SwTextInputField.
Definition at line 626 of file atrfld.cxx.
References SwNode::GetNodes(), SwNodes::IsDocNodes(), m_pTextNode, and SwTextNode::TriggerNodeUpdate().
Referenced by ExpandTextField(), SwTextInputField::NotifyContentChange(), and SwDBField::PutValue().
|
mutableprivate |
Definition at line 33 of file txtfld.hxx.
Referenced by ExpandTextField().
|
private |
Definition at line 34 of file txtfld.hxx.
Referenced by CopyTextField(), ExpandTextField(), and NotifyContentChange().