diff options
Diffstat (limited to 'sw/source/core/crsr/crsrsh.cxx')
-rw-r--r-- | sw/source/core/crsr/crsrsh.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx index 9cf698a3a709..d1f3473dce5f 100644 --- a/sw/source/core/crsr/crsrsh.cxx +++ b/sw/source/core/crsr/crsrsh.cxx @@ -174,6 +174,21 @@ BOOL SwCrsrShell::DestroyCrsr() } +SwPaM & SwCrsrShell::CreateNewShellCursor() +{ + if (HasSelection()) + { + (void) CreateCrsr(); // n.b. returns old cursor + } + return *GetCrsr(); +} + +SwPaM & SwCrsrShell::GetCurrentShellCursor() +{ + return *GetCrsr(); +} + + // gebe den aktuellen zurueck SwPaM* SwCrsrShell::GetCrsr( BOOL bMakeTblCrsr ) const |