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>
30#include <unordered_map>
34typedef std::unordered_map<OUString, EventPair>
EventsHash;
65 std::unique_ptr<SvxMacroTabPage_Impl>
mpImpl;
85 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 );
100 const css::uno::Reference< css::frame::XFrame >& _rxDocumentFrame,
102 css::uno::Reference< css::container::XNameReplace >
const & xNameReplace,
103 sal_uInt16 nSelectedIndex
125 const css::uno::Reference< css::frame::XFrame >& _rxDocumentFrame,
127 const css::uno::Reference< css::container::XNameReplace >& xNameReplace,
128 sal_uInt16 nSelectedIndex
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)
DECL_LINK(OKHdl_Impl, weld::Button &, void)
SvxMacroAssignSingleTabDialog(weld::Window *pParent, const SfxItemSet &rOptionsSet)
static EventPair GetPairFromAny(const css::uno::Any &aAny)
DECL_LINK(AssignDeleteHdl_Impl, weld::Button &, void)
EventsHash m_docEventsHash
EventsHash m_appEventsHash
DECL_LINK(SelectEvent_Impl, weld::TreeView &, void)
css::uno::Reference< css::container::XNameReplace > m_xDocEvents
css::uno::Reference< css::util::XModifiable > m_xModifiable
virtual void Reset(const SfxItemSet *) override
static css::uno::Any GetPropsByName(const OUString &eventName, EventsHash &eventsHash)
DECL_LINK(DoubleClickHdl_Impl, weld::TreeView &, bool)
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)
css::uno::Reference< css::container::XNameReplace > m_xAppEvents
DECL_LINK(DeleteAllHdl_Impl, weld::Button &, void)
void GenericHandler_Impl(const weld::Button *pBtn)
std::vector< EventDisplayName > aDisplayNames
SvxMacroTabPage_(weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet &rItemSet)
bool IsReadOnly() const override
void DisplayAppEvents(bool appEvents)
std::unique_ptr< SvxMacroTabPage_Impl > mpImpl
const EventPair * LookupEvent(const OUString &rEventName)
virtual bool FillItemSet(SfxItemSet *rSet) override
virtual ~SvxMacroTabPage_() override
void SetReadOnly(bool bSet)
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::pair< OUString, OUString > EventPair
std::unordered_map< OUString, EventPair > EventsHash
WhichRangesContainer(* GetTabPageRanges)()
EventDisplayName(const char *pAsciiName, TranslateId pResId)
const char * pAsciiEventName
TranslateId pEventResourceID