LibreOffice Module sw (master) 1
|
#include <txtfld.hxx>
Public Member Functions | |
SwTextInputField (SwFormatField &rAttr, sal_Int32 const nStart, sal_Int32 const nEnd, bool const bInClipboard) | |
virtual | ~SwTextInputField () override |
bool | LockNotifyContentChange () |
void | UnlockNotifyContentChange () |
virtual void | NotifyContentChange (SwFormatField &rFormatField) override |
void | UpdateTextNodeContent (const OUString &rNewContent) |
OUString | GetFieldContent () const |
void | UpdateFieldContent () |
Public Member Functions inherited from SwTextAttrEnd | |
SwTextAttrEnd (SfxPoolItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd) | |
virtual const sal_Int32 * | GetEnd () const override |
end position More... | |
virtual void | SetEnd (sal_Int32) override |
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 |
Public Member Functions inherited from SwTextField | |
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) |
Private Attributes | |
bool | m_bLockNotifyContentChange |
Additional Inherited Members | |
Static Public Member Functions inherited from SwTextAttr | |
static void | Destroy (SwTextAttr *pToDestroy, SfxItemPool &rPool) |
destroy instance More... | |
Static Public Member Functions inherited from SwTextField | |
static void | DeleteTextField (const SwTextField &rTextField) |
static void | GetPamForTextField (const SwTextField &rTextField, std::shared_ptr< SwPaM > &rPamForTextField) |
Protected Member Functions inherited from SwTextAttrNesting | |
SwTextAttrNesting (SfxPoolItem &i_rAttr, const sal_Int32 i_nStart, const sal_Int32 i_nEnd) | |
virtual | ~SwTextAttrNesting () override |
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 SwTextAttrEnd | |
sal_Int32 | m_nEnd |
Protected Attributes inherited from SwTextAttr | |
SwpHints * | m_pHints = nullptr |
Definition at line 77 of file txtfld.hxx.
SwTextInputField::SwTextInputField | ( | SwFormatField & | rAttr, |
sal_Int32 const | nStart, | ||
sal_Int32 const | nEnd, | ||
bool const | bInClipboard | ||
) |
Definition at line 670 of file atrfld.cxx.
References SwTextAttr::SetHasContent(), and SwTextAttr::SetHasDummyChar().
|
overridevirtual |
Definition at line 685 of file atrfld.cxx.
OUString SwTextInputField::GetFieldContent | ( | ) | const |
Definition at line 717 of file atrfld.cxx.
References SwField::ExpandField(), SwFormatField::GetField(), and SwTextAttr::GetFormatField().
Referenced by SwTableBox::GetValue(), SwTextNode::InsertHint(), and NotifyContentChange().
bool SwTextInputField::LockNotifyContentChange | ( | ) |
Definition at line 689 of file atrfld.cxx.
References m_bLockNotifyContentChange.
Referenced by SwInputField::applyFieldContent(), NotifyContentChange(), and sw::DocumentFieldsManager::UpdateExpFieldsImpl().
|
overridevirtual |
Reimplemented from SwTextField.
Definition at line 704 of file atrfld.cxx.
References GetFieldContent(), LockNotifyContentChange(), m_bLockNotifyContentChange, SwTextField::NotifyContentChange(), UnlockNotifyContentChange(), and UpdateTextNodeContent().
void SwTextInputField::UnlockNotifyContentChange | ( | ) |
Definition at line 699 of file atrfld.cxx.
References m_bLockNotifyContentChange.
Referenced by SwInputField::applyFieldContent(), NotifyContentChange(), and sw::DocumentFieldsManager::UpdateExpFieldsImpl().
void SwTextInputField::UpdateFieldContent | ( | ) |
Definition at line 722 of file atrfld.cxx.
References SwTextAttr::End(), SwNode::GetDoc(), SwTextNode::GetExpandText(), SwFormatField::GetField(), SwTextAttr::GetFormatField(), SwDoc::getIDocumentFieldsAccess(), SwSetExpField::GetInputFlag(), SwTextAttr::GetStart(), SwTextField::GetTextNode(), IDocumentFieldsAccess::GetUpdateFields(), SwTextField::IsFieldInDoc(), and SwDocUpdateField::SetFieldsDirty().
Referenced by SwTextNode::Update().
void SwTextInputField::UpdateTextNodeContent | ( | const OUString & | rNewContent | ) |
Definition at line 753 of file atrfld.cxx.
References SwTextAttr::End(), SwTextAttr::GetStart(), SwTextField::GetTextNode(), SwTextField::IsFieldInDoc(), and SwTextNode::ReplaceText().
Referenced by NotifyContentChange().
|
private |
Definition at line 101 of file txtfld.hxx.
Referenced by LockNotifyContentChange(), NotifyContentChange(), and UnlockNotifyContentChange().