LibreOffice Module editeng (master) 1
|
#include <fhgtitem.hxx>
Public Member Functions | |
SvxFontHeightItem (const sal_uInt32 nSz, const sal_uInt16 nPropHeight, const sal_uInt16 nId) | |
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 SvxFontHeightItem * | Clone (SfxItemPool *pPool=nullptr) const override |
virtual void | ScaleMetrics (tools::Long nMult, tools::Long nDiv) override |
virtual bool | HasMetrics () const override |
void | SetHeight (sal_uInt32 nNewHeight, const sal_uInt16 nNewProp=100, MapUnit eUnit=MapUnit::MapRelative) |
void | SetHeight (sal_uInt32 nNewHeight, sal_uInt16 nNewProp, MapUnit eUnit, MapUnit eCoreUnit) |
sal_uInt32 | GetHeight () const |
void | SetProp (sal_uInt16 nNewProp, MapUnit eUnit) |
sal_uInt16 | GetProp () const |
MapUnit | GetPropUnit () 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 |
Static Public Member Functions | |
static SfxPoolItem * | CreateDefault () |
Private Member Functions | |
void | legacy_direct_set (sal_uInt32 nH, sal_uInt16 nP, MapUnit eP) |
Private Attributes | |
sal_uInt32 | nHeight |
sal_uInt16 | nProp |
MapUnit | ePropUnit |
Friends | |
void | Create_legacy_direct_set (SvxFontHeightItem &rItem, sal_uInt32 nH, sal_uInt16 nP, MapUnit eP) |
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 38 of file fhgtitem.hxx.
SvxFontHeightItem::SvxFontHeightItem | ( | const sal_uInt32 | nSz, |
const sal_uInt16 | nPropHeight, | ||
const sal_uInt16 | nId | ||
) |
Definition at line 612 of file textitem.cxx.
References nId, and SetHeight().
Referenced by Clone(), and CreateDefault().
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 620 of file textitem.cxx.
References SvxFontHeightItem().
|
static |
Definition at line 91 of file textitem.cxx.
References SvxFontHeightItem().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 929 of file textitem.cxx.
References ePropUnit, nHeight, nProp, and SfxPoolItem::Which().
|
inline |
Definition at line 74 of file fhgtitem.hxx.
Referenced by EditView::ChangeFontSize(), ConvertItem(), CreateFont(), operator==(), and legacy::SvxFontHeight::Store().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 855 of file textitem.cxx.
References EditResId(), ePropUnit, GetMetricId(), GetMetricText(), nHeight, and nProp.
|
inline |
Definition at line 83 of file fhgtitem.hxx.
Referenced by operator==(), and legacy::SvxFontHeight::Store().
|
inline |
Definition at line 85 of file fhgtitem.hxx.
Referenced by operator==(), and legacy::SvxFontHeight::Store().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 888 of file textitem.cxx.
|
inlineprivate |
Definition at line 46 of file fhgtitem.hxx.
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 625 of file textitem.cxx.
References GetHeight(), GetProp(), and GetPropUnit().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 771 of file textitem.cxx.
References CONVERT_TWIPS, convertTwipToMm100(), ePropUnit, lcl_GetRealHeight_Impl(), MID_FONTHEIGHT, MID_FONTHEIGHT_DIFF, MID_FONTHEIGHT_PROP, nHeight, nProp, and nValue.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 633 of file textitem.cxx.
References o3tl::convert(), CONVERT_TWIPS, ePropUnit, MID_FONTHEIGHT, MID_FONTHEIGHT_DIFF, MID_FONTHEIGHT_PROP, o3tl::mm100, nHeight, nProp, o3tl::pt, and o3tl::twip.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 882 of file textitem.cxx.
References nHeight, and BigInt::Scale().
void SvxFontHeightItem::SetHeight | ( | sal_uInt32 | nNewHeight, |
const sal_uInt16 | nNewProp = 100 , |
||
MapUnit | eUnit = MapUnit::MapRelative |
||
) |
Definition at line 893 of file textitem.cxx.
References DBG_ASSERT, ePropUnit, SfxPoolItem::GetRefCount(), nHeight, and nProp.
Referenced by EditView::ChangeFontSize(), ConvertItem(), and SvxFontHeightItem().
void SvxFontHeightItem::SetHeight | ( | sal_uInt32 | nNewHeight, |
sal_uInt16 | nNewProp, | ||
MapUnit | eUnit, | ||
MapUnit | eCoreUnit | ||
) |
Definition at line 910 of file textitem.cxx.
References DBG_ASSERT, ePropUnit, SfxPoolItem::GetRefCount(), nHeight, and nProp.
|
inline |
Definition at line 76 of file fhgtitem.hxx.
References DBG_ASSERT, and SfxPoolItem::GetRefCount().
Referenced by EditRTFParser::SetAttrInDoc().
|
friend |
Definition at line 51 of file legacyitem.cxx.
|
private |
Definition at line 42 of file fhgtitem.hxx.
Referenced by dumpAsXml(), GetPresentation(), PutValue(), QueryValue(), and SetHeight().
|
private |
Definition at line 40 of file fhgtitem.hxx.
Referenced by dumpAsXml(), GetPresentation(), PutValue(), QueryValue(), ScaleMetrics(), and SetHeight().
|
private |
Definition at line 41 of file fhgtitem.hxx.
Referenced by dumpAsXml(), GetPresentation(), PutValue(), QueryValue(), and SetHeight().