/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_SC_INC_DISPUNO_HXX #define INCLUDED_SC_INC_DISPUNO_HXX #include #include #include #include #include "global.hxx" namespace com { namespace sun { namespace star { namespace frame { class XDispatchProviderInterception; } } } } class ScTabViewShell; class ScDispatchProviderInterceptor : public cppu::WeakImplHelper< css::frame::XDispatchProviderInterceptor, css::lang::XEventListener>, public SfxListener { ScTabViewShell* pViewShell; /// the component which's dispatches we're intercepting css::uno::Reference< css::frame::XDispatchProviderInterception> m_xIntercepted; /// chaining css::uno::Reference< css::frame::XDispatchProvider> m_xSlaveDispatcher; css::uno::Reference< css::frame::XDispatchProvider> m_xMasterDispatcher; /// own dispatch css::uno::Reference< css::frame::XDispatch> m_xMyDispatch; public: ScDispatchProviderInterceptor(ScTabViewShell* pViewSh); virtual ~ScDispatchProviderInterceptor() override; virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override; /// XDispatchProvider virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch( const css::util::URL& aURL, const OUString& aTargetFrameName, sal_Int32 nSearchFlags ) override; virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL queryDispatches( const css::uno::Sequence< css::frame::DispatchDescriptor >& aDescripts ) override; /// XDispatchProviderInterceptor virtual css::uno::Reference< css::frame::XDispatchProvider > SAL_CALL getSlaveDispatchProvider() override; virtual void SAL_CALL setSlaveDispatchProvider( const css::uno::Reference< css::frame::XDispatchProvider >& xNewDispatchProvider ) override; virtual css::uno::Reference< css::frame::XDispatchProvider > SAL_CALL getMasterDispatchProvider() override; virtual void SAL_CALL setMasterDispatchProvider( const css::uno::Reference< css::frame::XDispatchProvider >& xNewSupplier ) override; /// XEventListener virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override; }; class ScDispatch : public cppu::WeakImplHelper< css::frame::XDispatch, css::view::XSelectionChangeListener >, public SfxListener { ScTabViewShell* pViewShell; std::vector< css::uno::Reference< css::frame::XStatusListener > > aDataSourceListeners; ScImportParam aLastImport; bool bListeningToView; public: ScDispatch(ScTabViewShell* pViewSh); virtual ~ScDispatch() override; virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override; /// XDispatch virtual void SAL_CALL dispatch( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& aArgs ) override; virtual void SAL_CALL addStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL ) override; virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL ) override; /// XSelectionChangeListener virtual void SAL_CALL selectionChanged( const css::lang::EventObject& aEvent ) override; /// XEventListener virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override; }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ora/lov-5.1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2013-04-05new module i18nlangtagEike Rathke
2013-01-26gbuild: do not copy boost headers aroundMichael Stahl
2012-11-22AllSettings with LanguageTagEike Rathke
2012-11-15re-base on ALv2 code. Includes:Michael Meeks
2012-09-28gbuild: invert handling of standard system libraries:Michael Stahl
2012-09-28gbuild: replace direct gb_STDLIBS use with ...Michael Stahl
2012-09-28gbuild: split uwinapi out of gb_STDLIBSMichael Stahl
2012-08-21add more runtime deps on resource files for unit-testsMatúš Kukan
2012-07-02targetted improvement of UNO API includes / usageMichael Meeks
2012-04-08gbuild: "use" vs. "add":Michael Stahl
2012-03-10gbuild: get rid of realpath in gb_Foo_set_includeMatúš Kukan
2012-02-10fdo#39491 remove nonexistent include pathsMatúš Kukan
2012-02-10fdo#39491 -I$(OUTDIR)/inc is set in SOLARINCMatúš Kukan
2011-11-27remove pch from the include listNorbert Thiebaud
2011-08-10prefer makefile-gmake-mode to plain makefile-modeTakeshi Abe
2011-08-03callcatcher: remove unused methodsThomas Arnhold
2011-07-30Add consistent Emacs and vim mode linesTor Lillqvist
2011-07-28callcatcher: ditch various unused methodsCaolán McNamara
2011-07-27ditch empty .cxx fileCaolán McNamara
2011-07-21resyncing to masterBjoern Michaelsen
2011-06-20gnumake4: fix buildbreakers from mergeBjoern Michaelsen
2011-06-19Merge branch 'master' into feature/gnumake4Bjoern Michaelsen
2011-06-17ause130: #i117218# change .idl handling to gnu makeHans-Joachim Lankenau
2011-06-17gnumake4: #i116959#: kill gb_LinkTarget_set_{defs,cflags,cxxflags,objcxxflags...Michael Stahl
2011-06-17gnumake4: adapt makefiles [hg:ec87fcbfae8b]Michael Stahl
2011-06-17gnumake4: #i116959#: rename target local variables {C,CXX,OBJCXX}FLAGS: [hg:8...Michael Stahl
2011-04-28Merge commit 'ooo/DEV300_m106' into integration/dev300_m106Thorsten Behrens
2011-04-05do what we de on linux for *BSD tooRobert Nagy
2011-04-01removing useless executable flag from makefilesBjoern Michaelsen
2011-03-30solaris11: #i117606#: framework: move imagesconfiguration.{c,h}xx to libfwkMichael Stahl
2011-03-17killing off stl in gbuildBjoern Michaelsen
2011-03-17Use realpath to unbreak compilation for WindowsTor Lillqvist
2011-03-12fix mis-merge all-around.Norbert Thiebaud
2011-03-12Merge commit 'ooo/DEV300_m101' into integration/dev300_m101Thorsten Behrens
2011-02-03CWS gnumake3: resync to m99Mathias Bauer
2011-02-03CWS gnumake3: clean up mingw stuff after adding STDLIBSMathias Bauer
2011-02-02CWS gnumake3: rename gb_StdLibs -> gb_STDLIBS; remove explicit linking of ind...Mathias Bauer
2011-02-01CWS gnumake3: use standard linked libs on WindowsMathias Bauer
2011-01-28undoapi: pulled and merged DEV300.m98Frank Schoenheit [fs]
2011-01-25CWS gnumake3: resync to m98Mathias Bauer
2011-01-25CWS gnumake3: fix license headersMathias Bauer
2011-01-05mingwport33: i#116264: gbuild for MinGWtono
2011-01-05Backed out changeset: e84942bd0acatono
2010-12-31i#116264: gbuild for MinGWtono
2010-12-23undoapi: re-did the CWS'es changes in the new build systemFrank Schoenheit [fs]
2010-11-26gnumake2: sorting all lists in makefilesBjoern Michaelsen
2010-10-29CWS gnumake2: resolve conflicts and make sources buildable on LinuxMathias Bauer
2010-07-29gnumake2: windows build fixes for resyncBjoern Michaelsen
2010-06-26CWS gnumake2: module reorgBjoern Michaelsen