21#include <com/sun/star/document/XEventsSupplier.hpp>
22#include <com/sun/star/frame/Desktop.hpp>
23#include <com/sun/star/frame/theGlobalEventBroadcaster.hpp>
24#include <com/sun/star/frame/XStorable.hpp>
29#include <rtl/ustring.hxx>
42 , m_xSaveInListBox(m_xBuilder->weld_combo_box(
"savein"))
44 mpImpl->xEventLB = m_xBuilder->weld_tree_view(
"events");
45 mpImpl->xAssignPB = m_xBuilder->weld_button(
"macro");
46 mpImpl->xDeletePB = m_xBuilder->weld_button(
"delete");
47 mpImpl->xDeleteAllPB = m_xBuilder->weld_button(
"deleteall");
48 mpImpl->xAssignComponentPB = m_xBuilder->weld_button(
"component");
50 mpImpl->xEventLB->set_size_request(
mpImpl->xEventLB->get_approximate_digit_width() * 70,
51 mpImpl->xEventLB->get_height_rows(20));
59 frame::theGlobalEventBroadcaster::get(::comphelper::getProcessComponentContext());
106 if ( xSupplier.is() )
111 OUString aTitle = ::comphelper::DocumentInfo::getDocumentTitle(
xModel );
117 catch(
const uno::Exception& )
125 bool bApp = m_xSaveInListBox->get_active_id().toBoolean();
129 SetReadOnly(
false );
134 bool isReadonly =
false;
137 ::comphelper::getProcessComponentContext() );
140 xFramesSupplier->getActiveFrame();
151 isReadonly = xStorable->isReadonly();
155 SetReadOnly( isReadonly );
css::uno::Reference< css::frame::XFrame > GetFrame() const
void SetFrame(const css::uno::Reference< css::frame::XFrame > &xFrame)
static bool CanConfig(std::u16string_view rModuleId)
static OUString GetFrameWithDefaultAndIdentify(css::uno::Reference< css::frame::XFrame > &_inout_rxFrame)
identifies the module in the given frame.
css::uno::Reference< css::container::XNameReplace > m_xAppEvents
std::unique_ptr< weld::ComboBox > m_xSaveInListBox
void LateInit(const css::uno::Reference< css::frame::XFrame > &_rxFrame)
SvxEventConfigPage(const SvxEventConfigPage &)=delete
css::uno::Reference< css::util::XModifiable > m_xDocumentModifiable
css::uno::Reference< css::container::XNameReplace > m_xDocumentEvents
virtual ~SvxEventConfigPage() override
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)
void DisplayAppEvents(bool appEvents)
std::unique_ptr< SvxMacroTabPage_Impl > mpImpl
static OUString getProductName()
#define DBG_UNHANDLED_EXCEPTION(...)
IMPL_LINK_NOARG(SvxEventConfigPage, SelectHdl_Impl, weld::ComboBox &, void)
#define LINK(Instance, Class, Member)
this is only to let callers know that there is a LateInit which must be called
Reference< XController > xController
Reference< XFrame > xFrame
Reference< XModel > xModel