Kaydet (Commit) 6d5aeece authored tarafından Caolán McNamara's avatar Caolán McNamara

move preventduplicateinteraction from framework to sfx2 consumer

Change-Id: I1388a88ba20b5cde65cd1d88694775b071a0dff6
Reviewed-on: https://gerrit.libreoffice.org/45099Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst a8681f24
...@@ -68,7 +68,6 @@ $(eval $(call gb_Library_add_exception_objects,fwe,\ ...@@ -68,7 +68,6 @@ $(eval $(call gb_Library_add_exception_objects,fwe,\
framework/source/fwe/helper/titlehelper \ framework/source/fwe/helper/titlehelper \
framework/source/fwe/helper/documentundoguard \ framework/source/fwe/helper/documentundoguard \
framework/source/fwe/helper/undomanagerhelper \ framework/source/fwe/helper/undomanagerhelper \
framework/source/fwe/interaction/preventduplicateinteraction \
framework/source/fwe/xml/menuconfiguration \ framework/source/fwe/xml/menuconfiguration \
framework/source/fwe/xml/menudocumenthandler \ framework/source/fwe/xml/menudocumenthandler \
framework/source/fwe/xml/saxnamespacefilter \ framework/source/fwe/xml/saxnamespacefilter \
......
...@@ -115,6 +115,7 @@ $(eval $(call gb_Library_add_exception_objects,sfx,\ ...@@ -115,6 +115,7 @@ $(eval $(call gb_Library_add_exception_objects,sfx,\
sfx2/source/appl/newhelp \ sfx2/source/appl/newhelp \
sfx2/source/appl/opengrf \ sfx2/source/appl/opengrf \
sfx2/source/appl/openuriexternally \ sfx2/source/appl/openuriexternally \
sfx2/source/appl/preventduplicateinteraction \
sfx2/source/appl/sfxhelp \ sfx2/source/appl/sfxhelp \
sfx2/source/appl/sfxpicklist \ sfx2/source/appl/sfxpicklist \
sfx2/source/appl/shellimpl \ sfx2/source/appl/shellimpl \
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#ifndef INCLUDED_FRAMEWORK_PREVENTDUPLICATEINTERACTION_HXX #ifndef INCLUDED_FRAMEWORK_PREVENTDUPLICATEINTERACTION_HXX
#define INCLUDED_FRAMEWORK_PREVENTDUPLICATEINTERACTION_HXX #define INCLUDED_FRAMEWORK_PREVENTDUPLICATEINTERACTION_HXX
#include <framework/fwedllapi.h>
#include <vector> #include <vector>
#include <com/sun/star/task/XInteractionHandler2.hpp> #include <com/sun/star/task/XInteractionHandler2.hpp>
...@@ -33,7 +31,7 @@ namespace com { namespace sun { namespace star { namespace uno { ...@@ -33,7 +31,7 @@ namespace com { namespace sun { namespace star { namespace uno {
class XComponentContext; class XComponentContext;
} } } } } } } }
namespace framework{ namespace sfx2 {
/** /**
@short Prevent us from showing the same interaction more than once during @short Prevent us from showing the same interaction more than once during
...@@ -51,7 +49,7 @@ struct ThreadHelpBase2 ...@@ -51,7 +49,7 @@ struct ThreadHelpBase2
mutable ::osl::Mutex m_aLock; mutable ::osl::Mutex m_aLock;
}; };
class FWE_DLLPUBLIC PreventDuplicateInteraction : private ThreadHelpBase2 class PreventDuplicateInteraction : private ThreadHelpBase2
,public ::cppu::WeakImplHelper< css::task::XInteractionHandler2 > ,public ::cppu::WeakImplHelper< css::task::XInteractionHandler2 >
{ {
...@@ -230,7 +228,7 @@ class FWE_DLLPUBLIC PreventDuplicateInteraction : private ThreadHelpBase2 ...@@ -230,7 +228,7 @@ class FWE_DLLPUBLIC PreventDuplicateInteraction : private ThreadHelpBase2
PreventDuplicateInteraction::InteractionInfo* pReturn ) const; PreventDuplicateInteraction::InteractionInfo* pReturn ) const;
}; };
} // namespace framework } // namespace sfx2
#endif // INCLUDED_FRAMEWORK_PREVENTDUPLICATEINTERACTION_HXX #endif // INCLUDED_FRAMEWORK_PREVENTDUPLICATEINTERACTION_HXX
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
#include <svl/eitem.hxx> #include <svl/eitem.hxx>
#include <sfx2/doctempl.hxx> #include <sfx2/doctempl.hxx>
#include <svtools/sfxecode.hxx> #include <svtools/sfxecode.hxx>
#include <framework/preventduplicateinteraction.hxx> #include <preventduplicateinteraction.hxx>
#include <svtools/ehdl.hxx> #include <svtools/ehdl.hxx>
#include <basic/sbxobj.hxx> #include <basic/sbxobj.hxx>
#include <svl/urihelper.hxx> #include <svl/urihelper.hxx>
...@@ -666,7 +666,7 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq ) ...@@ -666,7 +666,7 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq )
// intercept all incoming interactions and provide useful information // intercept all incoming interactions and provide useful information
// later if the following transaction was finished. // later if the following transaction was finished.
::framework::PreventDuplicateInteraction* pHandler = new ::framework::PreventDuplicateInteraction(::comphelper::getProcessComponentContext()); ::sfx2::PreventDuplicateInteraction* pHandler = new ::sfx2::PreventDuplicateInteraction(::comphelper::getProcessComponentContext());
css::uno::Reference< css::task::XInteractionHandler > xHandler (static_cast< css::task::XInteractionHandler* >(pHandler), css::uno::UNO_QUERY); css::uno::Reference< css::task::XInteractionHandler > xHandler (static_cast< css::task::XInteractionHandler* >(pHandler), css::uno::UNO_QUERY);
css::uno::Reference< css::task::XInteractionHandler > xWrappedHandler; css::uno::Reference< css::task::XInteractionHandler > xWrappedHandler;
...@@ -685,7 +685,7 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq ) ...@@ -685,7 +685,7 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq )
// define rules for this handler // define rules for this handler
css::uno::Type aInteraction = ::cppu::UnoType<css::task::ErrorCodeRequest>::get(); css::uno::Type aInteraction = ::cppu::UnoType<css::task::ErrorCodeRequest>::get();
::framework::PreventDuplicateInteraction::InteractionInfo aRule (aInteraction, 1); ::sfx2::PreventDuplicateInteraction::InteractionInfo aRule (aInteraction, 1);
pHandler->addInteractionRule(aRule); pHandler->addInteractionRule(aRule);
if (!aDocService.isEmpty()) if (!aDocService.isEmpty())
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <framework/preventduplicateinteraction.hxx> #include <preventduplicateinteraction.hxx>
#include <osl/diagnose.h> #include <osl/diagnose.h>
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <com/sun/star/task/XInteractionAbort.hpp> #include <com/sun/star/task/XInteractionAbort.hpp>
#include <com/sun/star/task/XInteractionRetry.hpp> #include <com/sun/star/task/XInteractionRetry.hpp>
namespace framework{ namespace sfx2 {
PreventDuplicateInteraction::PreventDuplicateInteraction(const css::uno::Reference< css::uno::XComponentContext >& rxContext) PreventDuplicateInteraction::PreventDuplicateInteraction(const css::uno::Reference< css::uno::XComponentContext >& rxContext)
: ThreadHelpBase2() : ThreadHelpBase2()
...@@ -227,6 +227,6 @@ bool PreventDuplicateInteraction::getInteractionInfo(const css::uno::Type& ...@@ -227,6 +227,6 @@ bool PreventDuplicateInteraction::getInteractionInfo(const css::uno::Type&
return false; return false;
} }
} // namespace framework } // namespace sfx2
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -5369,7 +5369,6 @@ framework/source/fwe/helper/documentundoguard.cxx ...@@ -5369,7 +5369,6 @@ framework/source/fwe/helper/documentundoguard.cxx
framework/source/fwe/helper/propertysetcontainer.cxx framework/source/fwe/helper/propertysetcontainer.cxx
framework/source/fwe/helper/titlehelper.cxx framework/source/fwe/helper/titlehelper.cxx
framework/source/fwe/helper/undomanagerhelper.cxx framework/source/fwe/helper/undomanagerhelper.cxx
framework/source/fwe/interaction/preventduplicateinteraction.cxx
framework/source/fwe/xml/menuconfiguration.cxx framework/source/fwe/xml/menuconfiguration.cxx
framework/source/fwe/xml/menudocumenthandler.cxx framework/source/fwe/xml/menudocumenthandler.cxx
framework/source/fwe/xml/saxnamespacefilter.cxx framework/source/fwe/xml/saxnamespacefilter.cxx
...@@ -6522,7 +6521,6 @@ include/framework/fwedllapi.h ...@@ -6522,7 +6521,6 @@ include/framework/fwedllapi.h
include/framework/imutex.hxx include/framework/imutex.hxx
include/framework/interaction.hxx include/framework/interaction.hxx
include/framework/menuconfiguration.hxx include/framework/menuconfiguration.hxx
include/framework/preventduplicateinteraction.hxx
include/framework/sfxhelperfunctions.hxx include/framework/sfxhelperfunctions.hxx
include/framework/statusbarconfiguration.hxx include/framework/statusbarconfiguration.hxx
include/framework/titlehelper.hxx include/framework/titlehelper.hxx
...@@ -12878,6 +12876,7 @@ sfx2/inc/guisaveas.hxx ...@@ -12878,6 +12876,7 @@ sfx2/inc/guisaveas.hxx
sfx2/inc/inettbc.hxx sfx2/inc/inettbc.hxx
sfx2/inc/pch/precompiled_sfx.cxx sfx2/inc/pch/precompiled_sfx.cxx
sfx2/inc/pch/precompiled_sfx.hxx sfx2/inc/pch/precompiled_sfx.hxx
sfx2/inc/preventduplicateinteraction.hxx
sfx2/inc/sfxbasecontroller_internal.hxx sfx2/inc/sfxbasecontroller_internal.hxx
sfx2/inc/sidebar/ContextChangeBroadcaster.hxx sfx2/inc/sidebar/ContextChangeBroadcaster.hxx
sfx2/inc/sorgitm.hxx sfx2/inc/sorgitm.hxx
...@@ -12928,6 +12927,7 @@ sfx2/source/appl/newhelp.hxx ...@@ -12928,6 +12927,7 @@ sfx2/source/appl/newhelp.hxx
sfx2/source/appl/opengrf.cxx sfx2/source/appl/opengrf.cxx
sfx2/source/appl/openuriexternally.cxx sfx2/source/appl/openuriexternally.cxx
sfx2/source/appl/panelist.hxx sfx2/source/appl/panelist.hxx
sfx2/source/appl/preventduplicateinteraction.cxx
sfx2/source/appl/sfxhelp.cxx sfx2/source/appl/sfxhelp.cxx
sfx2/source/appl/sfxpicklist.cxx sfx2/source/appl/sfxpicklist.cxx
sfx2/source/appl/shellimpl.cxx sfx2/source/appl/shellimpl.cxx
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment