summaryrefslogtreecommitdiff
path: root/sw/source/ui/docvw/edtwin.cxx
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-09-02 16:05:21 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-09-02 16:42:18 +0400
commit35e13d1f5403076c752879ecbe17b2f451b188d9 (patch)
tree4ac06aa67fbc564747b26d86aae68bbf87abc880 /sw/source/ui/docvw/edtwin.cxx
parent3e317451e319734d7e45cc431bd4b68ffe1a08f6 (diff)
expand ACT_KONTEXT and MV_KONTEXT macros, rename kontext to context
Change-Id: I7783e60cc048dfbd99976881afca317ad1326d66
Diffstat (limited to 'sw/source/ui/docvw/edtwin.cxx')
-rw-r--r--sw/source/ui/docvw/edtwin.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index 777f072d3f0d..812d7bd8af28 100644
--- a/sw/source/ui/docvw/edtwin.cxx
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -3435,7 +3435,7 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
{ // only temporary generate Move-Kontext because otherwise
// the query to the content form doesn't work!!!
- MV_KONTEXT( &rSh );
+ SwMvContext aMvContext( &rSh );
nTmpSetCrsr = rSh.SetCursor(&aDocPos, bOnlyText);
bValidCrsrPos = !(CRSR_POSCHG & nTmpSetCrsr);
bCallBase = sal_False;
@@ -3459,7 +3459,7 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
nSelType & nsSelectionType::SEL_GRF ||
rSh.IsObjSelectable( aDocPos ) )
{
- MV_KONTEXT( &rSh );
+ SwMvContext aMvContext( &rSh );
if( !rSh.IsFrmSelected() )
rSh.GotoNextFly();
rSh.EnterSelFrmMode();
@@ -4210,7 +4210,7 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt)
bNoInterrupt = sal_False;
{ // create only temporary move context because otherwise
// the query to the content form doesn't work!!!
- MV_KONTEXT( &rSh );
+ SwMvContext aMvContext( &rSh );
const Point aDocPos( PixelToLogic( aStartPos ) );
bValidCrsrPos = !(CRSR_POSCHG & rSh.SetCursor(&aDocPos, false));
}
@@ -5402,7 +5402,7 @@ sal_Bool SwEditWin::SelectMenuPosition(SwWrtShell& rSh, const Point& rMousePos )
{
{ // create only temporary move context because otherwise
// the query against the content form doesn't work!!!
- MV_KONTEXT( &rSh );
+ SwMvContext aMvContext( &rSh );
rSh.SetCursor(&aDocPos, false);
bRet = sal_True;
}
@@ -5413,7 +5413,7 @@ sal_Bool SwEditWin::SelectMenuPosition(SwWrtShell& rSh, const Point& rMousePos )
if( nSelType == nsSelectionType::SEL_OLE ||
nSelType == nsSelectionType::SEL_GRF )
{
- MV_KONTEXT( &rSh );
+ SwMvContext aMvContext( &rSh );
if( !rSh.IsFrmSelected() )
rSh.GotoNextFly();
rSh.EnterSelFrmMode();