summaryrefslogtreecommitdiff
path: root/UnoControls/source/controls/progressmonitor.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-12-08 20:32:36 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2024-12-08 17:49:59 +0100
commitf8aa78379cfbff830b0e8dc6f2b6961dd09fa74b (patch)
tree42ec6d7f49a816586dce591836a9d4b89e9cdc3f /UnoControls/source/controls/progressmonitor.cxx
parent98352eda9b032666b98f108b69fc38427380ab15 (diff)
Simplify ProgressMonitor, StatusIndicator
Change-Id: I1c17fa54e865c2750407783adbb2f73c095dbbfd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178094 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'UnoControls/source/controls/progressmonitor.cxx')
-rw-r--r--UnoControls/source/controls/progressmonitor.cxx54
1 files changed, 1 insertions, 53 deletions
diff --git a/UnoControls/source/controls/progressmonitor.cxx b/UnoControls/source/controls/progressmonitor.cxx
index d58518e0e8ff..fbe84e34f7e7 100644
--- a/UnoControls/source/controls/progressmonitor.cxx
+++ b/UnoControls/source/controls/progressmonitor.cxx
@@ -51,7 +51,7 @@ constexpr OUStringLiteral DEFAULT_BUTTONLABEL = u"Abbrechen";
namespace unocontrols {
ProgressMonitor::ProgressMonitor( const css::uno::Reference< XComponentContext >& rxContext )
- : BaseContainerControl ( rxContext )
+ : ProgressMonitor_BASE(rxContext)
{
// It's not allowed to work with member in this method (refcounter !!!)
// But with a HACK (++refcount) its "OK" :-(
@@ -109,58 +109,6 @@ ProgressMonitor::~ProgressMonitor()
impl_cleanMemory ();
}
-// XInterface
-Any SAL_CALL ProgressMonitor::queryInterface( const Type& rType )
-{
- // Ask for my own supported interfaces ...
- // Attention: XTypeProvider and XInterface are supported by WeakComponentImplHelper!
- Any aReturn ( ::cppu::queryInterface( rType ,
- static_cast< XLayoutConstrains* > ( this ) ,
- static_cast< XButton* > ( this ) ,
- static_cast< XProgressMonitor* > ( this )
- )
- );
-
- if (aReturn.hasValue())
- return aReturn;
-
- // If searched interface not supported by this class ...
- // ... ask baseclasses.
- return BaseControl::queryInterface(rType);
-}
-
-// XInterface
-void SAL_CALL ProgressMonitor::acquire() noexcept
-{
- // Attention:
- // Don't use mutex or guard in this method!!! Is a method of XInterface.
-
- // Forward to baseclass
- BaseControl::acquire();
-}
-
-// XInterface
-void SAL_CALL ProgressMonitor::release() noexcept
-{
- // Attention:
- // Don't use mutex or guard in this method!!! Is a method of XInterface.
-
- // Forward to baseclass
- BaseControl::release();
-}
-
-// XTypeProvider
-Sequence< Type > SAL_CALL ProgressMonitor::getTypes()
-{
- static OTypeCollection ourTypeCollection(
- cppu::UnoType<XLayoutConstrains>::get(),
- cppu::UnoType<XButton>::get(),
- cppu::UnoType<XProgressMonitor>::get(),
- BaseContainerControl::getTypes() );
-
- return ourTypeCollection.getTypes();
-}
-
// XProgressMonitor
void SAL_CALL ProgressMonitor::addText(
const OUString& rTopic,