LibreOffice Module svl (master) 1
|
Grab bag item provides a string-any map for keys with untyped values. More...
#include <grabbagitem.hxx>
Public Member Functions | |
SfxGrabBagItem () | |
SfxGrabBagItem (sal_uInt16 nWhich) | |
~SfxGrabBagItem () override | |
SfxGrabBagItem (SfxGrabBagItem const &)=default | |
SfxGrabBagItem (SfxGrabBagItem &&)=default | |
SfxGrabBagItem & | operator= (SfxGrabBagItem const &)=delete |
SfxGrabBagItem & | operator= (SfxGrabBagItem &&)=delete |
const std::map< OUString, css::uno::Any > & | GetGrabBag () const |
std::map< OUString, css::uno::Any > & | GetGrabBag () |
bool | operator== (const SfxPoolItem &rItem) const override |
SfxGrabBagItem * | Clone (SfxItemPool *pPool=nullptr) const override |
bool | PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) override |
bool | QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override |
![]() | |
void | AddRef (sal_uInt32 n=1) const |
virtual | ~SfxPoolItem () |
void | SetWhich (sal_uInt16 nId) |
sal_uInt16 | Which () const |
template<class T > | |
T & | StaticWhichCast (TypedWhichId< T > nId) |
template<class T > | |
const T & | StaticWhichCast (TypedWhichId< T > nId) const |
template<class T > | |
T * | DynamicWhichCast (TypedWhichId< T > nId) |
template<class T > | |
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 |
This virtual method allows to get a textual representation of the value for the SfxPoolItem subclasses. More... | |
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 |
template<class T > | |
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 |
Only SfxVoidItem shall and must return true for this. More... | |
Private Attributes | |
std::map< OUString, css::uno::Any > | m_aMap |
Additional Inherited Members | |
![]() | |
typedef std::vector< SfxPoolItem * >::const_iterator | lookup_iterator |
![]() | |
SfxPoolItem (sal_uInt16 nWhich=0) | |
SfxPoolItem (const SfxPoolItem &rCopy) | |
Grab bag item provides a string-any map for keys with untyped values.
Definition at line 19 of file grabbagitem.hxx.
|
default |
Referenced by Clone().
SfxGrabBagItem::SfxGrabBagItem | ( | sal_uInt16 | nWhich | ) |
Definition at line 21 of file grabbagitem.cxx.
|
overridedefault |
|
default |
|
default |
|
overridevirtual |
|
inline |
Definition at line 36 of file grabbagitem.hxx.
|
inline |
Definition at line 34 of file grabbagitem.hxx.
|
delete |
|
delete |
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 28 of file grabbagitem.cxx.
References m_aMap, and SfxPoolItem::operator==().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 39 of file grabbagitem.cxx.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 56 of file grabbagitem.cxx.
|
private |
Definition at line 22 of file grabbagitem.hxx.
Referenced by operator==(), PutValue(), and QueryValue().