diff options
author | Michael Stahl <mst@openoffice.org> | 2010-12-15 09:13:59 +0100 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2010-12-15 09:13:59 +0100 |
commit | 4ac0d44c9a9caebc983487c6c14997e0468c0b9a (patch) | |
tree | 590f63c3c0f1550cc76ef54e4d09a184c9366e8e /sw/inc/crsrsh.hxx | |
parent | 1abef5bf64a7f3b5799fc597a4e486c45ace758f (diff) |
undoapi: #i115383#: new IShellCursorSupplier, implemented by SwCrsrShell
Diffstat (limited to 'sw/inc/crsrsh.hxx')
-rw-r--r-- | sw/inc/crsrsh.hxx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx index 22cb3613502e..a050a28805ae 100644 --- a/sw/inc/crsrsh.hxx +++ b/sw/inc/crsrsh.hxx @@ -24,14 +24,16 @@ * for a copy of the LGPLv3 License. * ************************************************************************/ -#ifndef _CRSRSH_HXX -#define _CRSRSH_HXX +#ifndef SW_CRSRSH_HXX +#define SW_CRSRSH_HXX #include <com/sun/star/i18n/WordType.hpp> #include <tools/string.hxx> #include <tools/link.hxx> #include <tools/rtti.hxx> + +#include <IShellCursorSupplier.hxx> #include "swdllapi.h" #include <swtypes.hxx> // fuer SWPOSDOC #include <viewsh.hxx> // fuer ViewShell @@ -152,7 +154,10 @@ const int CRSR_POSOLD = 0x01, // Cursor bleibt an alter Doc-Position String *ReplaceBackReferences( const com::sun::star::util::SearchOptions& rSearchOpt, SwPaM* pPam ); // die Cursor - Shell -class SW_DLLPUBLIC SwCrsrShell : public ViewShell, public SwModify +class SW_DLLPUBLIC SwCrsrShell + : public ViewShell + , public SwModify + , public ::sw::IShellCursorSupplier { friend class SwCallLink; friend class SwVisCrsr; @@ -331,6 +336,10 @@ public: virtual void Modify( SfxPoolItem *pOld, SfxPoolItem *pNew); + // IShellCursorSupplier + virtual SwPaM & CreateNewShellCursor(); + virtual SwPaM & GetCurrentShellCursor(); + // neuen Cusror erzeugen und den alten anhaengen SwPaM * CreateCrsr(); // loesche den aktuellen Cursor und der folgende wird zum Aktuellen |