22#include <com/sun/star/inspection/XPropertyControl.hpp>
23#include <com/sun/star/lang/DisposedException.hpp>
48 css::uno::Reference< css::inspection::XPropertyControlContext >
50 css::inspection::XPropertyControl&
64 sal_Int16 nControlType,
65 css::inspection::XPropertyControl& rAntiImpl);
79 void setControlContext(
const css::uno::Reference< css::inspection::XPropertyControlContext >& controlcontext );
110 template <
class TControlInterface,
class TControlWindow >
112 ,
public ::cppu::WeakComponentImplHelper< TControlInterface >
119 std::unique_ptr<weld::Builder> xBuilder,
120 std::unique_ptr<TControlWindow> xWidget,
131 virtual css::uno::Reference< css::inspection::XPropertyControlContext > SAL_CALL
getControlContext()
override
133 virtual void SAL_CALL
setControlContext(
const css::uno::Reference< css::inspection::XPropertyControlContext >& controlcontext )
override
147 std::unique_ptr<weld::Container> xParent(pWidget->
weld_parent());
148 xParent->move(pWidget,
nullptr);
182 template<
class TControlInterface,
class TControlWindow >
184 std::unique_ptr<weld::Builder> xBuilder,
185 std::unique_ptr<TControlWindow> xWidget,
189 , m_xBuilder(
std::move(xBuilder))
199 template<
class TControlInterface,
class TControlWindow >
202 if ( ComponentBaseClass::rBHelper.bDisposed )
203 throw css::lang::DisposedException( OUString(), *
this );
A helper class for implementing the <type scope="css::inspection">XPropertyControl</type> or one of i...
CommonBehaviourControlHelper(sal_Int16 nControlType, css::inspection::XPropertyControl &rAntiImpl)
creates the instance
css::uno::Reference< css::inspection::XPropertyControlContext > m_xContext
DECL_LINK(LoseFocusHdl, weld::Widget &, void)
DECL_LINK(TimeModifiedHdl, weld::FormattedSpinButton &, void)
DECL_LINK(EditModifiedHdl, weld::Entry &, void)
virtual void setModified()
void setControlContext(const css::uno::Reference< css::inspection::XPropertyControlContext > &controlcontext)
::sal_Int16 getControlType() const
virtual ~CommonBehaviourControlHelper()
virtual weld::Widget * getWidget()=0
css::inspection::XPropertyControl & m_rAntiImpl
DECL_LINK(MetricModifiedHdl, weld::MetricSpinButton &, void)
DECL_LINK(ModifiedHdl, weld::ComboBox &, void)
may be used by derived classes, they forward the event to the PropCtrListener
virtual void editChanged()
DECL_LINK(DateModifiedHdl, SvtCalendarBox &, void)
DECL_LINK(GetFocusHdl, weld::Widget &, void)
void notifyModifiedValue()
DECL_LINK(FormattedModifiedHdl, weld::FormattedSpinButton &, void)
const css::uno::Reference< css::inspection::XPropertyControlContext > & getControlContext() const
DECL_LINK(ColorModifiedHdl, ColorListBox &, void)
implements a base class for <type scope="css::inspection">XPropertyControl</type> implementations
virtual ~CommonBehaviourControl() override
virtual void SAL_CALL notifyModifiedValue() override
std::unique_ptr< TControlWindow > m_xControlWindow
virtual void SAL_CALL setControlContext(const css::uno::Reference< css::inspection::XPropertyControlContext > &controlcontext) override
std::unique_ptr< weld::Builder > m_xBuilder
virtual css::uno::Reference< css::inspection::XPropertyControlContext > SAL_CALL getControlContext() override
const TControlWindow * getTypedControlWindow() const
virtual ::sal_Int16 SAL_CALL getControlType() override
TControlWindow * getTypedControlWindow()
CommonBehaviourControl(sal_Int16 nControlType, std::unique_ptr< weld::Builder > xBuilder, std::unique_ptr< TControlWindow > xWidget, bool bReadOnly)
void impl_checkDisposed_throw()
checks whether the instance is already disposed
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL getControlWindow() override
virtual void SAL_CALL disposing() override
virtual sal_Bool SAL_CALL isModified() override
::cppu::WeakComponentImplHelper< TControlInterface > ComponentBaseClass
virtual void SetModifyHandler()
#define LINK(Instance, Class, Member)
a property handler for any virtual string properties