summaryrefslogtreecommitdiff
path: root/include/framework
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-03-01 08:42:24 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-03-01 10:14:20 +0100
commit40431b12b86aa8ede3a6d065645781c8e7710570 (patch)
tree61aa8b11d8338e9ceab64e4ab56e663e5c62b24a /include/framework
parent81e9703cf8f891bfb36f52eb24e0e18ca13d373a (diff)
clang-format DispatchHelper
To reduce excessive whitespace in function definitons Change-Id: I8dbf58e5ba53ddcf6c5a8e212636c1306584aa2e Reviewed-on: https://gerrit.libreoffice.org/68533 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'include/framework')
-rw-r--r--include/framework/dispatchhelper.hxx134
1 files changed, 67 insertions, 67 deletions
diff --git a/include/framework/dispatchhelper.hxx b/include/framework/dispatchhelper.hxx
index b300c8be5167..cdec89ea3791 100644
--- a/include/framework/dispatchhelper.hxx
+++ b/include/framework/dispatchhelper.hxx
@@ -20,22 +20,30 @@
#ifndef INCLUDED_FRAMEWORK_INC_SERVICES_DISPATCHHELPER_HXX
#define INCLUDED_FRAMEWORK_INC_SERVICES_DISPATCHHELPER_HXX
-#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/frame/XDispatchHelper.hpp>
#include <com/sun/star/frame/XDispatchResultListener.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
-
+#include <com/sun/star/uno/Any.hxx>
#include <cppuhelper/implbase.hxx>
-#include <osl/conditn.hxx>
#include <framework/fwedllapi.h>
+#include <osl/conditn.hxx>
-namespace com::sun::star::lang { class XMultiServiceFactory; }
-namespace com::sun::star::lang { class XSingleServiceFactory; }
-namespace com::sun::star::uno { class XComponentContext; }
-
-namespace framework{
+namespace com::sun::star::lang
+{
+class XMultiServiceFactory;
+}
+namespace com::sun::star::lang
+{
+class XSingleServiceFactory;
+}
+namespace com::sun::star::uno
+{
+class XComponentContext;
+}
+namespace framework
+{
/**
@short implements an easy way for dispatches
@descr Dispatches are splitted into different parts:
@@ -44,77 +52,69 @@ namespace framework{
- dispatching of the URL
All these steps are done inside one method call here.
*/
-class FWE_DLLPUBLIC DispatchHelper : public ::cppu::WeakImplHelper< css::lang::XServiceInfo,css::frame::XDispatchHelper,css::frame::XDispatchResultListener >
+class FWE_DLLPUBLIC DispatchHelper
+ : public ::cppu::WeakImplHelper<css::lang::XServiceInfo, css::frame::XDispatchHelper,
+ css::frame::XDispatchResultListener>
{
-
// member
- private:
+private:
+ osl::Mutex m_mutex;
- osl::Mutex m_mutex;
-
- /** global uno service manager.
+ /** global uno service manager.
Can be used to create own needed services. */
- css::uno::Reference< css::uno::XComponentContext > m_xContext;
+ css::uno::Reference<css::uno::XComponentContext> m_xContext;
- /** used to wait for asynchronous listener callbacks. */
- ::osl::Condition m_aBlock;
+ /** used to wait for asynchronous listener callbacks. */
+ ::osl::Condition m_aBlock;
- css::uno::Any m_aResult;
+ css::uno::Any m_aResult;
- css::uno::Reference< css::uno::XInterface > m_xBroadcaster;
+ css::uno::Reference<css::uno::XInterface> m_xBroadcaster;
// interface
- public:
-
- // ctor/dtor
-
- DispatchHelper( const css::uno::Reference< css::uno::XComponentContext >& xContext );
- virtual ~DispatchHelper( ) override;
-
- // XServiceInfo
- virtual OUString SAL_CALL getImplementationName ( ) override;
- virtual sal_Bool SAL_CALL supportsService ( const OUString& sServiceName ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames ( ) override;
-
- static css::uno::Sequence< OUString > impl_getStaticSupportedServiceNames( );
- static OUString impl_getStaticImplementationName ( );
- // Helper for initialization of service by using own reference!
- void impl_initService ( );
-
- // Helper for registry
- /// @throws css::uno::Exception
- static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
- static css::uno::Reference< css::lang::XSingleServiceFactory > impl_createFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
-
-
- // XDispatchHelper
- virtual css::uno::Any SAL_CALL executeDispatch(
- const css::uno::Reference< css::frame::XDispatchProvider >& xDispatchProvider ,
- const OUString& sURL ,
- const OUString& sTargetFrameName ,
- sal_Int32 nSearchFlags ,
- const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) override;
-
- // not a public XDispatchHelper-method, need in sfx2/source/control/statcach.cxx for extensions
- /// @throws css::uno::RuntimeException
- css::uno::Any executeDispatch(
- const css::uno::Reference< css::frame::XDispatch >& xDispatch ,
- const css::util::URL& aURL ,
- bool SyncronFlag ,
- const css::uno::Sequence< css::beans::PropertyValue >& lArguments );
-
-
- // XDispatchResultListener
- virtual void SAL_CALL dispatchFinished(
- const css::frame::DispatchResultEvent& aResult ) override;
-
- // XEventListener
- virtual void SAL_CALL disposing(
- const css::lang::EventObject& aEvent ) override;
+public:
+ // ctor/dtor
+
+ DispatchHelper(const css::uno::Reference<css::uno::XComponentContext>& xContext);
+ virtual ~DispatchHelper() override;
+
+ // XServiceInfo
+ virtual OUString SAL_CALL getImplementationName() override;
+ virtual sal_Bool SAL_CALL supportsService(const OUString& sServiceName) override;
+ virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
+
+ static css::uno::Sequence<OUString> impl_getStaticSupportedServiceNames();
+ static OUString impl_getStaticImplementationName();
+ // Helper for initialization of service by using own reference!
+ void impl_initService();
+
+ // Helper for registry
+ /// @throws css::uno::Exception
+ static css::uno::Reference<css::uno::XInterface> SAL_CALL impl_createInstance(
+ const css::uno::Reference<css::lang::XMultiServiceFactory>& xServiceManager);
+ static css::uno::Reference<css::lang::XSingleServiceFactory>
+ impl_createFactory(const css::uno::Reference<css::lang::XMultiServiceFactory>& xServiceManager);
+
+ // XDispatchHelper
+ virtual css::uno::Any SAL_CALL
+ executeDispatch(const css::uno::Reference<css::frame::XDispatchProvider>& xDispatchProvider,
+ const OUString& sURL, const OUString& sTargetFrameName, sal_Int32 nSearchFlags,
+ const css::uno::Sequence<css::beans::PropertyValue>& lArguments) override;
+
+ // not a public XDispatchHelper-method, need in sfx2/source/control/statcach.cxx for extensions
+ /// @throws css::uno::RuntimeException
+ css::uno::Any executeDispatch(const css::uno::Reference<css::frame::XDispatch>& xDispatch,
+ const css::util::URL& aURL, bool SyncronFlag,
+ const css::uno::Sequence<css::beans::PropertyValue>& lArguments);
+
+ // XDispatchResultListener
+ virtual void SAL_CALL dispatchFinished(const css::frame::DispatchResultEvent& aResult) override;
+
+ // XEventListener
+ virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent) override;
};
-
}
#endif