21#include <editeng/editids.hrc>
25#include <osl/diagnose.h>
28#include <com/sun/star/uno/Sequence.hxx>
29#include <com/sun/star/beans/PropertyValue.hpp>
61 case SID_ATTR_CHAR_LATIN_FONT:
return SID_ATTR_CHAR_FONT;
62 case SID_ATTR_CHAR_LATIN_LANGUAGE:
return SID_ATTR_CHAR_LANGUAGE;
63 case SID_ATTR_CHAR_LATIN_POSTURE:
return SID_ATTR_CHAR_POSTURE;
64 case SID_ATTR_CHAR_LATIN_WEIGHT:
return SID_ATTR_CHAR_WEIGHT;
65 case SID_ATTR_CHAR_LATIN_FONTHEIGHT:
return SID_ATTR_CHAR_FONTHEIGHT;
74 OSL_ENSURE(
getEditView(),
"OParametrizedAttributeDispatcher::notifyState: already disposed!" );
79 Sequence< PropertyValue > aUnoStateDescription;
85 _rEvent.State <<= aUnoStateDescription;
102 if ( aParameterSet.
Count() )
104 OSL_ENSURE( aParameterSet.
Count() == 1,
"OParametrizedAttributeDispatcher::convertDispatchArgsToItem: Arguments which form more than 1 item? How this?" );
106 pArgument = aParameterSet.
GetItem( nAttributeWhich );
107 OSL_ENSURE( pArgument,
"OParametrizedAttributeDispatcher::convertDispatchArgsToItem: suspicious: there were arguments, but they're not for my slot!" );
116 ::osl::MutexGuard aGuard(
m_aMutex );
117 OSL_ENSURE( _rURL.Complete ==
getFeatureURL().
Complete,
"OParametrizedAttributeDispatcher::dispatch: invalid URL!" );
sal_uInt16 GetWhich(sal_uInt16 nSlot, bool bDeep=true) const
sal_uInt16 GetSlotId(sal_uInt16 nWhich) const
SfxItemPool * GetPool() const
const SfxPoolItem * GetItem(sal_uInt16 nWhich, bool bSearchInParent=true) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
mutable::osl::Mutex m_aMutex
virtual void executeAttribute(AttributeId _nAttributeId, const SfxPoolItem *_pArgument)=0
AttributeId m_nAttributeId
virtual void fillFeatureEventFromAttributeState(css::frame::FeatureStateEvent &_rEvent, const AttributeState &_rState) const
IMultiAttributeDispatcher * m_pMasterDispatcher
virtual ~OParametrizedAttributeDispatcher() override
virtual void SAL_CALL dispatch(const css::util::URL &URL, const css::uno::Sequence< css::beans::PropertyValue > &Arguments) override
OParametrizedAttributeDispatcher(EditView &_rView, AttributeId _nAttributeId, const css::util::URL &_rURL, IMultiAttributeDispatcher *_pMasterDispatcher)
virtual const SfxPoolItem * convertDispatchArgsToItem(const css::uno::Sequence< css::beans::PropertyValue > &_rArguments)
convert the arguments as got in a XDispatch::dispatch call into an SfxPoolItem, which can be used wit...
virtual void fillFeatureEventFromAttributeState(css::frame::FeatureStateEvent &_rEvent, const AttributeState &_rState) const override
const css::util::URL & getFeatureURL() const
void dispose()
clean up resources associated with this instance
ListBox is a bit confusing / different from other form components, so here are a few notes:
sal_uInt16 WhichId
the "which id" of an item in an SfxItemSet
sal_uInt16 SfxSlotId
a SFX slot id
sal_Int32 AttributeId
the id of an attribute
SFX2_DLLPUBLIC void TransformParameters(sal_uInt16 nSlotId, const css::uno::Sequence< css::beans::PropertyValue > &seqArgs, SfxAllItemSet &aSet, const SfxSlot *pSlot=nullptr)
SFX2_DLLPUBLIC void TransformItems(sal_uInt16 nSlotId, const SfxItemSet &aSet, css::uno::Sequence< css::beans::PropertyValue > &seqArgs, const SfxSlot *pSlot=nullptr)
const SfxPoolItem * getItem() const