22#include <unoevent.hxx>
32using ::com::sun::star::container::XNameReplace;
38 { SvMacroItemId::SwObjectSelect,
"OnSelect" },
39 { SvMacroItemId::OnMouseOver,
"OnMouseOver" },
40 { SvMacroItemId::OnClick,
"OnClick" },
41 { SvMacroItemId::OnMouseOut,
"OnMouseOut" },
42 { SvMacroItemId::OnImageLoadDone,
"OnLoadDone" },
43 { SvMacroItemId::OnImageLoadCancel,
"OnLoadCancel" },
44 { SvMacroItemId::OnImageLoadError,
"OnLoadError" },
45 { SvMacroItemId::NONE,
nullptr }
50 { SvMacroItemId::SwObjectSelect,
"OnSelect" },
51 { SvMacroItemId::SwFrmKeyInputAlpha,
"OnAlphaCharInput" },
52 { SvMacroItemId::SwFrmKeyInputNoAlpha,
"OnNonAlphaCharInput" },
53 { SvMacroItemId::SwFrmResize,
"OnResize" },
54 { SvMacroItemId::SwFrmMove,
"OnMove" },
55 { SvMacroItemId::OnMouseOver,
"OnMouseOver" },
56 { SvMacroItemId::OnClick,
"OnClick" },
57 { SvMacroItemId::OnMouseOut,
"OnMouseOut" },
58 { SvMacroItemId::NONE,
nullptr }
63 { SvMacroItemId::SwObjectSelect,
"OnSelect" },
64 { SvMacroItemId::OnMouseOver,
"OnMouseOver" },
65 { SvMacroItemId::OnClick,
"OnClick" },
66 { SvMacroItemId::OnMouseOut,
"OnMouseOut" },
67 { SvMacroItemId::NONE,
nullptr }
72 { SvMacroItemId::OnMouseOver,
"OnMouseOver" },
73 { SvMacroItemId::OnClick,
"OnClick" },
74 { SvMacroItemId::OnMouseOut,
"OnMouseOut" },
75 { SvMacroItemId::NONE,
nullptr }
80 { SvMacroItemId::SwObjectSelect,
"OnSelect" },
81 { SvMacroItemId::SwFrmKeyInputAlpha,
"OnAlphaCharInput" },
82 { SvMacroItemId::SwFrmKeyInputNoAlpha,
"OnNonAlphaCharInput" },
83 { SvMacroItemId::SwFrmResize,
"OnResize" },
84 { SvMacroItemId::SwFrmMove,
"OnMove" },
85 { SvMacroItemId::OnMouseOver,
"OnMouseOver" },
86 { SvMacroItemId::OnClick,
"OnClick" },
87 { SvMacroItemId::OnMouseOut,
"OnMouseOut" },
88 { SvMacroItemId::OnImageLoadDone,
"OnLoadDone" },
89 { SvMacroItemId::OnImageLoadCancel,
"OnLoadCancel" },
90 { SvMacroItemId::OnImageLoadError,
"OnLoadError" },
91 { SvMacroItemId::NONE,
nullptr }
105 return "SwHyperlinkEventDescriptor";
115 if (
nullptr != aMacro)
137 container::XNameReplace>
const & xReplace)
141 for(
const OUString& rName : aNames)
144 if (xReplace->hasByName(rName))
147 xReplace->getByName(rName));
163 m_rFrame(static_cast<SwXFrame&>(rGraphicRef))
170 m_rFrame(static_cast<SwXFrame&>(rObjectRef))
180 m_rFrame.GetFrameFormat()->SetFormatAttr(rItem);
195 return "SwFrameEventDescriptor";
225 return "SwFrameStyleEventDescriptor";
const SvEventDescription * mpSupportedMacroItems
virtual void SAL_CALL replaceByName(const OUString &rName, const css::uno::Any &rElement) override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
bool hasById(const SvMacroItemId nEvent) const
virtual void getByName(SvxMacro &rMacro, const SvMacroItemId nEvent) override
virtual void replaceByName(const SvMacroItemId nEvent, const SvxMacro &rMacro) override
virtual void setMacroItem(const SvxMacroItem &rItem) override
virtual OUString SAL_CALL getImplementationName() override
SwFrameEventDescriptor(SwXTextFrame &rFrameRef)
virtual const SvxMacroItem & getMacroItem() override
virtual ~SwFrameEventDescriptor() override
virtual sal_uInt16 getMacroItemWhich() const override
virtual const SvxMacroItem & getMacroItem() override
virtual sal_uInt16 getMacroItemWhich() const override
virtual ~SwFrameStyleEventDescriptor() override
virtual void setMacroItem(const SvxMacroItem &rItem) override
SwFrameStyleEventDescriptor(sw::ICoreFrameStyle &rStyle)
virtual OUString SAL_CALL getImplementationName() override
sw::ICoreFrameStyle & m_rStyle
virtual ~SwHyperlinkEventDescriptor() override
void copyMacrosIntoINetFormat(SwFormatINetFormat &aFormat)
void copyMacrosFromINetFormat(const SwFormatINetFormat &aFormat)
void copyMacrosFromNameReplace(css::uno::Reference< css::container::XNameReplace > const &xReplace)
SwHyperlinkEventDescriptor()
virtual OUString SAL_CALL getImplementationName() override
virtual const SfxPoolItem * GetItem(sal_uInt16 eAtr)=0
virtual void SetItem(sal_uInt16 eAtr, const SfxPoolItem &rItem)=0
constexpr TypedWhichId< SvxMacroItem > RES_FRMMACRO(114)
const struct SvEventDescription aFrameStyleEvents[]
const struct SvEventDescription aFrameEvents[]
const SvxMacroItem aEmptyMacroItem(RES_FRMMACRO)
const struct SvEventDescription aHyperlinkEvents[]
const struct SvEventDescription aGraphicEvents[]
const struct SvEventDescription aOLEEvents[]