summaryrefslogtreecommitdiff
path: root/framework/source
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-03-11 11:46:41 +0200
committerTor Lillqvist <tml@collabora.com>2014-03-11 11:48:58 +0200
commite895da0420253c7d3e1b9bff3abb339bb9dc1218 (patch)
tree82bca025ac45b19e6824098a5002b5614ff017d9 /framework/source
parent14cf3f5eaa3dd6129dde37b5986c07111cf833bf (diff)
Don't do anything in status indicators on non-desktop for now
Probably it should depend on whether doing tiled rendering or not. Unclear whether that then can be a compile-time constant, or a run-time global state, or need to be even more fine-grained. Change-Id: I8b2f8889e82ecc647ddce915e35eceec121613bd
Diffstat (limited to 'framework/source')
-rw-r--r--framework/source/helper/statusindicator.cxx19
1 files changed, 18 insertions, 1 deletions
diff --git a/framework/source/helper/statusindicator.cxx b/framework/source/helper/statusindicator.cxx
index 2a94ebe09e5d..eb11ce6ea0f9 100644
--- a/framework/source/helper/statusindicator.cxx
+++ b/framework/source/helper/statusindicator.cxx
@@ -17,9 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <config_features.h>
-// include files of own module
#include <helper/statusindicator.hxx>
#include <threadhelp/readguard.hxx>
#include <threadhelp/writeguard.hxx>
@@ -45,6 +45,10 @@ void SAL_CALL StatusIndicator::start(const OUString& sText ,
sal_Int32 nRange)
throw(css::uno::RuntimeException, std::exception)
{
+#if !HAVE_FEATURE_DESKTOP
+ (void) sText;
+ (void) nRange;
+#else
// SAFE ->
ReadGuard aReadLock(m_aLock);
css::uno::Reference< css::task::XStatusIndicatorFactory > xFactory(m_xFactory.get(), css::uno::UNO_QUERY);
@@ -55,12 +59,14 @@ void SAL_CALL StatusIndicator::start(const OUString& sText ,
StatusIndicatorFactory* pFactory = (StatusIndicatorFactory*)xFactory.get();
pFactory->start(this, sText, nRange);
}
+#endif
}
void SAL_CALL StatusIndicator::end()
throw(css::uno::RuntimeException, std::exception)
{
+#if HAVE_FEATURE_DESKTOP
// SAFE ->
ReadGuard aReadLock(m_aLock);
css::uno::Reference< css::task::XStatusIndicatorFactory > xFactory(m_xFactory.get(), css::uno::UNO_QUERY);
@@ -71,12 +77,14 @@ void SAL_CALL StatusIndicator::end()
StatusIndicatorFactory* pFactory = (StatusIndicatorFactory*)xFactory.get();
pFactory->end(this);
}
+#endif
}
void SAL_CALL StatusIndicator::reset()
throw(css::uno::RuntimeException, std::exception)
{
+#if HAVE_FEATURE_DESKTOP
// SAFE ->
ReadGuard aReadLock(m_aLock);
css::uno::Reference< css::task::XStatusIndicatorFactory > xFactory(m_xFactory.get(), css::uno::UNO_QUERY);
@@ -87,12 +95,16 @@ void SAL_CALL StatusIndicator::reset()
StatusIndicatorFactory* pFactory = (StatusIndicatorFactory*)xFactory.get();
pFactory->reset(this);
}
+#endif
}
void SAL_CALL StatusIndicator::setText(const OUString& sText)
throw(css::uno::RuntimeException, std::exception)
{
+#if !HAVE_FEATURE_DESKTOP
+ (void) sText;
+#else
// SAFE ->
ReadGuard aReadLock(m_aLock);
css::uno::Reference< css::task::XStatusIndicatorFactory > xFactory(m_xFactory.get(), css::uno::UNO_QUERY);
@@ -103,12 +115,16 @@ void SAL_CALL StatusIndicator::setText(const OUString& sText)
StatusIndicatorFactory* pFactory = (StatusIndicatorFactory*)xFactory.get();
pFactory->setText(this, sText);
}
+#endif
}
void SAL_CALL StatusIndicator::setValue(sal_Int32 nValue)
throw(css::uno::RuntimeException, std::exception)
{
+#if !HAVE_FEATURE_DESKTOP
+ (void) nValue;
+#else
// SAFE ->
ReadGuard aReadLock(m_aLock);
css::uno::Reference< css::task::XStatusIndicatorFactory > xFactory(m_xFactory.get(), css::uno::UNO_QUERY);
@@ -119,6 +135,7 @@ void SAL_CALL StatusIndicator::setValue(sal_Int32 nValue)
StatusIndicatorFactory* pFactory = (StatusIndicatorFactory*)xFactory.get();
pFactory->setValue(this, nValue);
}
+#endif
}
} // namespace framework