LibreOffice Module editeng (master) 1
|
#include <tstpitem.hxx>
Public Member Functions | |
SvxTabStopItem (sal_uInt16 nWhich) | |
SvxTabStopItem (const sal_uInt16 nTabs, const sal_uInt16 nDist, const SvxTabAdjust eAdjst, sal_uInt16 nWhich) | |
sal_uInt16 | GetPos (const SvxTabStop &rTab) const |
sal_uInt16 | GetPos (const sal_Int32 nPos) const |
void | SetDefaultDistance (sal_Int32 nDefaultDistancenDefTabSize) |
sal_Int32 | GetDefaultDistance () const |
sal_uInt16 | Count () const |
bool | Insert (const SvxTabStop &rTab) |
void | Insert (const SvxTabStopItem *pTabs) |
void | Remove (const sal_uInt16 nPos, const sal_uInt16 nLen=1) |
const SvxTabStop & | operator[] (const sal_uInt16 nPos) const |
const SvxTabStop & | At (const sal_uInt16 nPos) const |
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 SvxTabStopItem * | Clone (SfxItemPool *pPool=nullptr) const override |
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 SfxPoolItem * | CreateDefault () |
Private Attributes | |
SvxTabStopArr | maTabStops |
sal_Int32 | mnDefaultDistance = 0 |
Defines default tab width for tabs without dedicated tab stop in the paragraph. 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) | |
Definition at line 92 of file tstpitem.hxx.
|
explicit |
Definition at line 783 of file paraitem.cxx.
References Default, i, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), maTabStops, SVX_TAB_DEFCOUNT, and SVX_TAB_DEFDIST.
Referenced by Clone(), and CreateDefault().
SvxTabStopItem::SvxTabStopItem | ( | const sal_uInt16 | nTabs, |
const sal_uInt16 | nDist, | ||
const SvxTabAdjust | eAdjst, | ||
sal_uInt16 | nWhich | ||
) |
Definition at line 797 of file paraitem.cxx.
References i, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), and maTabStops.
|
inline |
Definition at line 131 of file tstpitem.hxx.
References nPos.
|
overridevirtual |
|
inline |
Definition at line 116 of file tstpitem.hxx.
Referenced by ConvertItem(), ContentAttribs::FindTabStop(), GetPresentation(), Insert(), operator==(), QueryValue(), and ImpEditEngine::WriteItemAsRTF().
|
static |
Definition at line 61 of file paraitem.cxx.
References SvxTabStopItem().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1068 of file paraitem.cxx.
References maTabStops, and mnDefaultDistance.
sal_Int32 SvxTabStopItem::GetDefaultDistance | ( | ) | const |
Definition at line 829 of file paraitem.cxx.
References mnDefaultDistance.
Referenced by ConvertItem(), ContentAttribs::FindTabStop(), and operator==().
sal_uInt16 SvxTabStopItem::GetPos | ( | const sal_Int32 | nPos | ) | const |
Definition at line 818 of file paraitem.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::begin(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), maTabStops, nPos, and SVX_TAB_NOTFOUND.
sal_uInt16 SvxTabStopItem::GetPos | ( | const SvxTabStop & | rTab | ) | const |
Definition at line 811 of file paraitem.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::begin(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), maTabStops, and SVX_TAB_NOTFOUND.
Referenced by Insert().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1013 of file paraitem.cxx.
References Count(), Default, EditResId(), GetMetricId(), GetMetricText(), and i.
bool SvxTabStopItem::Insert | ( | const SvxTabStop & | rTab | ) |
Definition at line 1045 of file paraitem.cxx.
References GetPos(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), maTabStops, Remove(), and SVX_TAB_NOTFOUND.
Referenced by ConvertItem(), PutValue(), and SvxRTFParser::ReadTabAttr().
void SvxTabStopItem::Insert | ( | const SvxTabStopItem * | pTabs | ) |
Definition at line 1053 of file paraitem.cxx.
References Count(), GetPos(), i, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), maTabStops, Remove(), and SVX_TAB_NOTFOUND.
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 990 of file paraitem.cxx.
References Count(), GetDefaultDistance(), i, and mnDefaultDistance.
|
inline |
Definition at line 128 of file tstpitem.hxx.
References nPos.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 880 of file paraitem.cxx.
References aSeq, Center, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), CONVERT_TWIPS, Decimal, Default, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::front(), SvxTabStop::GetAdjustment(), SvxTabStop::GetDecimal(), SvxTabStop::GetFill(), i, Insert(), Left, maTabStops, MID_STD_TAB, MID_TABSTOP_DEFAULT_DISTANCE, MID_TABSTOPS, o3tl::mm100, mnDefaultDistance, n, nCount, nLength, Position, Remove(), Right, and o3tl::toTwips().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 834 of file paraitem.cxx.
References aSeq, Center, CONVERT_TWIPS, convertTwipToMm100(), Count(), Decimal, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::front(), SvxTabStop::GetAdjustment(), SvxTabStop::GetDecimal(), SvxTabStop::GetFill(), SvxTabStop::GetTabPos(), i, Left, maTabStops, MID_STD_TAB, MID_TABSTOP_DEFAULT_DISTANCE, MID_TABSTOPS, mnDefaultDistance, nCount, and Right.
|
inline |
Definition at line 119 of file tstpitem.hxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::begin(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::erase(), and nPos.
Referenced by Insert(), and PutValue().
void SvxTabStopItem::SetDefaultDistance | ( | sal_Int32 | nDefaultDistancenDefTabSize | ) |
Definition at line 824 of file paraitem.cxx.
References mnDefaultDistance.
Referenced by ConvertItem().
|
private |
Definition at line 94 of file tstpitem.hxx.
Referenced by dumpAsXml(), GetPos(), Insert(), PutValue(), QueryValue(), and SvxTabStopItem().
|
private |
Defines default tab width for tabs without dedicated tab stop in the paragraph.
Definition at line 96 of file tstpitem.hxx.
Referenced by dumpAsXml(), GetDefaultDistance(), operator==(), PutValue(), QueryValue(), and SetDefaultDistance().