framework/source/helper/statusindicator.cxx |   19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

New commits:
commit e895da0420253c7d3e1b9bff3abb339bb9dc1218
Author: Tor Lillqvist <t...@collabora.com>
Date:   Tue Mar 11 11:46:41 2014 +0200

    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

diff --git a/framework/source/helper/statusindicator.cxx 
b/framework/source/helper/statusindicator.cxx
index 2a94ebe..eb11ce6 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
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to