22#include <com/sun/star/awt/XProgressMonitor.hpp>
23#include <com/sun/star/awt/XButton.hpp>
24#include <com/sun/star/awt/XLayoutConstrains.hpp>
38#define PROGRESSMONITOR_FREEBORDER 10
41#define PROGRESSMONITOR_LINECOLOR_BRIGHT sal_Int32(Color( 0xFF, 0xFF, 0xFF ))
42#define PROGRESSMONITOR_LINECOLOR_SHADOW sal_Int32(Color( 0x00, 0x00, 0x00 ))
43#define PROGRESSMONITOR_DEFAULT_WIDTH 350
44#define PROGRESSMONITOR_DEFAULT_HEIGHT 100
54 ,
public css::awt::XButton
55 ,
public css::awt::XProgressMonitor
59 ProgressMonitor(
const css::uno::Reference< css::uno::XComponentContext >& rxContext );
78 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type& aType )
override;
87 virtual void SAL_CALL
acquire()
noexcept override;
96 virtual void SAL_CALL
release()
noexcept override;
108 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes()
override;
130 const OUString& sTopic ,
131 const OUString& sText ,
136 const OUString& sTopic ,
141 const OUString& sTopic ,
142 const OUString& sText ,
154 virtual void SAL_CALL
setRange( sal_Int32 nMin ,
155 sal_Int32 nMax )
override;
157 virtual sal_Int32 SAL_CALL
getValue()
override;
162 const css::uno::Reference< css::awt::XActionListener >& xListener
166 const css::uno::Reference< css::awt::XActionListener >& xListener
169 virtual void SAL_CALL
setLabel(
const OUString& sLabel )
override;
171 virtual void SAL_CALL
setActionCommand(
const OUString& sCommand )
override;
179 virtual css::awt::Size SAL_CALL
calcAdjustedSize(
const css::awt::Size& aNewSize )
override;
184 const css::uno::Reference< css::awt::XToolkit >& xToolkit ,
185 const css::uno::Reference< css::awt::XWindowPeer >& xParent
188 virtual sal_Bool SAL_CALL
setModel(
const css::uno::Reference< css::awt::XControlModel >&
xModel )
override;
190 virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL
getModel()
override;
194 virtual void SAL_CALL
dispose()
override;
198 virtual void SAL_CALL
setPosSize( sal_Int32 nX ,
202 sal_Int16 nFlags )
override;
207 const css::uno::Reference< css::awt::XGraphics >& xGraphics )
override;
virtual void impl_recalcLayout(const css::awt::WindowEvent &aEvent)
virtual void SAL_CALL setBackgroundColor(sal_Int32 nColor) override
css::uno::Reference< css::awt::XFixedText > m_xTopic_Top
virtual css::awt::Size SAL_CALL getMinimumSize() override
css::awt::Rectangle m_a3DLine
virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL getModel() override
virtual void SAL_CALL release() noexcept override
decrement refcount @seealso XInterface @seealso acquire() @onerror A RuntimeException is thrown.
virtual css::awt::Size SAL_CALL calcAdjustedSize(const css::awt::Size &aNewSize) override
void impl_rebuildFixedText()
virtual ~ProgressMonitor() override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
give answer, if interface is supported @descr The interfaces are searched by type.
ProgressMonitor(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
get information about supported interfaces @seealso XTypeProvider
virtual void SAL_CALL removeText(const OUString &sTopic, sal_Bool bbeforeProgress) override
virtual sal_Bool SAL_CALL setModel(const css::uno::Reference< css::awt::XControlModel > &xModel) override
virtual void SAL_CALL setPosSize(sal_Int32 nX, sal_Int32 nY, sal_Int32 nWidth, sal_Int32 nHeight, sal_Int16 nFlags) override
::std::vector< IMPL_TextlistItem > maTextlist_Bottom
virtual css::awt::Size SAL_CALL getPreferredSize() override
virtual void SAL_CALL setForegroundColor(sal_Int32 nColor) override
virtual void SAL_CALL removeActionListener(const css::uno::Reference< css::awt::XActionListener > &xListener) override
css::uno::Reference< css::awt::XFixedText > m_xText_Bottom
virtual void SAL_CALL addText(const OUString &sTopic, const OUString &sText, sal_Bool bbeforeProgress) override
add topic to dialog @descr Add a topic with a text in right textlist (used for FixedText-member).
virtual void SAL_CALL addActionListener(const css::uno::Reference< css::awt::XActionListener > &xListener) override
virtual void SAL_CALL dispose() override
::std::vector< IMPL_TextlistItem > maTextlist_Top
virtual void SAL_CALL createPeer(const css::uno::Reference< css::awt::XToolkit > &xToolkit, const css::uno::Reference< css::awt::XWindowPeer > &xParent) override
virtual sal_Int32 SAL_CALL getValue() override
virtual void impl_paint(sal_Int32 nX, sal_Int32 nY, const css::uno::Reference< css::awt::XGraphics > &xGraphics) override
virtual void SAL_CALL setRange(sal_Int32 nMin, sal_Int32 nMax) override
css::uno::Reference< css::awt::XFixedText > m_xTopic_Bottom
css::uno::Reference< css::awt::XButton > m_xButton
virtual void SAL_CALL setActionCommand(const OUString &sCommand) override
css::uno::Reference< css::awt::XFixedText > m_xText_Top
virtual void SAL_CALL setLabel(const OUString &sLabel) override
IMPL_TextlistItem * impl_searchTopic(std::u16string_view sTopic, bool bbeforeProgress)
virtual void SAL_CALL setValue(sal_Int32 nValue) override
static bool impl_debug_checkParameter(std::u16string_view sTopic, std::u16string_view sText)
rtl::Reference< ProgressBar > m_xProgressBar
virtual void SAL_CALL updateText(const OUString &sTopic, const OUString &sText, sal_Bool bbeforeProgress) override
virtual void SAL_CALL acquire() noexcept override
increment refcount @seealso XInterface @seealso release() @onerror A RuntimeException is thrown.
constexpr OUStringLiteral PROGRESSMONITOR_DEFAULT_TEXT
constexpr OUStringLiteral PROGRESSMONITOR_DEFAULT_TOPIC
OUString sText
Left site of textline in dialog.
Reference< XModel > xModel