summaryrefslogtreecommitdiffstats
path: root/include/sfx2/dispatch.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-12-04 15:20:08 +0100
committerMichael Stahl <mstahl@redhat.com>2013-12-04 15:39:59 +0100
commit5e4c26918a0c8130515ee7af0cf2cd2dfe42534d (patch)
tree2a19d36748fafedcccb00d1b05648ac4e88bcbfb /include/sfx2/dispatch.hxx
parentwriterfilter: support nested mc:AlternateContent (diff)
downloadcore-5e4c26918a0c8130515ee7af0cf2cd2dfe42534d.tar.gz
core-5e4c26918a0c8130515ee7af0cf2cd2dfe42534d.zip
SfxDispatcher: move implementation details out of header file
Change-Id: Ia831da45c00554086dc692997130688c0b3e28f5
Diffstat (limited to 'include/sfx2/dispatch.hxx')
-rw-r--r--include/sfx2/dispatch.hxx134
1 files changed, 3 insertions, 131 deletions
diff --git a/include/sfx2/dispatch.hxx b/include/sfx2/dispatch.hxx
index 151d4833dcea..cb48a841cd07 100644
--- a/include/sfx2/dispatch.hxx
+++ b/include/sfx2/dispatch.hxx
@@ -27,9 +27,8 @@
#include <sfx2/bindings.hxx>
#include <sfx2/viewfrm.hxx>
-#include <deque>
#include <map>
-#include <vector>
+#include <boost/scoped_ptr.hpp>
class SfxSlotServer;
class SfxShell;
@@ -42,8 +41,6 @@ class SfxPopupMenuManager;
class SfxModule;
struct SfxDispatcher_Impl;
-typedef std::vector<SfxShell*> SfxShellStack_Impl;
-
namespace com
{
namespace sun
@@ -77,38 +74,9 @@ public:
}
};
-struct SfxToDo_Impl
-{
- SfxShell* pCluster;
- bool bPush;
- bool bDelete;
- bool bDeleted;
- bool bUntil;
-
- SfxToDo_Impl()
- : pCluster(0)
- , bPush(false)
- , bDelete(false)
- , bDeleted(false)
- , bUntil(false)
- {}
- SfxToDo_Impl( bool bOpPush, bool bOpDelete, bool bOpUntil, SfxShell& rCluster )
- : pCluster(&rCluster)
- , bPush(bOpPush)
- , bDelete(bOpDelete)
- , bDeleted(false)
- , bUntil(bOpUntil)
- {}
-
- bool operator==( const SfxToDo_Impl& rWith ) const
- { return pCluster==rWith.pCluster && bPush==rWith.bPush; }
-};
-
class SFX2_DLLPUBLIC SfxDispatcher
{
- SfxDispatcher_Impl* pImp;
- sal_Bool bFlushed;
- std::deque< std::deque<SfxToDo_Impl> > aToDoCopyStack;
+ boost::scoped_ptr<SfxDispatcher_Impl> pImp;
private:
// Search for temporary evaluated Todos
@@ -199,7 +167,7 @@ public:
Window *pWin = 0, const Point *pPosPixel = 0 );
sal_Bool IsAppDispatcher() const;
- sal_Bool IsFlushed() const;
+ bool IsFlushed() const;
void Flush();
void Lock( sal_Bool bLock );
sal_Bool IsLocked( sal_uInt16 nSID = 0 ) const;
@@ -236,102 +204,6 @@ public:
SAL_DLLPRIVATE sal_uInt16 GetNextToolBox_Impl( sal_uInt16 nPos, sal_uInt16 nType, OUString *pStr );
};
-//--------------------------------------------------------------------
-
-inline sal_Bool SfxDispatcher::IsFlushed() const
-
-/* [Description]
-
- This method checks if the stack of the SfxDispatchers is flushed, or if
- push- or pop- commands are pending.
-*/
-
-{
- return bFlushed;
-}
-
-//--------------------------------------------------------------------
-
-inline void SfxDispatcher::Flush()
-
-/* [Description]
-
- This method performs outstanding push- and pop- commands. For <SfxShell>s,
- which are new on the stack, the <SfxShell::Activate(sal_Bool)> is invoked with
- bMDI == sal_True, for SfxShells that are removed from the stack, the
- <SfxShell::Deactivate(sal_Bool)> is invoked with bMDI == sal_True
-*/
-
-{
- if ( !bFlushed ) FlushImpl();
-}
-
-//--------------------------------------------------------------------
-
-inline void SfxDispatcher::Push( SfxShell& rShell )
-
-/* [Description]
-
- With this method, a <SfxShell> pushed on to the SfxDispatcher.
- The SfxShell is first marked for push and a timer is set up.
- First when the timer has couted down to zero the push
- ( <SfxDispatcher::Flush()> ) is actually performed and the
- <SfxBindings> is invalidated. While the timer is counting down
- the opposing push and pop commands on the same SfxShell are
- leveled out.
-*/
-
-{
- Pop( rShell, SFX_SHELL_PUSH );
-}
-
-//--------------------------------------------------------------------
-
-inline sal_Bool SfxDispatcher::IsActive( const SfxShell& rShell )
-
-/* [Description]
-
- This method checks whether a particular <SfxShell> instance is
- on the SfxDispatcher.
-
- [Return value]
-
- sal_Bool sal_True
- The SfxShell instance is on the SfxDispatcher.
-
- sal_False
- The SfxShell instance is not on the SfxDispatcher.
-*/
-
-{
- return CheckVirtualStack( rShell, sal_True );
-}
-//--------------------------------------------------------------------
-
-inline sal_Bool SfxDispatcher::IsOnTop( const SfxShell& rShell )
-
-/* [Description]
-
- This method checks whether a particular <SfxShell> instance is on
- top of the SfxDispatcher.
-
- [Return value]
-
- sal_Bool sal_True
- The SfxShell instance is on the top of
- the SfxDispatcher.
-
- sal_False
- The SfxShell instance is not on the top of
- the SfxDispatcher.
-*/
-
-{
- return CheckVirtualStack( rShell, sal_False );
-}
-
-//--------------------------------------------------------------------
-
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */