24 #include <com/sun/star/container/XNameReplace.hpp>
25 #include <com/sun/star/util/XModifiable.hpp>
26 #include <com/sun/star/uno/Reference.hxx>
27 #include <rtl/ustring.hxx>
29 #include <unordered_map>
32 typedef std::unordered_map< OUString, std::pair< OUString, OUString > >
EventsHash;
39 : pAsciiEventName(pAsciiName)
40 , pEventResourceID(pResId)
61 std::unique_ptr<SvxMacroTabPage_Impl>
mpImpl;
73 static std::pair< OUString, OUString >
GetPairFromAny(
const css::uno::Any& aAny );
80 void InitAndSetHandler(
const css::uno::Reference< css::container::XNameReplace >& xAppEvents,
const css::uno::Reference< css::container::XNameReplace >& xDocEvents,
const css::uno::Reference< css::util::XModifiable >& xModifiable );
95 const css::uno::Reference< css::frame::XFrame >& _rxDocumentFrame,
97 css::uno::Reference< css::container::XNameReplace >
const & xNameReplace,
98 sal_uInt16 nSelectedIndex
104 typedef const sal_uInt16* (*GetTabPageRanges)();
120 const css::uno::Reference< css::frame::XFrame >& _rxDocumentFrame,
122 const css::uno::Reference< css::container::XNameReplace >& xNameReplace,
123 sal_uInt16 nSelectedIndex
virtual bool FillItemSet(SfxItemSet *rSet) override
SvxMacroAssignDlg(weld::Window *pParent, const css::uno::Reference< css::frame::XFrame > &_rxDocumentFrame, const SfxItemSet &rSet, const css::uno::Reference< css::container::XNameReplace > &xNameReplace, sal_uInt16 nSelectedIndex)
static void GenericHandler_Impl(SvxMacroTabPage_ *pThis, const weld::Button *pBtn)
void DisplayAppEvents(bool appEvents)
SvxMacroTabPage_(weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet &rItemSet)
DECL_LINK(OKHdl_Impl, weld::Button &, void)
SvxMacroAssignSingleTabDialog(weld::Window *pParent, const SfxItemSet &rOptionsSet)
const char * pAsciiEventName
css::uno::Reference< css::util::XModifiable > m_xModifiable
EventsHash m_docEventsHash
SvxMacroTabPage(weld::Container *pPage, weld::DialogController *pController, const css::uno::Reference< css::frame::XFrame > &_rxDocumentFrame, const SfxItemSet &rSet, css::uno::Reference< css::container::XNameReplace > const &xNameReplace, sal_uInt16 nSelectedIndex)
std::vector< EventDisplayName > aDisplayNames
std::unique_ptr< SvxMacroTabPage_Impl > mpImpl
std::unordered_map< OUString, std::pair< OUString, OUString > > EventsHash
void InitAndSetHandler(const css::uno::Reference< css::container::XNameReplace > &xAppEvents, const css::uno::Reference< css::container::XNameReplace > &xDocEvents, const css::uno::Reference< css::util::XModifiable > &xModifiable)
static css::uno::Any GetPropsByName(const OUString &eventName, EventsHash &eventsHash)
DECL_LINK(SelectEvent_Impl, weld::TreeView &, void)
css::uno::Reference< css::container::XNameReplace > m_xAppEvents
bool IsReadOnly() const override
EventDisplayName(const char *pAsciiName, const char *pResId)
static std::pair< OUString, OUString > GetPairFromAny(const css::uno::Any &aAny)
void SetReadOnly(bool bSet)
virtual ~SvxMacroTabPage_() override
css::uno::Reference< css::container::XNameReplace > m_xDocEvents
virtual void Reset(const SfxItemSet *) override
EventsHash m_appEventsHash
const char * pEventResourceID