summaryrefslogtreecommitdiff
path: root/UnoControls/source/inc/statusindicator.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'UnoControls/source/inc/statusindicator.hxx')
-rw-r--r--UnoControls/source/inc/statusindicator.hxx168
1 files changed, 80 insertions, 88 deletions
diff --git a/UnoControls/source/inc/statusindicator.hxx b/UnoControls/source/inc/statusindicator.hxx
index a18c98e6f257..9c5019d8862e 100644
--- a/UnoControls/source/inc/statusindicator.hxx
+++ b/UnoControls/source/inc/statusindicator.hxx
@@ -33,7 +33,7 @@
#include <basecontainercontrol.hxx>
-namespace unocontrols{
+namespace unocontrols {
class ProgressBar;
@@ -48,146 +48,138 @@ class ProgressBar;
#define STATUSINDICATOR_DEFAULT_WIDTH 300
#define STATUSINDICATOR_DEFAULT_HEIGHT 25
-// structs, types
-
-// class declaration
-
class StatusIndicator : public css::awt::XLayoutConstrains
, public css::task::XStatusIndicator
, public BaseContainerControl
{
+public:
+ StatusIndicator( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
- public:
-
- StatusIndicator( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
+ virtual ~StatusIndicator() override;
- virtual ~StatusIndicator() override;
+ // XInterface
- // XInterface
+ /**
+ @short give answer, if interface is supported
+ @descr The interfaces are searched by type.
- /**_______________________________________________________________________________________________________
- @short give answer, if interface is supported
- @descr The interfaces are searched by type.
+ @seealso XInterface
- @seealso XInterface
+ @param "rType" is the type of searched interface.
- @param "rType" is the type of searched interface.
+ @return Any information about found interface
- @return Any information about found interface
+ @onerror A RuntimeException is thrown.
+ */
- @onerror A RuntimeException is thrown.
- */
+ virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override;
- virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override;
+ /**
+ @short increment refcount
+ @seealso XInterface
+ @seealso release()
+ @onerror A RuntimeException is thrown.
+ */
- /**_______________________________________________________________________________________________________
- @short increment refcount
- @seealso XInterface
- @seealso release()
- @onerror A RuntimeException is thrown.
- */
+ virtual void SAL_CALL acquire() throw() override;
- virtual void SAL_CALL acquire() throw() override;
+ /**
+ @short decrement refcount
+ @seealso XInterface
+ @seealso acquire()
+ @onerror A RuntimeException is thrown.
+ */
- /**_______________________________________________________________________________________________________
- @short decrement refcount
- @seealso XInterface
- @seealso acquire()
- @onerror A RuntimeException is thrown.
- */
+ virtual void SAL_CALL release() throw() override;
- virtual void SAL_CALL release() throw() override;
+ // XTypeProvider
- // XTypeProvider
+ /**
+ @short get information about supported interfaces
+ @seealso XTypeProvider
+ @return Sequence of types of all supported interfaces
- /**_______________________________________________________________________________________________________
- @short get information about supported interfaces
- @seealso XTypeProvider
- @return Sequence of types of all supported interfaces
+ @onerror A RuntimeException is thrown.
+ */
- @onerror A RuntimeException is thrown.
- */
+ virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
- virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
+ // XAggregation
- // XAggregation
+ virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type& aType ) override;
- virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type& aType ) override;
+ // XStatusIndicator
- // XStatusIndicator
+ virtual void SAL_CALL start(
+ const OUString& sText ,
+ sal_Int32 nRange
+ ) override;
- virtual void SAL_CALL start(
- const OUString& sText ,
- sal_Int32 nRange
- ) override;
+ virtual void SAL_CALL end() override;
- virtual void SAL_CALL end() override;
+ virtual void SAL_CALL reset() override;
- virtual void SAL_CALL reset() override;
+ virtual void SAL_CALL setText( const OUString& sText ) override;
- virtual void SAL_CALL setText( const OUString& sText ) override;
+ virtual void SAL_CALL setValue( sal_Int32 nValue ) override;
- virtual void SAL_CALL setValue( sal_Int32 nValue ) override;
+ // XLayoutConstrains
- // XLayoutConstrains
+ virtual css::awt::Size SAL_CALL getMinimumSize() override;
- virtual css::awt::Size SAL_CALL getMinimumSize() override;
+ virtual css::awt::Size SAL_CALL getPreferredSize() override;
- virtual css::awt::Size SAL_CALL getPreferredSize() override;
+ virtual css::awt::Size SAL_CALL calcAdjustedSize( const css::awt::Size& aNewSize ) override;
- virtual css::awt::Size SAL_CALL calcAdjustedSize( const css::awt::Size& aNewSize ) override;
+ // XControl
- // XControl
+ virtual void SAL_CALL createPeer(
+ const css::uno::Reference< css::awt::XToolkit >& xToolkit ,
+ const css::uno::Reference< css::awt::XWindowPeer >& xParent
+ ) override;
- virtual void SAL_CALL createPeer(
- const css::uno::Reference< css::awt::XToolkit >& xToolkit ,
- const css::uno::Reference< css::awt::XWindowPeer >& xParent
- ) override;
+ virtual sal_Bool SAL_CALL setModel( const css::uno::Reference< css::awt::XControlModel >& xModel ) override;
- virtual sal_Bool SAL_CALL setModel( const css::uno::Reference< css::awt::XControlModel >& xModel ) override;
+ virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL getModel() override;
- virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL getModel() override;
+ // XComponent
- // XComponent
+ virtual void SAL_CALL dispose() override;
- virtual void SAL_CALL dispose() override;
+ // XWindow
- // XWindow
+ virtual void SAL_CALL setPosSize( sal_Int32 nX ,
+ sal_Int32 nY ,
+ sal_Int32 nWidth ,
+ sal_Int32 nHeight ,
+ sal_Int16 nFlags ) override;
- virtual void SAL_CALL setPosSize( sal_Int32 nX ,
- sal_Int32 nY ,
- sal_Int32 nWidth ,
- sal_Int32 nHeight ,
- sal_Int16 nFlags ) override;
+ // BaseControl
- // BaseControl
+ static const css::uno::Sequence< OUString > impl_getStaticSupportedServiceNames();
- static const css::uno::Sequence< OUString > impl_getStaticSupportedServiceNames();
-
- static const OUString impl_getStaticImplementationName();
+ static const OUString impl_getStaticImplementationName();
protected:
+ virtual css::awt::WindowDescriptor* impl_getWindowDescriptor(
+ const css::uno::Reference< css::awt::XWindowPeer >& xParentPeer
+ ) override;
- virtual css::awt::WindowDescriptor* impl_getWindowDescriptor(
- const css::uno::Reference< css::awt::XWindowPeer >& xParentPeer
- ) override;
-
- virtual void impl_paint (
- sal_Int32 nX,
- sal_Int32 nY,
- const css::uno::Reference< css::awt::XGraphics > & rGraphics
- ) override;
+ virtual void impl_paint (
+ sal_Int32 nX,
+ sal_Int32 nY,
+ const css::uno::Reference< css::awt::XGraphics > & rGraphics
+ ) override;
- virtual void impl_recalcLayout( const css::awt::WindowEvent& aEvent ) override;
+ virtual void impl_recalcLayout( const css::awt::WindowEvent& aEvent ) override;
private:
-
css::uno::Reference< css::awt::XFixedText > m_xText;
rtl::Reference<ProgressBar> m_xProgressBar;
-}; // class StatusIndicator
+};
-} // namespace unocontrols
+}
#endif // INCLUDED_UNOCONTROLS_SOURCE_INC_STATUSINDICATOR_HXX