LibreOffice Module editeng (master) 1
|
#include <lrspitem.hxx>
Public Member Functions | |
void | SetRight (const tools::Long nR, const sal_uInt16 nProp=100) |
tools::Long | GetRight () const |
sal_uInt16 | GetPropRight () const |
SvxRightMarginItem (const sal_uInt16 nId) | |
SvxRightMarginItem (const tools::Long nRight, const sal_uInt16 nId) | |
SvxRightMarginItem (SvxRightMarginItem const &)=default | |
virtual bool | operator== (const SfxPoolItem &) 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 |
virtual bool | GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override |
virtual SvxRightMarginItem * | Clone (SfxItemPool *pPool=nullptr) const override |
virtual void | ScaleMetrics (tools::Long nMult, tools::Long nDiv) override |
virtual bool | HasMetrics () const override |
void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
virtual boost::property_tree::ptree | dumpAsJSON () 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 | |
tools::Long | m_nRightMargin = 0 |
right margin: nothing special More... | |
sal_uInt16 | m_nPropRightMargin = 100 |
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) | |
Definition at line 177 of file lrspitem.hxx.
|
explicit |
SvxRightMarginItem::SvxRightMarginItem | ( | const tools::Long | nRight, |
const sal_uInt16 | nId | ||
) |
Definition at line 1103 of file frmitems.cxx.
References nId.
|
default |
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 1188 of file frmitems.cxx.
References SvxRightMarginItem().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1257 of file frmitems.cxx.
References SfxPoolItem::dumpAsJSON(), GetMetricText(), and GetRight().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1248 of file frmitems.cxx.
References m_nPropRightMargin, m_nRightMargin, and SfxPoolItem::Which().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1193 of file frmitems.cxx.
References EditResId(), unicode::formatPercent(), GetMetricId(), GetMetricText(), Application::GetSettings(), m_nPropRightMargin, and m_nRightMargin.
|
inline |
Definition at line 191 of file lrspitem.hxx.
Referenced by operator==().
|
inline |
Definition at line 189 of file lrspitem.hxx.
Referenced by dumpAsJSON(), and operator==().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1243 of file frmitems.cxx.
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 1178 of file frmitems.cxx.
References GetPropRight(), GetRight(), m_nPropRightMargin, and m_nRightMargin.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1140 of file frmitems.cxx.
References CONVERT_TWIPS, m_nPropRightMargin, MID_R_MARGIN, MID_R_REL_MARGIN, o3tl::mm100, SAL_MAX_UINT16, SetRight(), and o3tl::toTwips().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1109 of file frmitems.cxx.
References CONVERT_TWIPS, convertTwipToMm100(), m_nPropRightMargin, m_nRightMargin, MID_R_MARGIN, and MID_R_REL_MARGIN.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1238 of file frmitems.cxx.
References m_nRightMargin, and BigInt::Scale().
void SvxRightMarginItem::SetRight | ( | const tools::Long | nR, |
const sal_uInt16 | nProp = 100 |
||
) |
Definition at line 481 of file frmitems.cxx.
References m_nPropRightMargin, and m_nRightMargin.
Referenced by PutValue().
|
private |
Definition at line 182 of file lrspitem.hxx.
Referenced by dumpAsXml(), GetPresentation(), operator==(), PutValue(), QueryValue(), and SetRight().
|
private |
right margin: nothing special
Definition at line 181 of file lrspitem.hxx.
Referenced by dumpAsXml(), GetPresentation(), operator==(), QueryValue(), ScaleMetrics(), and SetRight().