22#include <com/sun/star/beans/PropertyValue.hpp>
32using namespace css::uno;
33using namespace css::beans;
34using namespace css::lang;
35using namespace css::frame;
36using namespace css::util;
50 virtual void dispose()
override;
68 ,
m_xWidget(m_xBuilder->weld_entry(
"entry"))
69 , m_pEditToolbarController(pEditToolbarController)
88 return ChildKeyInput(rKEvt);
105 if (m_pEditToolbarController)
106 m_pEditToolbarController->Modify();
111 if (m_pEditToolbarController)
112 m_pEditToolbarController->GetFocus();
117 if ( m_pEditToolbarController )
118 m_pEditToolbarController->LoseFocus();
123 if (m_pEditToolbarController)
124 m_pEditToolbarController->Activate();
129 const Reference< XComponentContext >& rxContext,
130 const Reference< XFrame >& rFrame,
136 , m_pEditControl( nullptr )
197 if ( !rControlCommand.Command.startsWith(
"SetText" ))
200 for (
const NamedValue& rArg : rControlCommand.Arguments )
202 if ( rArg.Name.startsWith(
"Text" ))
205 rArg.Value >>= aText;
virtual void dispose() override
std::unique_ptr< weld::Container > m_xContainer
void InitControlBase(weld::Widget *pWidget)
static VclPtr< reference_type > Create(Arg &&... arg)
std::unique_ptr< weld::Entry > m_xWidget
EditControl(vcl::Window *pParent, EditToolbarController *pEditToolbarController)
DECL_LINK(ModifyHdl, weld::Entry &, void)
void set_text(const OUString &rText)
DECL_LINK(FocusInHdl, weld::Widget &, void)
DECL_LINK(KeyInputHdl, const ::KeyEvent &, bool)
virtual void dispose() override
OUString get_text() const
EditToolbarController * m_pEditToolbarController
DECL_LINK(FocusOutHdl, weld::Widget &, void)
DECL_LINK(ActivateHdl, weld::Entry &, bool)
virtual ~EditControl() override
virtual void SetSizePixel(const Size &rNewSize)
Size get_preferred_size() const
#define LINK(Instance, Class, Member)
css::beans::PropertyValue makePropertyValue(const OUString &rName, T &&rValue)
IMPL_LINK(WindowCommandDispatch, impl_notifyCommand, VclWindowEvent &, rEvent, void)
IMPL_LINK_NOARG(CloseDispatcher, impl_asyncCallback, LinkParamNone *, void)
asynchronous callback @descr We start all actions inside this object asynchronous (see comments there...