LibreOffice Module sw (master) 1
|
SfxPoolItem subclass that wraps an SwContentControl. More...
#include <formatcontentcontrol.hxx>
Public Member Functions | |
SwTextContentControl * | GetTextAttr () |
void | SetTextAttr (SwTextContentControl *pTextAttr) |
void | DoCopy (SwTextNode &rTargetTextNode) |
This method must be called when the hint is actually copied. More... | |
SwFormatContentControl (sal_uInt16 nWhich) | |
SwFormatContentControl (const std::shared_ptr< SwContentControl > &pContentControl, sal_uInt16 nWhich) | |
~SwFormatContentControl () override | |
bool | operator== (const SfxPoolItem &) const override |
SfxPoolItem. More... | |
SwFormatContentControl * | Clone (SfxItemPool *pPool=nullptr) const override |
void | NotifyChangeTextNode (SwTextNode *pTextNode) |
Notify clients registered at m_pContentControl that this content control is being (re-)moved. More... | |
SwTextNode * | GetTextNode () const |
const std::shared_ptr< SwContentControl > & | GetContentControl () const |
void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
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 |
Static Public Member Functions | |
static SwFormatContentControl * | CreatePoolDefault (sal_uInt16 nWhich) |
Private Attributes | |
std::shared_ptr< SwContentControl > | m_pContentControl |
SwTextContentControl * | m_pTextAttr |
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) | |
SfxPoolItem subclass that wraps an SwContentControl.
Definition at line 54 of file formatcontentcontrol.hxx.
|
explicit |
Definition at line 48 of file attrcontentcontrol.cxx.
Referenced by Clone(), and CreatePoolDefault().
|
explicit |
Definition at line 54 of file attrcontentcontrol.cxx.
References SAL_WARN.
|
override |
Definition at line 67 of file attrcontentcontrol.cxx.
References m_pContentControl, and NotifyChangeTextNode().
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 83 of file attrcontentcontrol.cxx.
References m_pContentControl, SwFormatContentControl(), and SfxPoolItem::Which().
|
static |
Definition at line 43 of file attrcontentcontrol.cxx.
References SwFormatContentControl().
void SwFormatContentControl::DoCopy | ( | SwTextNode & | rTargetTextNode | ) |
This method must be called when the hint is actually copied.
Definition at line 153 of file attrcontentcontrol.cxx.
References m_pContentControl, and SAL_WARN.
Referenced by SwTextContentControl::CreateTextContentControl().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 166 of file attrcontentcontrol.cxx.
References SfxPoolItem::dumpAsXml(), m_pContentControl, and m_pTextAttr.
Referenced by SwTextAttr::dumpAsXml().
|
inline |
Definition at line 83 of file formatcontentcontrol.hxx.
Referenced by SwXTextDocument::executeContentControlEvent(), SwXContentControls::getByIndex(), SwWrtShell::GotoContentControl(), SwCursorShell::GotoFormatContentControl(), SwCursorShell::GotoFormControl(), SwPaM::HasReadonlySel(), SwSelPaintRects::HighlightContentControl(), SwWrtShell::Insert(), SwTextNode::InsertHint(), SwEditWin::KeyInput(), lcl_CreateContentControlPortion(), lcl_getContentControl(), SwEditWin::MouseButtonUp(), SwContentControl::SwContentControl(), and SwContentControlDlg::SwContentControlDlg().
|
inline |
Definition at line 60 of file formatcontentcontrol.hxx.
Referenced by SwContentControl::GetTextAttr().
SwTextNode * SwFormatContentControl::GetTextNode | ( | ) | const |
Definition at line 141 of file attrcontentcontrol.cxx.
References m_pContentControl.
Referenced by SwTextContentControl::GetTextNode().
void SwFormatContentControl::NotifyChangeTextNode | ( | SwTextNode * | pTextNode | ) |
Notify clients registered at m_pContentControl that this content control is being (re-)moved.
Definition at line 127 of file attrcontentcontrol.cxx.
References m_pContentControl, and SAL_WARN.
Referenced by SwTextContentControl::ChgTextNode(), SetTextAttr(), and ~SwFormatContentControl().
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 76 of file attrcontentcontrol.cxx.
References m_pContentControl, and SfxPoolItem::operator==().
void SwFormatContentControl::SetTextAttr | ( | SwTextContentControl * | pTextAttr | ) |
Definition at line 96 of file attrcontentcontrol.cxx.
References m_pContentControl, m_pTextAttr, NotifyChangeTextNode(), and SAL_WARN.
Referenced by SwTextContentControl::SwTextContentControl(), and SwTextContentControl::~SwTextContentControl().
|
private |
Definition at line 56 of file formatcontentcontrol.hxx.
Referenced by Clone(), DoCopy(), dumpAsXml(), GetTextNode(), NotifyChangeTextNode(), operator==(), SetTextAttr(), and ~SwFormatContentControl().
|
private |
Definition at line 57 of file formatcontentcontrol.hxx.
Referenced by dumpAsXml(), and SetTextAttr().