LibreOffice Module editeng (master) 1
|
first line indent that may be applied to paragraphs More...
#include <lrspitem.hxx>
Public Member Functions | |
bool | IsAutoFirst () const |
void | SetAutoFirst (const bool bNew) |
void | SetTextFirstLineOffset (const short nF, const sal_uInt16 nProp=100) |
short | GetTextFirstLineOffset () const |
void | SetPropTextFirstLineOffset (const sal_uInt16 nProp) |
sal_uInt16 | GetPropTextFirstLineOffset () const |
void | SetTextFirstLineOffsetValue (const short nValue) |
SvxFirstLineIndentItem (const sal_uInt16 nId) | |
SvxFirstLineIndentItem (const short nOffset, const sal_uInt16 nId) | |
SvxFirstLineIndentItem (SvxFirstLineIndentItem 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 SvxFirstLineIndentItem * | 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 | |
short | m_nFirstLineOffset = 0 |
First-line indent always relative to GetTextLeft() More... | |
sal_uInt16 | m_nPropFirstLineOffset = 100 |
bool | m_bAutoFirst = false |
Automatic calculation of the first line indent. 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) | |
first line indent that may be applied to paragraphs
Definition at line 132 of file lrspitem.hxx.
|
explicit |
SvxFirstLineIndentItem::SvxFirstLineIndentItem | ( | const short | nOffset, |
const sal_uInt16 | nId | ||
) |
Definition at line 925 of file frmitems.cxx.
References nId.
|
default |
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 1009 of file frmitems.cxx.
References SvxFirstLineIndentItem().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1079 of file frmitems.cxx.
References SfxPoolItem::dumpAsJSON(), GetMetricText(), and GetTextFirstLineOffset().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1069 of file frmitems.cxx.
References m_bAutoFirst, m_nFirstLineOffset, m_nPropFirstLineOffset, and SfxPoolItem::Which().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1014 of file frmitems.cxx.
References EditResId(), unicode::formatPercent(), GetMetricId(), GetMetricText(), Application::GetSettings(), m_nFirstLineOffset, and m_nPropFirstLineOffset.
|
inline |
Definition at line 149 of file lrspitem.hxx.
Referenced by operator==().
|
inline |
Definition at line 146 of file lrspitem.hxx.
Referenced by dumpAsJSON(), SvxTextLeftMarginItem::GetLeft(), and operator==().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1064 of file frmitems.cxx.
|
inline |
Definition at line 142 of file lrspitem.hxx.
Referenced by operator==(), and QueryValue().
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 998 of file frmitems.cxx.
References GetPropTextFirstLineOffset(), GetTextFirstLineOffset(), IsAutoFirst(), m_bAutoFirst, m_nFirstLineOffset, and m_nPropFirstLineOffset.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 956 of file frmitems.cxx.
References Any2Bool(), CONVERT_TWIPS, m_nFirstLineOffset, m_nPropFirstLineOffset, MID_FIRST_AUTO, MID_FIRST_LINE_INDENT, MID_FIRST_LINE_REL_INDENT, o3tl::mm100, SAL_MAX_UINT16, SetAutoFirst(), SetPropTextFirstLineOffset(), and o3tl::toTwips().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 931 of file frmitems.cxx.
References CONVERT_TWIPS, convertTwipToMm100(), IsAutoFirst(), m_nFirstLineOffset, m_nPropFirstLineOffset, MID_FIRST_AUTO, MID_FIRST_LINE_INDENT, and MID_FIRST_LINE_REL_INDENT.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1059 of file frmitems.cxx.
References m_nFirstLineOffset, and BigInt::Scale().
|
inline |
Definition at line 143 of file lrspitem.hxx.
Referenced by PutValue().
|
inline |
Definition at line 147 of file lrspitem.hxx.
Referenced by PutValue().
void SvxFirstLineIndentItem::SetTextFirstLineOffset | ( | const short | nF, |
const sal_uInt16 | nProp = 100 |
||
) |
Definition at line 497 of file frmitems.cxx.
References m_nFirstLineOffset, and m_nPropFirstLineOffset.
|
inline |
Definition at line 151 of file lrspitem.hxx.
References nValue.
|
private |
Automatic calculation of the first line indent.
Definition at line 139 of file lrspitem.hxx.
Referenced by dumpAsXml(), and operator==().
|
private |
First-line indent always relative to GetTextLeft()
Definition at line 136 of file lrspitem.hxx.
Referenced by dumpAsXml(), GetPresentation(), operator==(), PutValue(), QueryValue(), ScaleMetrics(), and SetTextFirstLineOffset().
|
private |
Definition at line 137 of file lrspitem.hxx.
Referenced by dumpAsXml(), GetPresentation(), operator==(), PutValue(), QueryValue(), and SetTextFirstLineOffset().