LibreOffice Module sw (master) 1
|
Allows positioning of floating screen objects without considering their own wrapping type and the wrapping types of the other floating screen objects. More...
#include <fmtwrapinfluenceonobjpos.hxx>
Public Member Functions | |
SwFormatWrapInfluenceOnObjPos (sal_Int16 _nWrapInfluenceOnPosition=css::text::WrapInfluenceOnPosition::ONCE_CONCURRENT) | |
virtual | ~SwFormatWrapInfluenceOnObjPos () override |
SwFormatWrapInfluenceOnObjPos (SwFormatWrapInfluenceOnObjPos const &)=default | |
SwFormatWrapInfluenceOnObjPos (SwFormatWrapInfluenceOnObjPos &&)=default | |
SwFormatWrapInfluenceOnObjPos & | operator= (SwFormatWrapInfluenceOnObjPos const &)=delete |
SwFormatWrapInfluenceOnObjPos & | operator= (SwFormatWrapInfluenceOnObjPos &&)=delete |
virtual bool | operator== (const SfxPoolItem &_rAttr) const override |
pure virtual methods of class <SfxPoolItem> More... | |
virtual SwFormatWrapInfluenceOnObjPos * | Clone (SfxItemPool *pPool=nullptr) const override |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) override |
void | SetWrapInfluenceOnObjPos (sal_Int16 _nWrapInfluenceOnPosition) |
direct accessors to data More... | |
sal_Int16 | GetWrapInfluenceOnObjPos (const bool _bIterativeAsOnceConcurrent=false) const |
to control, if value <ITERATIVE> has to be treated as <ONCE_CONCURRENT> More... | |
void | SetAllowOverlap (bool bAllowOverlap) |
bool | GetAllowOverlap () const |
void | SetOverlapVertOffset (SwTwips nOverlapVertOffset) |
SwTwips | GetOverlapVertOffset () 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 |
Private Attributes | |
sal_Int16 | mnWrapInfluenceOnPosition |
bool | mbAllowOverlap = true |
Allow objects to overlap, permitted by default. More... | |
SwTwips | mnOverlapVertOffset = 0 |
Vertical offset added during positioning to avoid an overlap. More... | |
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) | |
Allows positioning of floating screen objects without considering their own wrapping type and the wrapping types of the other floating screen objects.
See http://www.openoffice.org/specs/writer/compatibility/obj-pos-without-wrapping.sxw for details.
Definition at line 35 of file fmtwrapinfluenceonobjpos.hxx.
SwFormatWrapInfluenceOnObjPos::SwFormatWrapInfluenceOnObjPos | ( | sal_Int16 | _nWrapInfluenceOnPosition = css::text::WrapInfluenceOnPosition::ONCE_CONCURRENT | ) |
Definition at line 30 of file fmtwrapinfluenceonobjpos.cxx.
Referenced by Clone().
|
overridevirtual |
Definition at line 36 of file fmtwrapinfluenceonobjpos.cxx.
|
default |
|
default |
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 50 of file fmtwrapinfluenceonobjpos.cxx.
References SwFormatWrapInfluenceOnObjPos().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 165 of file fmtwrapinfluenceonobjpos.cxx.
References mbAllowOverlap, mnWrapInfluenceOnPosition, and SfxPoolItem::Which().
bool SwFormatWrapInfluenceOnObjPos::GetAllowOverlap | ( | ) | const |
Definition at line 153 of file fmtwrapinfluenceonobjpos.cxx.
References mbAllowOverlap.
Referenced by objectpositioning::SwToContentAnchoredObjectPosition::CalcOverlap(), QueryValue(), SwWrapTabPage::Reset(), and DocxSdrExport::startDMLAnchorInline().
SwTwips SwFormatWrapInfluenceOnObjPos::GetOverlapVertOffset | ( | ) | const |
Definition at line 163 of file fmtwrapinfluenceonobjpos.cxx.
References mnOverlapVertOffset.
Referenced by objectpositioning::SwToContentAnchoredObjectPosition::CalcOverlap().
sal_Int16 SwFormatWrapInfluenceOnObjPos::GetWrapInfluenceOnObjPos | ( | const bool | _bIterativeAsOnceConcurrent = false | ) | const |
to control, if value <ITERATIVE> has to be treated as <ONCE_CONCURRENT>
Definition at line 134 of file fmtwrapinfluenceonobjpos.cxx.
References mnWrapInfluenceOnPosition.
Referenced by operator==(), and QueryValue().
|
delete |
|
delete |
|
overridevirtual |
pure virtual methods of class <SfxPoolItem>
Implements SfxPoolItem.
Definition at line 40 of file fmtwrapinfluenceonobjpos.cxx.
References GetWrapInfluenceOnObjPos(), mbAllowOverlap, mnOverlapVertOffset, and mnWrapInfluenceOnPosition.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 75 of file fmtwrapinfluenceonobjpos.cxx.
References MID_ALLOW_OVERLAP, MID_WRAP_INFLUENCE, SAL_WARN, SetAllowOverlap(), and SetWrapInfluenceOnObjPos().
Referenced by BaseFrameProperties_Impl::FillBaseProperties().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 55 of file fmtwrapinfluenceonobjpos.cxx.
References GetAllowOverlap(), GetWrapInfluenceOnObjPos(), MID_ALLOW_OVERLAP, and MID_WRAP_INFLUENCE.
void SwFormatWrapInfluenceOnObjPos::SetAllowOverlap | ( | bool | bAllowOverlap | ) |
Definition at line 148 of file fmtwrapinfluenceonobjpos.cxx.
References mbAllowOverlap.
Referenced by SwWrapTabPage::FillItemSet(), and PutValue().
void SwFormatWrapInfluenceOnObjPos::SetOverlapVertOffset | ( | SwTwips | nOverlapVertOffset | ) |
Definition at line 158 of file fmtwrapinfluenceonobjpos.cxx.
References mnOverlapVertOffset.
Referenced by objectpositioning::SwToContentAnchoredObjectPosition::CalcOverlap().
void SwFormatWrapInfluenceOnObjPos::SetWrapInfluenceOnObjPos | ( | sal_Int16 | _nWrapInfluenceOnPosition | ) |
direct accessors to data
Definition at line 117 of file fmtwrapinfluenceonobjpos.cxx.
References mnWrapInfluenceOnPosition.
Referenced by PutValue().
|
private |
Allow objects to overlap, permitted by default.
Definition at line 40 of file fmtwrapinfluenceonobjpos.hxx.
Referenced by dumpAsXml(), GetAllowOverlap(), operator==(), and SetAllowOverlap().
|
private |
Vertical offset added during positioning to avoid an overlap.
Definition at line 42 of file fmtwrapinfluenceonobjpos.hxx.
Referenced by GetOverlapVertOffset(), operator==(), and SetOverlapVertOffset().
|
private |
Definition at line 38 of file fmtwrapinfluenceonobjpos.hxx.
Referenced by dumpAsXml(), GetWrapInfluenceOnObjPos(), operator==(), and SetWrapInfluenceOnObjPos().