LibreOffice Module editeng (master) 1
|
#include <lrspitem.hxx>
Public Member Functions | |
SvxLRSpaceItem (const sal_uInt16 nId) | |
SvxLRSpaceItem (const tools::Long nLeft, const tools::Long nRight, const short nOfset, const sal_uInt16 nId) | |
SvxLRSpaceItem (SvxLRSpaceItem 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 SvxLRSpaceItem * | Clone (SfxItemPool *pPool=nullptr) const override |
virtual void | ScaleMetrics (tools::Long nMult, tools::Long nDiv) override |
virtual bool | HasMetrics () const override |
void | SetLeft (const tools::Long nL, const sal_uInt16 nProp=100) |
void | SetRight (const tools::Long nR, const sal_uInt16 nProp=100) |
tools::Long | GetLeft () const |
tools::Long | GetRight () const |
void | SetLeftValue (const tools::Long nL) |
void | SetRightValue (const tools::Long nR) |
bool | IsAutoFirst () const |
void | SetAutoFirst (const bool bNew) |
bool | IsExplicitZeroMarginValRight () const |
bool | IsExplicitZeroMarginValLeft () const |
void | SetExplicitZeroMarginValRight (const bool eR) |
void | SetExplicitZeroMarginValLeft (const bool eL) |
sal_uInt16 | GetPropLeft () const |
sal_uInt16 | GetPropRight () const |
void | SetTextLeft (const tools::Long nL, const sal_uInt16 nProp=100) |
tools::Long | GetTextLeft () const |
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) |
void | SetGutterMargin (const tools::Long nGutterMargin) |
tools::Long | GetGutterMargin () const |
void | SetRightGutterMargin (const tools::Long nRightGutterMargin) |
tools::Long | GetRightGutterMargin () const |
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 |
Static Public Member Functions | |
static SfxPoolItem * | CreateDefault () |
Private Attributes | |
short | nFirstLineOffset |
First-line indent always relative to GetTextLeft() More... | |
tools::Long | nLeftMargin |
tools::Long | nRightMargin |
tools::Long | m_nGutterMargin |
The amount of extra space added to the left margin. More... | |
tools::Long | m_nRightGutterMargin |
The amount of extra space added to the right margin, on mirrored pages. More... | |
sal_uInt16 | nPropFirstLineOffset |
sal_uInt16 | nPropLeftMargin |
sal_uInt16 | nPropRightMargin |
bool | bAutoFirst |
bool | bExplicitZeroMarginValRight |
bool | bExplicitZeroMarginValLeft |
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 281 of file lrspitem.hxx.
|
explicit |
Definition at line 290 of file frmitems.cxx.
References nFirstLineOffset, nId, nLeftMargin, and nRightMargin.
Referenced by Clone(), and CreateDefault().
SvxLRSpaceItem::SvxLRSpaceItem | ( | const tools::Long | nLeft, |
const tools::Long | nRight, | ||
const short | nOfset, | ||
const sal_uInt16 | nId | ||
) |
Definition at line 307 of file frmitems.cxx.
References nFirstLineOffset, nId, nLeftMargin, and nRightMargin.
|
default |
|
overridevirtual |
|
static |
Definition at line 91 of file frmitems.cxx.
References SvxLRSpaceItem().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1636 of file frmitems.cxx.
References SfxPoolItem::dumpAsJSON(), GetLeft(), GetMetricText(), GetRight(), and GetTextFirstLineOffset().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1615 of file frmitems.cxx.
References bAutoFirst, bExplicitZeroMarginValLeft, bExplicitZeroMarginValRight, m_nGutterMargin, m_nRightGutterMargin, nFirstLineOffset, nLeftMargin, nPropFirstLineOffset, nPropLeftMargin, nPropRightMargin, nRightMargin, and SfxPoolItem::Which().
|
inline |
Definition at line 354 of file lrspitem.hxx.
Referenced by operator==().
|
inline |
Definition at line 327 of file lrspitem.hxx.
References nLeftMargin.
Referenced by dumpAsJSON(), and operator==().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1517 of file frmitems.cxx.
References cpDelim, EditResId(), unicode::formatPercent(), GetMetricId(), GetMetricText(), Application::GetSettings(), nFirstLineOffset, nLeftMargin, nPropFirstLineOffset, nPropLeftMargin, nPropRightMargin, and nRightMargin.
|
inline |
Definition at line 338 of file lrspitem.hxx.
Referenced by operator==().
|
inline |
Definition at line 339 of file lrspitem.hxx.
Referenced by operator==().
|
inline |
Definition at line 349 of file lrspitem.hxx.
Referenced by operator==().
|
inline |
Definition at line 328 of file lrspitem.hxx.
References nRightMargin.
Referenced by ImpEditEngine::CalcParaWidth(), ConvertItem(), ImpEditEngine::CreateAndInsertEmptyLine(), ImpEditEngine::CreateLines(), dumpAsJSON(), and operator==().
|
inline |
Definition at line 356 of file lrspitem.hxx.
Referenced by operator==().
|
inline |
Definition at line 346 of file lrspitem.hxx.
References nFirstLineOffset.
Referenced by ImpEditEngine::CalcParaWidth(), ConvertItem(), ImpEditEngine::CreateAndInsertEmptyLine(), ImpEditEngine::CreateLines(), dumpAsJSON(), EditEngine::GetDocPosTopLeft(), Outliner::ImpCalcBulletArea(), and operator==().
tools::Long SvxLRSpaceItem::GetTextLeft | ( | ) | const |
Definition at line 567 of file frmitems.cxx.
References nFirstLineOffset, and nLeftMargin.
Referenced by ImpEditEngine::CalcParaWidth(), ConvertItem(), ImpEditEngine::CreateAndInsertEmptyLine(), ImpEditEngine::CreateLines(), EditEngine::GetDocPosTopLeft(), Outliner::ImpCalcBulletArea(), and QueryValue().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1609 of file frmitems.cxx.
|
inline |
Definition at line 331 of file lrspitem.hxx.
Referenced by operator==(), and QueryValue().
|
inline |
Definition at line 335 of file lrspitem.hxx.
Referenced by operator==().
|
inline |
Definition at line 334 of file lrspitem.hxx.
Referenced by operator==().
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 1492 of file frmitems.cxx.
References bAutoFirst, bExplicitZeroMarginValLeft, bExplicitZeroMarginValRight, GetGutterMargin(), GetLeft(), GetPropLeft(), GetPropRight(), GetPropTextFirstLineOffset(), GetRight(), GetRightGutterMargin(), GetTextFirstLineOffset(), IsAutoFirst(), IsExplicitZeroMarginValLeft(), IsExplicitZeroMarginValRight(), m_nGutterMargin, m_nRightGutterMargin, nFirstLineOffset, nLeftMargin, nPropFirstLineOffset, nPropLeftMargin, nPropRightMargin, and nRightMargin.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 391 of file frmitems.cxx.
References Any2Bool(), CONVERT_TWIPS, MID_FIRST_AUTO, MID_FIRST_LINE_INDENT, MID_FIRST_LINE_REL_INDENT, MID_GUTTER_MARGIN, MID_L_MARGIN, MID_L_REL_MARGIN, MID_R_MARGIN, MID_R_REL_MARGIN, MID_TXT_LMARGIN, o3tl::mm100, nPropLeftMargin, nPropRightMargin, SAL_MAX_UINT16, SetAutoFirst(), SetGutterMargin(), SetLeft(), SetPropTextFirstLineOffset(), SetRight(), SetTextFirstLineOffset(), SetTextLeft(), and o3tl::toTwips().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 326 of file frmitems.cxx.
References CONVERT_TWIPS, convertTwipToMm100(), GetTextLeft(), IsAutoFirst(), m_nGutterMargin, MID_FIRST_AUTO, MID_FIRST_LINE_INDENT, MID_FIRST_LINE_REL_INDENT, MID_GUTTER_MARGIN, MID_L_MARGIN, MID_L_REL_MARGIN, MID_R_MARGIN, MID_R_REL_MARGIN, MID_TXT_LMARGIN, nFirstLineOffset, nLeftMargin, nPropFirstLineOffset, nPropLeftMargin, nPropRightMargin, and nRightMargin.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1601 of file frmitems.cxx.
References nFirstLineOffset, nLeftMargin, nRightMargin, and BigInt::Scale().
|
inline |
Definition at line 332 of file lrspitem.hxx.
Referenced by PutValue().
|
inline |
Definition at line 337 of file lrspitem.hxx.
Referenced by SetTextLeft().
|
inline |
Definition at line 336 of file lrspitem.hxx.
Referenced by SetRight().
|
inline |
Definition at line 353 of file lrspitem.hxx.
Referenced by PutValue().
void SvxLRSpaceItem::SetLeft | ( | const tools::Long | nL, |
const sal_uInt16 | nProp = 100 |
||
) |
Definition at line 474 of file frmitems.cxx.
References nFirstLineOffset, nLeftMargin, nPropLeftMargin, and SAL_WARN_IF.
Referenced by PutValue().
|
inline |
Definition at line 329 of file lrspitem.hxx.
References nFirstLineOffset, and nLeftMargin.
|
inline |
Definition at line 347 of file lrspitem.hxx.
Referenced by PutValue().
void SvxLRSpaceItem::SetRight | ( | const tools::Long | nR, |
const sal_uInt16 | nProp = 100 |
||
) |
Definition at line 487 of file frmitems.cxx.
References nPropRightMargin, nRightMargin, and SetExplicitZeroMarginValRight().
Referenced by ConvertItem(), PutValue(), and SvxRTFParser::ReadAttr().
|
inline |
Definition at line 355 of file lrspitem.hxx.
|
inline |
Definition at line 330 of file lrspitem.hxx.
References nRightMargin.
void SvxLRSpaceItem::SetTextFirstLineOffset | ( | const short | nF, |
const sal_uInt16 | nProp = 100 |
||
) |
Definition at line 504 of file frmitems.cxx.
References nFirstLineOffset, nLeftMargin, and nPropFirstLineOffset.
Referenced by ConvertItem(), PutValue(), and SvxRTFParser::ReadAttr().
|
inline |
Definition at line 351 of file lrspitem.hxx.
References nFirstLineOffset, and nValue.
void SvxLRSpaceItem::SetTextLeft | ( | const tools::Long | nL, |
const sal_uInt16 | nProp = 100 |
||
) |
Definition at line 539 of file frmitems.cxx.
References nFirstLineOffset, nLeftMargin, nPropLeftMargin, and SetExplicitZeroMarginValLeft().
Referenced by ConvertItem(), PutValue(), and SvxRTFParser::ReadAttr().
|
private |
Definition at line 293 of file lrspitem.hxx.
Referenced by dumpAsXml(), and operator==().
|
private |
Definition at line 295 of file lrspitem.hxx.
Referenced by dumpAsXml(), and operator==().
|
private |
Definition at line 294 of file lrspitem.hxx.
Referenced by dumpAsXml(), and operator==().
|
private |
The amount of extra space added to the left margin.
Definition at line 288 of file lrspitem.hxx.
Referenced by dumpAsXml(), operator==(), and QueryValue().
|
private |
The amount of extra space added to the right margin, on mirrored pages.
Definition at line 290 of file lrspitem.hxx.
Referenced by dumpAsXml(), and operator==().
|
private |
First-line indent always relative to GetTextLeft()
Definition at line 284 of file lrspitem.hxx.
Referenced by dumpAsXml(), GetPresentation(), GetTextLeft(), operator==(), QueryValue(), ScaleMetrics(), SetLeft(), SetTextFirstLineOffset(), and SetTextLeft().
|
private |
Definition at line 285 of file lrspitem.hxx.
Referenced by dumpAsXml(), GetPresentation(), GetTextLeft(), operator==(), QueryValue(), ScaleMetrics(), SetLeft(), SetTextFirstLineOffset(), and SetTextLeft().
|
private |
Definition at line 292 of file lrspitem.hxx.
Referenced by dumpAsXml(), GetPresentation(), operator==(), QueryValue(), and SetTextFirstLineOffset().
|
private |
Definition at line 292 of file lrspitem.hxx.
Referenced by dumpAsXml(), GetPresentation(), operator==(), PutValue(), QueryValue(), SetLeft(), and SetTextLeft().
|
private |
Definition at line 292 of file lrspitem.hxx.
Referenced by dumpAsXml(), GetPresentation(), operator==(), PutValue(), QueryValue(), and SetRight().
|
private |
Definition at line 286 of file lrspitem.hxx.
Referenced by dumpAsXml(), GetPresentation(), operator==(), QueryValue(), ScaleMetrics(), and SetRight().