10#ifndef INCLUDED_VCL_WELDUTILS_HXX
11#define INCLUDED_VCL_WELDUTILS_HXX
13#include <com/sun/star/awt/XWindow.hpp>
14#include <com/sun/star/frame/XDispatch.hpp>
15#include <com/sun/star/frame/XFrame.hpp>
16#include <com/sun/star/frame/XStatusListener.hpp>
17#include <com/sun/star/uno/Reference.hxx>
53 : m_pWeldWidget(pWeldWidget)
54 , m_pWeldWidgetBuilder(pWeldWidgetBuilder)
64 m_pWeldWidget =
nullptr;
65 m_pWeldWidgetBuilder =
nullptr;
69 void SAL_CALL
setPosSize(sal_Int32, sal_Int32, sal_Int32, sal_Int32, sal_Int16)
override
71 throw css::uno::RuntimeException(
"not implemented");
76 throw css::uno::RuntimeException(
"not implemented");
117 addKeyListener(
const css::uno::Reference<css::awt::XKeyListener>& rListener)
override
145 const css::uno::Reference<css::awt::XMouseMotionListener>& rListener)
override
152 const css::uno::Reference<css::awt::XMouseMotionListener>& rListener)
override
175 :
public cppu::WeakImplHelper<css::frame::XStatusListener>
190 css::uno::Reference<css::frame::XFrame>
mxFrame;
193 SAL_DLLPRIVATE
void SAL_CALL
194 statusChanged(
const css::frame::FeatureStateEvent& rEvent)
override;
196 SAL_DLLPRIVATE
void SAL_CALL disposing(
const css::lang::EventObject& )
override;
198 const css::uno::Reference<css::frame::XFrame>&
getFrame()
const {
return mxFrame; }
200 void startListening();
214 SAL_DLLPRIVATE
virtual Selection GetEntrySelection()
const override;
215 SAL_DLLPRIVATE
virtual OUString GetEntryText()
const override;
216 SAL_DLLPRIVATE
virtual void SetEntryText(
const OUString& rText,
const Selection& rSel)
override;
217 SAL_DLLPRIVATE
virtual void SetEntryTextColor(
const Color* pColor)
override;
218 SAL_DLLPRIVATE
virtual SelectionOptions GetEntrySelectionOptions()
const override;
219 SAL_DLLPRIVATE
virtual void FieldModified()
override;
222 SAL_DLLPRIVATE
virtual void ClearMinValue()
override;
223 SAL_DLLPRIVATE
virtual void SetMinValue(
double dMin)
override;
224 SAL_DLLPRIVATE
virtual void ClearMaxValue()
override;
225 SAL_DLLPRIVATE
virtual void SetMaxValue(
double dMin)
override;
227 SAL_DLLPRIVATE
virtual void SetSpinSize(
double dStep)
override;
252 SAL_DLLPRIVATE
void Init();
255 SAL_DLLPRIVATE
virtual void UpdateCurrentValue(
double dCurrentValue)
override;
267 SAL_DLLPRIVATE
virtual bool CheckText(
const OUString& sText)
const override;
270 SAL_DLLPRIVATE
void ResetConformanceTester();
281 void SetUseThousandSep(
bool b);
282 void SetCurrencySymbol(
const OUString& rStr);
290 SAL_DLLPRIVATE
void Init();
303 void SetDuration(
bool bDuration);
319 SAL_DLLPRIVATE
void Init();
336 void SetMin(
const Date& rNewMin);
337 void SetMax(
const Date& rNewMax);
339 void SetDate(
const Date& rNewDate);
343 void SetShowDateCentury(
bool bShowCentury);
352 SAL_DLLPRIVATE
void Init();
369 void SetMask(
const OString& rEditMask,
const OUString& rLiteralMask);
370 void SetStrictFormat(
bool bStrict);
382 SAL_DLLPRIVATE
void Modify();
397 SAL_DLLPRIVATE
void EntryGainFocus();
398 SAL_DLLPRIVATE
void EntryLostFocus();
406 :
public std::enable_shared_from_this<ButtonPressRepeater>
An auto-timer is a multi-shot timer re-emitting itself at interval until destroyed or stopped.
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
sal_Int32 addInterface(std::unique_lock< std::mutex > &rGuard, const css::uno::Reference< ListenerT > &rxIFace)
sal_Int32 removeInterface(std::unique_lock< std::mutex > &rGuard, const css::uno::Reference< ListenerT > &rxIFace)
Link< weld::Entry &, void > m_aModifyHdl
DECL_DLLPRIVATE_LINK(FocusOutHdl, weld::Widget &, void)
weld::Entry & get_widget()
DECL_DLLPRIVATE_LINK(ModifyHdl, weld::Entry &, void)
void connect_focus_out(const Link< weld::Widget &, void > &rLink)
void SetEntrySelectionOptions(SelectionOptions eOptions)
void connect_changed(const Link< weld::Entry &, void > &rLink)
SelectionOptions m_eOptions
weld::FormattedSpinButton * m_pSpinButton
Link< weld::Widget &, void > m_aFocusOutHdl
weld::TreeView & m_rTreeView
css::awt::Rectangle SAL_CALL getPosSize() override
void SAL_CALL addPaintListener(const css::uno::Reference< css::awt::XPaintListener > &rListener) override
weld::Widget * getWidget() const
void SAL_CALL setVisible(sal_Bool bVisible) override
comphelper::OInterfaceContainerHelper4< css::awt::XFocusListener > m_aFocusListeners
comphelper::OInterfaceContainerHelper4< css::awt::XMouseMotionListener > m_aMotionListeners
void SAL_CALL addFocusListener(const css::uno::Reference< css::awt::XFocusListener > &rListener) override
void SAL_CALL setPosSize(sal_Int32, sal_Int32, sal_Int32, sal_Int32, sal_Int16) override
TransportAsXWindow(weld::Widget *pWeldWidget, weld::Builder *pWeldWidgetBuilder=nullptr)
comphelper::OInterfaceContainerHelper4< css::awt::XMouseListener > m_aMouseListeners
void SAL_CALL setEnable(sal_Bool bSensitive) override
void SAL_CALL removePaintListener(const css::uno::Reference< css::awt::XPaintListener > &rListener) override
comphelper::OInterfaceContainerHelper4< css::awt::XWindowListener > m_aWindowListeners
void SAL_CALL removeWindowListener(const css::uno::Reference< css::awt::XWindowListener > &rListener) override
weld::Builder * m_pWeldWidgetBuilder
void SAL_CALL setFocus() override
void SAL_CALL removeMouseListener(const css::uno::Reference< css::awt::XMouseListener > &rListener) override
weld::Widget * m_pWeldWidget
weld::Builder * getBuilder() const
void SAL_CALL addWindowListener(const css::uno::Reference< css::awt::XWindowListener > &rListener) override
comphelper::OInterfaceContainerHelper4< css::awt::XKeyListener > m_aKeyListeners
void SAL_CALL removeMouseMotionListener(const css::uno::Reference< css::awt::XMouseMotionListener > &rListener) override
void SAL_CALL addKeyListener(const css::uno::Reference< css::awt::XKeyListener > &rListener) override
void SAL_CALL addMouseListener(const css::uno::Reference< css::awt::XMouseListener > &rListener) override
comphelper::OInterfaceContainerHelper4< css::awt::XPaintListener > m_aPaintListeners
void SAL_CALL removeFocusListener(const css::uno::Reference< css::awt::XFocusListener > &rListener) override
void SAL_CALL removeKeyListener(const css::uno::Reference< css::awt::XKeyListener > &rListener) override
void SAL_CALL addMouseMotionListener(const css::uno::Reference< css::awt::XMouseMotionListener > &rListener) override
OUString FormatNumber(sal_uInt32 nNum, SvxNumType nFormat, LanguageType nLang=LANGUAGE_NONE)
Any GetTime(const OUString &val)
sal_Int64 ConvertValue(sal_Int64 nValue, sal_Int64 mnBaseValue, sal_uInt16 nDecDigits, FieldUnit eInUnit, FieldUnit eOutUnit)
void RemoveParentKeepChildren(weld::TreeView &rTreeView, const weld::TreeIter &rParent)
void SetPointFont(OutputDevice &rDevice, const vcl::Font &rFont)
size_t GetAbsPos(const weld::TreeView &rTreeView, const weld::TreeIter &rIter)
int GetMinimumEditHeight()
weld::Window * GetPopupParent(vcl::Window &rOutWin, tools::Rectangle &rRect)
bool IsEntryVisible(const weld::TreeView &rTreeView, const weld::TreeIter &rIter)
comphelper::WeakComponentImplHelper< css::awt::XWindow > TransportAsXWindow_Base