|
LibreOffice Module sw (master) 1
|
SwTextAttr subclass that tracks the location of the wrapped SwFormatContentControl. More...
#include <textcontentcontrol.hxx>
Public Member Functions | |
| ~SwTextContentControl () override | |
| void | ChgTextNode (SwTextNode *pNode) |
| void | Delete (bool bSaveContents) |
| SwTextNode * | GetTextNode () const |
| OUString | ToString () const |
| Get the current (potentially invalid) string from the doc. More... | |
| void | Invalidate () |
| void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
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 |
Static Public Member Functions | |
| static SwTextContentControl * | CreateTextContentControl (SwDoc &rDoc, SwTextNode *pTargetTextNode, SwFormatContentControl &rAttr, sal_Int32 nStart, sal_Int32 nEnd, bool bIsCopy) |
Static Public Member Functions inherited from SwTextAttr | |
| static void | Destroy (SwTextAttr *pToDestroy, SfxItemPool &rPool) |
| destroy instance More... | |
Private Member Functions | |
| SwTextContentControl (SwContentControlManager *pManager, SwFormatContentControl &rAttr, sal_Int32 nStart, sal_Int32 nEnd) | |
Private Attributes | |
| SwContentControlManager * | m_pManager |
Additional Inherited Members | |
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 |
SwTextAttr subclass that tracks the location of the wrapped SwFormatContentControl.
Definition at line 27 of file textcontentcontrol.hxx.
|
private |
Definition at line 713 of file attrcontentcontrol.cxx.
References SwContentControlManager::Insert(), m_pManager, m_pManager, SwTextAttr::SetHasDummyChar(), and SwFormatContentControl::SetTextAttr().
Referenced by CreateTextContentControl().
|
override |
Definition at line 725 of file attrcontentcontrol.cxx.
References SwTextAttr::GetAttr(), and SwFormatContentControl::SetTextAttr().
| void SwTextContentControl::ChgTextNode | ( | SwTextNode * | pNode | ) |
Definition at line 734 of file attrcontentcontrol.cxx.
References SwContentControlManager::Erase(), SwTextAttr::GetAttr(), SwDoc::GetContentControlManager(), SwNode::GetDoc(), m_pManager, and SwFormatContentControl::NotifyChangeTextNode().
|
static |
Definition at line 692 of file attrcontentcontrol.cxx.
References SwFormatContentControl::DoCopy(), SwDoc::GetContentControlManager(), SAL_WARN, and SwTextContentControl().
Referenced by MakeTextAttr().
| void SwTextContentControl::Delete | ( | bool | bSaveContents | ) |
Definition at line 756 of file attrcontentcontrol.cxx.
References IDocumentContentOperations::DeleteAndJoin(), SwTextAttr::End(), SwNode::GetDoc(), SwDoc::getIDocumentContentOperations(), SwTextAttr::GetStart(), GetTextNode(), RES_TXTATR_CONTENTCONTROL(), and SwDoc::ResetAttrs().
|
overridevirtual |
Reimplemented from SwTextAttr.
Definition at line 806 of file attrcontentcontrol.cxx.
References SwTextAttr::dumpAsXml().
| SwTextNode * SwTextContentControl::GetTextNode | ( | ) | const |
Definition at line 768 of file attrcontentcontrol.cxx.
References SwTextAttr::GetAttr(), and SwFormatContentControl::GetTextNode().
Referenced by Delete(), SwCursorShell::GotoFormControl(), Invalidate(), and ToString().
| void SwTextContentControl::Invalidate | ( | ) |
Definition at line 788 of file attrcontentcontrol.cxx.
References SwCursorShell::DeleteCurrent, SwTextAttr::GetAttr(), SwNode::GetDoc(), SwDoc::GetDocShell(), GetTextNode(), SwDocShell::GetWrtShell(), SwWrtShell::GotoContentControl(), SwWrtShell::Pop(), and SwCursorShell::Push().
Referenced by SwContentControl::ClearListItems(), and SwContentControl::DeleteListItem().
| OUString SwTextContentControl::ToString | ( | ) | const |
Get the current (potentially invalid) string from the doc.
Definition at line 774 of file attrcontentcontrol.cxx.
References SwTextAttr::End(), SwTextAttr::GetStart(), SwPaM::GetText(), and GetTextNode().
Referenced by SwContentControl::GetSelectedListItem().
|
private |
Definition at line 29 of file textcontentcontrol.hxx.
Referenced by ChgTextNode(), and SwTextContentControl().